Monitoring LAG Virtual Interface and Individual LAG Port
Note: You
can use only one mirror port for each monitored LAG port.
Complete the following steps to monitor a LAG virtual interface.
- Enter the global configuration mode.
- Configure port mirroring.
- Create a LAG.
- Add ports to the LAG.
- Configure a LAG virtual interface which allows you to enter the LAG virtual interface mode or multi-LAG virtual interface mode.
- Configure monitoring of both incoming and outgoing traffic on the mirrored port.
- Enter the
exitcommand to exit from the LAG virtual interface mode. - To view the running configurations, enter the
show mirrorcommand.
The following example monitors the LAG virtual interface:
device(config)# mirror-port ethernet 3/1/1 device(config)# lag blue dynamic id 1 device(config-lag-blue)# ports ethernet 1/1/1 to 1/1/2 ethernet 2/1/3 to 2/1/4 device(config)# interface lag 1 device(config-lag-if-lg1)# monitor both device(config-lag-if-lg1)# exit device(config)# show mirror Mirror port 3/1/1 Input monitoring : (U1/M1) 1 2 Input monitoring : (U2/M1) 3 4 Input monitoring : (LAG) 1 Output monitoring : (U1/M1) 1 2 Output monitoring : (U2/M1) 3
Example of Monitoring an Individual LAG Port
To monitor traffic on an individual port in a LAG, use the monitor
command with the ethe-port-monitored or
named-port-monitored parameter to specify the Ethernet port
or named port, respectively, that you want to monitor.
The following example configures a static LAG, adds ports, and configures monitoring of the output traffic on Ethernet ports 1/1/47 and 1/1/1:
device(config)# lag blue static id 1 device(config-lag-blue)# ports ethernet 1/1/1 ethernet 1/1/47 device(config-lag-blue)# monitor ethe-port-monitored 1/1/47 ethernet 1/1/1 output