Selecting or removing monitoring source interfaces
After you configure a monitor port you can use either the global configuration level or the interface context level to select ports, static trunks, or VLANs as monitoring sources. You can also use either level to remove monitoring sources.
Syntax:
no interface <monitor-list> monitor
<monitor-list> |
Includes port numbers and static trunk names such as 4, 7, 5-8, trk1. |
Individual ports and static trunks can be monitored at the same time. However, if you configure the switch to monitor a VLAN, all other interfaces are removed from monitoring. Also, you can configure only one VLAN at a time for monitoring.
Elements in the monitor list can include port numbers and static trunk names at the same time.
For example, with a port such as port 5 configured as the monitoring (mirror) port, you would use either of the following commands to select these interfaces for monitoring:
Ports 6-9, and 14
Trunk 2
Selecting ports and static trunks as monitoring sources
switch(config)# int 6-9, 14 trk2, monitor
To monitor a VLAN:
Configuring VLAN monitoring
switch(config)# vlan 20 monitor switch(config)# show monitor Network Monitoring Port Mirror Port: 5 Monitoring sources ------------------ VLAN_20
Disabling monitoring at the interface context and the global config level
switch(eth-1-3, 5)# no int 5 monitor 1 switch(eth-1-3, 5)# no monitor switch(config)# no int 5 monitor 2 switch(config)# no int 1-3, 5 monitor
1These two commands show how to disable monitoring at the interface context level for a single port or all ports in an interface context level.
2These two commands show how to disable monitoring at the global config level for a single port or a group of ports.