source
To configure the source interface for a SPAN session, use the source command in session configuration mode. To remove the source configuration, use the no form of the command.
source {all interface interface-name vlan vlan-id vm-vnic vm-name vnic-id}
no source {all interface interface-name vlan vlan-id vm-vnic vm-name vnic-id}
Syntax Description
all |
Specifies all supported interfaces for a SPAN session. |
interface interface-name |
Specifies a physical interface. |
vlan vlan-id |
Specifies a VLAN interface. Range: 1 to 4094. |
vm-vnic vm-name |
Specifies a vNIC interface with the VM name. |
vnic-id |
Specifies the VNIC ID. Range: 0 to 8. |
Command Default
None
Command Modes
Session configuration (config-session-2)#
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
Usage Guidelines
In the case of virtio net or SRIOV VF, you have to specify the VM group name and NIC ID of the VM interface. If the VM vNIC is virtio net type, then the SPAN session is applied on the OVS bridge. If VM vNIC is SRIOV VF, then the mirror is applied to the hardware bridge. The interface name is specified for a physical interface, for example, GE0-0 or eth0.
Examples
The following configuration shows how to configure a source interface for a SPAN session:
nfvis(config)# monitor session 2
nfvis(config-session-2)# bridge lan-br
nfvis(config-session-2)# source interface GE0-0
nfvis(config-session-2)# commit