Switchport Monitor - Cisco Nexus 7000 Series Reference Manual

Nx-os system management command reference
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

switchport monitor

switchport monitor
To configure the switchport interface as a Switched Port Analyzer (SPAN) destination, use the
switchport monitor command. To disable the configuration, use the no form of this command.
Syntax Description
ingress
learning
Defaults
None
Command Modes
Interface configuration mode
Command History
Release
4.1(2)
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure the Ethernet interface 7/2 as a SPAN destination:
switch# config t
Enter configuration commands, one per line.
switch(config)# interface eth 7/2
switch(config-if)# switchport monitor
switch(config-if)#
This example shows how to configure the Ethernet interface 7/2 as a SPAN destination and allow it to
inject packets and learn MAC addresses:
switch# config t
Enter configuration commands, one per line.
switch(config)# interface eth 7/2
switch(config-if)# switchport monitor ingress learning
switch(config-if)#
This example shows how to disable the SPAN destination on Ethernet interface 7/2:
switch# config t
Enter configuration commands, one per line.
switch(config)# interface eth 7/2
switch(config-if)# no switchport monitor
Cisco Nexus 7000 Series NX-OS System Management Command Reference
404
switchport monitor [ingress [learning]]
no switchport monitor [ingress [learning]]
(Optional) Allows the SPAN destination port to inject packets that disrupt a
certain TCP packet stream, for example, in networks with an intrusion
detection system (IDS).
(Optional) Allows the SPAN destination port to inject packets, and allows the
learning of MAC addresses, for example, the IDS MAC address.
Modification
This command was introduced.
End with CNTL/Z.
End with CNTL/Z.
End with CNTL/Z.
S Commands
OL-25806-03

Advertisement

Table of Contents
loading

Table of Contents