Cisco IOS/Nexus 7000 NX-OS 비교 - SPAN 관련 명령어 -
| Cisco IOS CLI | Cisco NX-OS CLI |
|---|---|
| Configuring the Destination Switchport Mode |
| Cisco IOS Software does not require any destination port configuration. | interface ethernet 2/2
switchport switchport monitor |
|---|
| Configuring Destination Port Ingress Forwarding and Learning |
| monitor session 1
type local
destination interface gigabitethernet2/2 ingress learning |
interface ethernet 2/2
switchport switchport monitor ingress learning |
|---|
| Configuring a SPAN Monitor (Ethernet Source and Destination) |
| monitor session 1
type local
source interface gigabitethernet 2/1 destination interface gigabitethernet 2/2 no shutdown |
monitor session 1
source interface ethernet 2/1 both destination interface ethernet 2/2 no shut |
|---|
| Configuring a SPAN Monitor (VLAN Source) |
| monitor session 1
type local
source vlan 10 , 20 both destination interface gigabitethernet 2/2 no shutdown |
monitor session 1
source vlan 10,20 both destination interface ethernet 2/2 no shut |
|---|
| Filtering VLANs for IEEE 802.1q Trunk Sources |
| interface
gigabitethernet 2/1
switchport switchport trunk encapsulation dot1q switchport trunk allowed vlan 10-20 switchport mode trunk
filter vlan 15 - 20 source interface gigabitethernet 2/1 destination interface gigabitethernet 2/1 no shutdown |
interface ethernet 2/1
switchport switchport mode trunk switchport trunk allowed vlan 10-20
source interface ethernet 2/1 both destination interface ethernet 2/2 filter vlan 15-20 no shut |
|---|
| Configuring a SPAN Monitor (CPU Source) |
| monitor session 1
type local
source cpu rp rx destination interface gigabitethernet 2/2 no shutdown |
monitor session 1
source interface sup-eth0 rx destination interface ethernet 2/2 no shut |
|---|
| Configuring an ERSPAN Monitor (Source) |
| monitor session 1
type erspan-source
source interface gigabitethernet 2/2 destination ip address 192.168.2.1 origin ip address 192.168.1.1 erspan-id 1 no shutdown |
monitor erspan origin ip-address
192.168.1.1 global
destination ip 192.168.2.1 erspan-id 1 vrf default source interface ethernet 1/26 both no shut |
|---|
| Configuring an ERSPAN Monitor (Destination) |
| monitor session 1
type erspan-destination
destination interface gigabitethernet 1/26 source ip address 192.168.2.1 erspan-d 1 no shutdown |
interface ethernet 1/26
switchport switchport monitor
monitor session 1 type erspan-destination source ip 192.168.2.1 destination interface ethernet 1/26 erspan-id 1 vrf default no shut |
|---|
| Cisco NX-OS SPAN | Cisco IOS Software SPAN | Command Description |
|---|---|---|
| show interface | show interface | Displays interface status and characteristics |
| - | - | - |
| show monitor session <#> | show monitor session <#> | Displays a specific monitor session |
| show monitor session <#> brief | - | Displays brief information for a specific monitor session |
| show monitor session all | show monitor session all | Displays all SPAN and monitor sessions |
| show monitor session all brief | - | Displays brief information for all monitor sessions |
| show monitor range <#-#> | show monitor range <#-#> | Displays a range of specific monitor sessions |
| show monitor range <#-#> brief | - | Displays brief information for a range of specific monitor sessions |