10513X-G交换机支持在同一台设备上实现远程镜像(RSPAN)源和目的,但需注意:远程镜像通常跨设备使用,同设备场景下建议直接使用本地端口镜像(Local Mirroring)更高效。
若必须使用RSPAN,配置如下:
1. 创建远程镜像VLAN(如VLAN 100)
[Switch] vlan 100
[Switch-vlan100] remote-probe vlan enable
2. 配置源端口(镜像源)
[Switch] mirroring-group 1 remote-source
[Switch-mirroring-group-1] mirroring-port GigabitEthernet1/0/1 both
[Switch-mirroring-group-1] remote-probe vlan 100
3. 配置目的端口(监控端口)
[Switch] mirroring-group 1 remote-destination
[Switch-mirroring-group-1] monitor-port GigabitEthernet1/0/2
[Switch-mirroring-group-1] remote-probe vlan 100
4. 确保VLAN 100端口为Trunk并放通
[Switch] interface GigabitEthernet1/0/3
[Switch-GigabitEthernet1/0/3] port link-type trunk
[Switch-GigabitEthernet1/0/3] port trunk permit vlan 100
验证命令:
display mirroring-group 1
display remote-probe vlan
注意: 同设备RSPAN会占用额外VLAN资源,且数据流经两次转发,性能略低于本地镜像。若源和目的在同一板卡,建议改用本地镜像:
mirroring-group 1 local
mirroring-group 1 mirroring-port Gi1/0/1 both
mirroring-group 1 monitor-port Gi1/0/2
暂无评论