
Switch1 has a source host, and Switch2 has a RSPAN destination
port defined, as follows:
- Step 1. Define the VLAN used for RSPAN on the appropriate switches.
Here, VLAN 4 is used:
Switch1 (enable) set vlan 4 rspan
!Cannot use an existing vlan, create a vlan that is currently not used
Switch2 (enable) set vlan 4 rspan
- Step 2. Configure source port, 10/3, for RSPAN on Switch1:
Switch1 (enable) set rspan source 10/3 4
Rspan Type : Source
Destination : -
Rspan Vlan : 4
Admin Source : Port 10/3
Oper Source : Port 10/3
Direction : transmit/receive
Incoming Packets: -
Learning : -
Multicast : enabled
Filter : -
Status : active
- Step 3. Associate a destination port, 3/1, for RSPAN VLAN 4 on
Switch2:
Switch2 (enable) set rspan destination 3/1 4
Rspan Type : Destination
Destination : Port 3/1
Rspan Vlan : 4
Admin Source : -
Oper Source : -
Direction : -
Incoming Packets: disabled
Learning : enabled
Multicast : -
Filter : -
Status : active
Any subsequent traffic generated or received on port 10/1 on
Switch1 will be copied and forwarded to the sniffer on port 3/1 on Switch2.
Table 12-2 shows when
the SPAN/RSPAN features became available in Catalyst OS.