华为交换机端口镜像配置实例
我们在日常网络维护中,如果需要对交换机的数据流量进行抓包的话,那么就需要在交换机上配置镜像端口,配置方法如下:1、先配置观察端口
observe-port 1 interface GigabitEthernet 0/0/24
2、然后再进入需要镜像的端口
interface GigabitEthernet 0/0/23
3、在配置镜像端口模式
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端口镜相过来的数据了。
页:
[1]