一、华为交换机:
A、配置端口镜像:
system-view
配置观察端口:
observe-port $group-id $interface-type $interface-number1
配置镜像端口:
interface $interface-type $interface-number2
port-mirroring observe-port $group-id both
commit
B、删除端口镜像:
interface $interface-type $interface-number2
undo port-mirroring observe-port $group-id both
undo observe-port $group-id $interface-type $interface-number1
commit
二、华三交换机:
A、配置端口镜像:
system-view
mirroring-group $group-id local
配置镜像端口:
interface $interface-type $interface-number1
mirroring-group $group-id mirroring-port both
配置观察端口:
interface $interface-type $interface-number2
mirroring-group $group-id monitor-port
B、删除端口镜像:
interface $interface-type $interface-number2
undo mirroring-group $group-id monitor-port
interface $interface-type $interface-number1
undo mirroring-group $group-id mirroring-port both
undo mirroring-group $group-id local
三、锐捷/迈普交换机:
A、配置端口镜像:
enable
conf terminal
配置镜像端口:
monitor session $session-num source interface $interface-id1 both
配置观察端口:
monitor session $session-num destination interface $interface-id2
B、删除端口镜像:
no monitor session $session-num source interface $interface-id1 both
no monitor session $session-num destination interface $interface-id2
四、中兴交换机:
A、配置端口镜像:
enable
conf terminal
配置观察端口:
span session $session-number
default destination interface $interface-id1
exit
配置镜像端口:
span apply session $session-num source interface $interface-id2 ddirection both
B、删除端口镜像:
span session $session-number
no default destination interface $interface-id1
exit
no span apply session $session-num source interface $interface-id2 ddirection both
原文始发于微信公众号(云网数端):合集!各厂商交换机端口镜像配置
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之家整理,本文链接:https://www.bmabk.com/index.php/post/259559.html