Configure Local SPAN
Local SPAN is used to analyze the data flow of the local device port.
Configuration Condition
None
Configure Local SPAN Session
Local SPAN session copies the received or forwarded packets of one or multiple source ports and forwards out from the destination port without affecting the normal service forwarding of the source port.
Table 5-2 Configure the Local SPAN session
Step
|
Command
|
Description
|
Enter the global configuration mode
|
config terminal
|
-
|
Configure the source end of Local SPAN 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 Local SPAN session.
|
Configure the destination end of the Local SPAN 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 Local SPAN 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. Similarly, when configuring the session destination end and specifying the forwarding port of the mirror packet as the aggregation group, the specified aggregation group also should be already created. If the aggregation group is not created, the configuration fails.
- 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 source of the port mirror session cannot be the same as the source of the flow mirror.