一台H3C业务交换机,现在要把上联口24口流量镜像给交换机的两个端口7口和8口,在交换机上要怎么配置 ,远程镜像源端口和目的端口都要在这台交换机上配置,如何配置
(0)
最佳答案
3 配置步骤
配置SWC
# 配置端口GigabitEthernet1/0/1为Trunk口,并允许VLAN 2的报文通过。
[SWC] interface gigabitethernet 1/0/1
[SWC-GigabitEthernet1/0/1] port link-type trunk
[SWC-GigabitEthernet1/0/1] port trunk permit vlan 2
[SWC-GigabitEthernet1/0/1] quit
# 创建远程目的镜像组2。
[SWC] mirroring-group 2 remote-destination
# 创建VLAN 2作为远程镜像VLAN。
[SWC] vlan 2
# 关闭VLAN 2的MAC地址学习功能。
[SWC-vlan2] undo mac-address mac-learning enable
[SWC-vlan2] quit
# 配置远程目的镜像组2的远程镜像VLAN为VLAN 2,目的端口为GigabitEthernet1/0/2,在该端口上关闭生成树协议并将其加入VLAN 2。
[SWC] mirroring-group 2 remote-probe vlan 2
[SWC] interface gigabitethernet 1/0/2
[SWC-GigabitEthernet1/0/2] mirroring-group 2 monitor-port
[SWC-GigabitEthernet1/0/2] undo stp enable
[SWC-GigabitEthernet1/0/2] port access vlan 2
[SWC-GigabitEthernet1/0/2] quit
(2) 配置SWB
# 创建VLAN 2作为远程镜像VLAN。
[SWB] vlan 2
# 关闭VLAN 2的MAC地址学习功能。
[SWB-vlan2] undo mac-address mac-learning enable
[SWB-vlan2] quit
# 配置端口GigabitEthernet1/0/1为Trunk口,并允许VLAN 2的报文通过。
[SWB] interface gigabitethernet 1/0/1
[SWB-GigabitEthernet1/0/1] port link-type trunk
[SWB-GigabitEthernet1/0/1] port trunk permit vlan 2
[SWB-GigabitEthernet1/0/1] quit
# 配置端口GigabitEthernet1/0/2为Trunk口,并允许VLAN 2的报文通过。
[SWB] interface gigabitethernet 1/0/2
[SWB-GigabitEthernet1/0/2] port link-type trunk
[SWB-GigabitEthernet1/0/2] port trunk permit vlan 2
[SWB-GigabitEthernet1/0/2] quit
(3) 配置SWA
# 创建远程源镜像组1。
[SWA] mirroring-group 1 remote-source
# 创建VLAN 2作为远程镜像VLAN。
[SWA] vlan 2
# 关闭VLAN 2的MAC地址学习功能。
[SWA-vlan2] undo mac-address mac-learning enable
[SWA-vlan2] quit
# 配置远程源镜像组1的远程镜像VLAN为VLAN 2,源端口为GigabitEthernet1/0/1,反射端口为GigabitEthernet1/0/3。
[SWA] mirroring-group 1 remote-probe vlan 2
[SWA] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 both
[SWA] mirroring-group 1 reflector-port gigabitethernet 1/0/3
This operation may delete all settings made on the interface. Continue? [Y/N]: y
# 配置端口GigabitEthernet1/0/2为Trunk口,并允许VLAN 2的报文通过。
[SWA] interface gigabitethernet 1/0/2
[SWA-GigabitEthernet1/0/2] port link-type trunk
[SWA-GigabitEthernet1/0/2] port trunk permit vlan 2
[SWA-GigabitEthernet1/0/2] quit
4 验证配置
# 显示SWC上所有镜像组的配置信息。
[SWC] display mirroring-group all
Mirroring group 2:
Type: Remote destination
Status: Active
Monitor port: GigabitEthernet1/0/2
Remote probe VLAN: 2
# 显示SWA上所有镜像组的配置信息。
[SWA] display mirroring-group all
Mirroring group 1:
Type: Remote source
Status: Active
Mirroring port:
GigabitEthernet1/0/1 Both
Reflector port: GigabitEthernet1/0/3
Remote probe VLAN: 2
(0)
24口配置源端口
配置远程vlan(找一个不需要的vlan,不要起vlan int)
配置反射口(找一个不用的接口)
在7口和8口放通配置的远程vlan(7口和8口关闭stp)
(0)
源端口怎么配置,源端口和远程目的端口是配置在同一个镜像组么?能否说详细点
源端口怎么配置,源端口和远程目的端口是配置在同一个镜像组么?能否说详细点
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明