Configure RSPAN
RSPAN session is used to analyze the data flow of the source port of the reachable remote device at the L2 network. RSPAN session includes RSPAN source session and RSPAN destination session.
Configuration Condition
None
Configure RSPAN VLAN
RSPAN makes the mirror packet traverse the L2 network by labeling the RSPAN LAN tag on the mirror packet.
Table 5-3 Configure RSPAN VLAN
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the VLAN configuration mode
|
vlan vlan-id
|
-
|
Configure the VLAN as RSPAN VLAN
|
remote-span
|
Mandatory
By default, do not configure RSPAN VLAN.
|
-
RSPAN VLAN should not bear other services, but can only bear the RSPAN traffic.
- RSPAN VLAN prohibits enabling the MAC address learning function.
- Except for the ports used to bear the RSPAN traffic, do not configure any port to RSPAN VLAN.
Configure RSPAN Source Session
After configuring the RSPAN source session, label the RSPAN VLAN tag on the mirror packet, and then, forward it from the destination port of the RSPAN source session.
Table 5-4 Configure the RSPAN source session
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the source end of the RSPAN source session
|
monitor session session-number source { interface interface-list | interface link-aggregation link-aggregation-id } [ both | tx | rx ]
|
Mandatory
By default, do not configure the source end of the RSPAN source session.
|
Configure the destination end of the RSPAN source session
|
monitor session session-number destination remote vlan vlan-id interface interface-name
|
Mandatory
By default, do not configure the destination end of the RSPAN source session.
|
-
When configuring the session source end and specifying the port enabled with the mirror as the aggregation group, the specified aggregation group should be already created. If the aggregation group is not created, the configuration fails.
- The specified VLAN should be set as RSPAN VLAN before RSAPN source session.
- One port cannot be the source port and destination port of one session at the same time.
- One port cannot exist in multiple sessions at the same time.
- The destination end of RSPAN source session can only be the general port, but cannot be the aggregation group.
- RSPAN source session only supports one destination port.
Configure RSPAN Destination Session
When RSPAN destination session receives the packet, identify the mirror packet according to the RSPAN VLAN tag, and forward the mirror packet to the analysis device.
Table 5-5 Configure the RSPAN destination session
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the source end of the RSPAN destination session
|
monitor session session-number source remote vlan vlan-id
|
Mandatory
By default, do not configure the source end of the RSPAN destination session.
|
Configure the destination end of the RSPAN destination session
|
monitor session session-number destination { interface interface- list | interface link-aggregation link-aggregation-id }
|
Mandatory
By default, do not configure the destination end of the RSPAN destination session.
|
-
The specified VLAN should be set as RSPAN VLAN before RSAPN destination session.
- One port cannot exist in multiple sessions at the same time.
- The type of the destination port of the RSPAN destination session should be Hybrid.