The G1/2 port of the core switch is mirrored to the G1/4 port of the destination switch, and the two switches are connected to 24 ports.
1. Core Switch Configuration
ruijie# Configure T
Ruijie (config) # VLAN 77
Ruijie (Config-vlan) # name RSPAN
Ruijie (Config-vlan) # Remote-span
Ruijie (Config-vlan) # exit
Ruijie (config) # interface gigabitethernet1/24 with destination switch interconnect interface
Ruijie (config-if) # switchport mode trunk
Ruijie (config-if) # exit
Ruijie (config) #monitor session 1 Source Interface GIGABITETHERNET1/2
Ruijie (config) #monitor session 1 destination Remote VLAN 77
2. Destination Switch Configuration
ruijie# Configure T
Ruijie (config) # VLAN 77
Ruijie (Config-vlan) # name RSPAN
Ruijie (Config-vlan) # Remote-span
Ruijie (Config-vlan) # exit
Ruijie (config) # interface gigabitethernet 1/24 Switch Interconnect interface to the source
Ruijie (config-if) # switchport mode trunk
Ruijie (config-if) # exit
Ruijie (config) # Monitor session 1 source Remote VLAN 77
Ruijie (config) # Monitor session 1 Destination Interface GIGABITETHERNET1/4
IDS Source Mirror Port added