The MAC loopback feature must be enabled on the interfaces for purposes of local one-to-many
mirroring. (Please enable the MAC loopback feature on the down interface, and do not add other
configurations to the interface.)
The following example configures a remote VLAN.
Ruijie(config)#vlan 100
Ruijie(config-vlan)#remote-span
Ruijie(config-vlan)#exit
The following example configures a session and specifies the mirrored port.
Ruijie(config)#monitor session 1 remote-source
Ruijie(config)#monitor session 1 source interface gigabitEthernet 4/1 both
The following example configures the mirroring port, and enables MAC loopback on the port.
Ruijie(config)#monitor session 1 destination remote vlan 100 interface
gigabitEthernet 4/2 switch
Ruijie(config)#interface gigabitEthernet 4/2
Ruijie(config-if-GigabitEthernet 4/2)#switchport access vlan 100
Ruijie(config-if-GigabitEthernet 4/2)#mac-loopback
The following example adds interfaces GigabitEthernet 4/3-4 to the remote VLAN.
Ruijie(config)#interface range gigabitEthernet 4/3-4
Ruijie(config-if-range)#switchport access vlan 100