148 BigIron RX Series Configuration Guide53-1002253-01Monitoring an individual trunk port6The following example configures two mirror ports on the same module and one mirror port onanother module. It will illustrate how inbound traffic is mirrored to the two mirror ports on the samemodule even if the traffic is configured to be mirrored to only one mirror port on the module.BigIron RX(config)# mirror-port ethernet 1/1BigIron RX(config)# mirror-port ethernet 1/2BigIron RX(config)# mirror-port ethernet 2/1BigIron RX(config)# interface ethernet 3/1BigIron RX(config-if-e10000-3/1)# monitor ethernet 1/1 bothBigIron RX(config-if-e10000-3/1)# interface ethernet 4/1BigIron RX(config-if-e10000-4/13)# monitor ethernet 1/2 bothThis example configures two mirror ports 1/1 and 1/2 on the same module. It also configures inputand output traffic from port 3/1 to be mirrored to mirror port 1/1 and input and output traffic fromport 4/1 to be mirrored to mirror port 1/2. Because mirror ports 1/1 and 1/2 are configured on thesame module, mirror port 1/1 will receive the input traffic from port 3/1 as well as port 4/1 andmirror port 1/2 will receive input traffic from port 4/1 as well as port 3/1 even if they are notexplicitly configured to do so. The outbound traffic from port 3/1 is mirrored to port 1/1 only, asconfigured and the outbound traffic from port 4/1 is mirrored to port 1/2 only as configured.This example also configures one mirror port 2/1 on another module, to which inbound traffic fromport 3/1 is mirrored. Because only one mirror port is configured on this module, the traffic ismirrored as configured.If input monitoring is enabled on two ports controlled by the same packet processor, then the inputtraffic on these two ports will be mirrored to all the ports configured as mirror ports for these twomonitored ports. This restriction does not apply to outbound monitoring.BigIron RX(config)# mirror-port ethernet 1/1BigIron RX(config)# mirror-port ethernet 2/1BigIron RX(config)# interface ethernet 3/1BigIron RX(config-if-e1000-3/1)# monitor ethernet 1/1 bothBigIron RX(config-if-e1000-3/1)# interface ethernet 3/2BigIron RX(config-if-e1000-3/2)# monitor ethernet 2/1 bothThe above example configures two mirror ports 1/1 and 2/1 on different modules. Port 3/1 usesport 1/1 for inbound and outbound mirroring. Port 3/2 uses port 2/1 for inbound and outboundmirroring. If 3/1 and 3/2 are controlled by the same packet processor, inbound traffic from 3/1 willbe mirrored to 1/1 as well as 2/1 and similarly, inbound traffic from 3/2 will be mirrored to 2/1 aswell as 1/1. The outbound traffic on 3/1 and 3/2 are mirrored according to the configuration.Monitoring an individual trunk portBy default, when you monitor the primary port in a trunk group, aggregated traffic for all the ports inthe trunk group is copied to the mirror port. You can configure the device to monitor individualports in a trunk group. You can monitor the primary port or a secondary port individually.NOTEYou can use only one mirror port for each monitored trunk port.To monitor traffic on an individual port in a trunk group, enter commands such as the following.