把核心交换机的G1/2口镜像到目的交换机的G1/4口,两个交换机之间都是连接的24口
1.核心交换机配置
Ruijie# configure tRuijie(config)# vlan 77Ruijie(config-Vlan)# name RSPAN Ruijie(config-Vlan)# remote-span Ruijie(config-Vlan)# exit Ruijie(config)# interface gigabitEthernet1/24 与目的交换机互联接口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.目的交换机配置
Ruijie# configure tRuijie(config)# vlan 77Ruijie(config-Vlan)# name RSPAN Ruijie(config-Vlan)# remote-span Ruijie(config-Vlan)# exit Ruijie(config)# interface gigabitEthernet 1/24 与源的交换机互联接口Ruijie(config-if)# switchport mode trunk Ruijie(config-if)# exit Ruijie(config)# monitor session 1 source remote vlan 77Ruijie(config)# monitor session 1 destination interface gigabitEthernet1/4
转载于:https://www.cnblogs.com/tengfei520/p/5588395.html
相关资源:JAVA上百实例源码以及开源项目