h3c镜像模式配置


1.通过console进入后台:

2.清除h3c配置:

<h3c>reset saved-configuration

y

<h3c>reboot

y

3,查看镜像组1
[h3c]dis mirroring-group 1
4.新建镜像组1
[h3c]mirroring-group 1 local
5.配置镜像端口,作为目的端口(流量复制到这个端口)
[h3c]mirroring-group 1 monitor-port GigabitEthernet 1/0/23  代理设备
6.配置被镜像端口,作为客户端或者服务器的接收与发送口,
[h3c]mirroring-group 1 mirroring-port GigabitEthernet 1/0/24 both  :c/s
配置端口允许所有vlan id通过
进入要哪些端口允许vlan通过的接口
[h3c]int GigabitEthernet1/0/11
设置vlan trunk
prot link-type trunk
设置该端口允许vlan 1到100通过
prot trunk permit vlan 1 to 100
创建valn 1
[h3c]vlan 1
[h3c]quit
创建vlan 2
[h3c]vlan 2
[h3c]quit
保存配置:
<h3c>save saved-configuration

华为交换机镜像配置:https://www.cnblogs.com/nul1/p/12067863.html
现在我要把LSW1上GE0/0/3接口的流量镜像到GE0/0/2接口上,配置如下:
observe-port 3 interface XGigabitEthernet0/0/3   #观察口
interface XGigabitEthernet0/0/2            #镜像口
port-mirroring to observe-port 3 both        #镜像上下行流量
可以在设备上通过dis cu命令来查看配置:
若配置过程中出现此错误提示:Error: The interfaces on slot 0 can not support mirror to more than one obse
说明该端口已经创建了相同的配置,需要删除,或者重新选择其它的端口使用;
执行命令display interface brief,可以查看交换机当前端口的开放状态。down表示端口关闭,up表示端口开启。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM