查看交换机端口状态
命令如下:
[HUAWEI]display current-configuration |
操作实例:
[HUAWEI]display current-configuration !Software Version V200R011C10SPC600 # sysname HUAWEI # authentication-profile name default_authen_profile authentication-profile name dot1x_authen_profile authentication-profile name mac_authen_profile authentication-profile name portal_authen_profile authentication-profile name dot1xmac_authen_profile authentication-profile name multi_authen_profile # observe-port 1 interface GigabitEthernet0/0/24-------observe-port为本地观察端口,也是交换机的镜像采集口,流量均汇集到此口采集。 # ………………………… interface Vlanif1 # interface Eth-Trunk1 # interface GigabitEthernet0/0/1-----------交换机端口状态及信息 port-mirroring to observe-port 1 inbound--------交换机已做好镜像的端口状态 # ……以下略 |
配置端口镜像:
本次镜像端口以GigabitEthernet0/0/24为例,提供镜像创建的全过程;
配置观察端口
使用system-view进入配置模式,注意以下标记位置符号的变化。
<HUAWEI>system-view Enter system view, return user view with Ctrl+Z. [HUAWEI] [HUAWEI]observe-port 1 interface GigabitEthernet 0/0/23 |
完成操作后,通过display observe-port查看观察口配置状态,框选部分状态表示添加成功。
设置端口镜像
[HUAWEI]interface GigabitEthernet 0/0/8---------------指定被镜像端口 [HUAWEI-GigabitEthernet0/0/8]port-mirroring to observe-port 2 inbound -----端口镜像到观察口,即镜像采集口 [HUAWEI-GigabitEthernet0/0/8]quit |
完成配置后,查看镜像状态
至此,镜像端口配置过程完成。