Configuring RSPAN
RSPAN enables remote monitoring of multiple devices across a network. The following
configuration demonstrates an RSPAN for both ingress and egress traffic.
- On the source device, enter the
configure terminalcommand to access global configuration mode. - Enter the
rspan-vlancommand, specifying a VLAN ID, to define an RSPAN VLAN on the source device. - Enter the
tagged ethernetcommand, specifying an interface, to add a member port. - Enter the
rspan destinationcommand, specifying an interface, to configure the RSPAN destination port. - Enter the
rspan sourcecommand with the monitor-both keyword, specifying an interface, to configure the RSPAN source port and specify that both ingress and egress traffic is monitored. - On the intermediate device, enter the
configure terminalcommand to access global configuration mode. - Enter the
rspan-vlancommand, specifying a VLAN ID, to define an RSPAN VLAN on the intermediate device. - Enter the
tagged ethernetcommand with the ethernet keyword, specifying an interface, to add member ports. - On the destination device, enter the
configure terminalcommand to access global configuration mode. - Enter the
rspan-vlancommand, specifying a VLAN ID, to define an RSPAN VLAN on the destination device. - Enter the
tagged ethernetcommand with the ethernet keyword, specifying an interface, to add member ports. - Enter the
rspan destinationcommand, specifying an interface, to specify the RSPAN destination port.
The following example configures an RSPAN for ingress and egress traffic.
device1# configure terminal device1(config)# rspan-vlan 4000 device1(config-rspan-vlan-4000)# tagged ethernet 1/1/2 device1(config-rspan-vlan-4000)# rspan destination ethernet 1/1/2 device1(config-rspan-vlan-4000)# rspan source monitor-both ethernet 1/1/1
device2# configure terminal device2(config)# rspan-vlan 4000 device2(config-rspan-vlan-4000)# tagged ethernet 1/1/1 ethernet 1/1/2
device3# configure terminal device3(config)# rspan-vlan 4000 device3(config-rspan-vlan-4000)# tagged ethernet 1/1/1 ethernet 1/1/2 device3(config-rspan-vlan-4000)# rspan destination ethernet 1/1/2