/
如拓扑,S9850设备配置了两组本地端口镜像,镜像源端口为三层路由口Route-Aggregation,镜像目的为二层聚合口Bridge-Aggregation,镜像流量会发给第三方的流量镜像交换机然后再到服务器。现场反馈服务器无法收到上述三层口outbound的镜像流量。
在S9850上发现镜像正常,出端口流量也正常,因此进一步在第三方的流量镜像交换机抓包发现是因为S9850发给他的镜像流量vlan-tag为4095,第三方交换机无法识别丢弃导致的。
为了解决该问题,可以使用远程镜像vlan的方式实现:路由口outbound的报文会携带vlan4095,通过远程镜像vlan配置,镜像流量就会再打上一层probe vlan。这样中间的第三方镜像设备就不会丢弃报文了,顺利把流量发给服务。
为了解决该问题,可以使用远程镜像vlan的方式实现:路由口outbound的报文会携带vlan4095,通过远程镜像vlan配置,镜像流量就会再打上一层probe vlan。这样中间的第三方镜像设备就不会丢弃报文了,顺利把流量发给服务。
具体配置见如下:
1、
① 创建远程镜像vlan(创建的远程镜像vlan为现网未使用的vlan):
vlan 4000
undo mac-address mac-learning enable //vlan4000视图下关闭mac地址学习功能
vlan 4001
undo mac-address mac-learning enable //vlan4001视图下关闭mac地址学习功能
② 创建二层远程镜像组:
mirroring-group 1 remote-source
mirroring-group 2 remote-source
③ 选取2个物理口为两组镜像反射口(该端口无业务且不接线):
interface FortyGigE1/4/10
undo shutdown
interface FortyGigE2/4/10
undo shutdown
mirroring-group 1 reflector-port FortyGigE1/4/10
mirroring-group 2 reflector-port FortyGigE2/4/10
④定义vlan4000和vlan4001为远程镜像vlan:
mirroring-group 1 remote-probe vlan 4000
mirroring-group 2 remote-probe vlan 4001
⑤配置镜像源端口:
interface Route-Aggregation1
mirroring-group 1 mirroring-port inbound
mirroring-group 2 mirroring-port outbound
interface Route-Aggregation2
mirroring-group 1 mirroring-port inbound
mirroring-group 2 mirroring-port outbound
interface Route-Aggregation3
mirroring-group 1 mirroring-port inbound
mirroring-group 2 mirroring-port outbound
interface Route-Aggregation4
mirroring-group 1 mirroring-port inbound
mirroring-group 2 mirroring-port outbound
⑥ 将需要镜像流量的端口加入对应vlan
interface Bridge-Aggregation102
port link-type trunk
port trunk permit vlan 4000
interface Bridge-Aggregation103
port link-type trunk
port trunk permit vlan 4001
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作