Celestica Documentation Portal

Find your product documents here

SPAN session config

Adds, deletes mirror destination port, source port(s) and its direction into the SPAN session. To add multiple source interfaces into the session, source port alone should be different and other parameters should be same as the first source interface configuration.

Syntaxspan destination Ethernet <interface-number> source {Ethernet <interface-number> | PortChannel <lag-id>} direction <direction-value>
Command mode Mirror session
Parameters
  • interface-number – Mirror destination Ethernet interface number.

  • interface-number – Mirror source Ethernet interface number.

  • lag-id – Mirror source port-channel number. Range:1 – 256.

  • direction-value – Direction of the source-interface's traffic to be mirrored. Valid values are rx|tx|both.

UsageUse no source {Ethernet <interface-number> | PortChannel <lag-id>} to remove the source interface alone from the mirror session.
Supported Releases 1.0.0 or later
Click commandconfig mirror_session span add <session_name> <dst_port> [src_port] [direction] [queue]
Example
sonic(config)# mirror-session m1
sonic(config-mirror-m1)# span destination Ethernet 0 source Ethernet 1 direction rx
sonic(config-mirror-m1)# span destination Ethernet 0 source Ethernet 2 direction rx
sonic(config-mirror-m1)# span destination Ethernet 0 source PortChannel 100 direction rx
sonic(config-mirror-m1)# no source Ethernet 2