xixizhouping
学习方法: 每天晚上睡觉前:思考今天学了什么? 每天早上起来前:思考今天要学什么?

导航

 

我们在日常网络维护中,如果需要对交换机的数据流量进行抓包的话,那么就需要在交换机上配置镜像端口,配置方法如下:

1、先配置观察端口

[Quidway]observe-port 1 interface GigabitEthernet 0/0/24

2、然后再进入需要镜像的端口

[Quidway]interface GigabitEthernet 0/0/23

3、在配置镜像端口模式

[Quidway-GigabitEthernet0/0/23]port-mirroring to observe-port 1 both

4、配置完成之后用display current 查看下配置

display current-configuration interface GigabitEthernet 0/0/23

port-mirroring to observe-port 1 inbound

port-mirroring to observe-port 1 outbound

5、接下来电脑上可以安排流行的抓包软件,连到24端口来观察23端口镜相过来的数据了。

 

posted on 2017-02-23 14:31  xixizhouping  阅读(2707)  评论(0)    收藏  举报