1.登录交换机,找一个合适的空闲端口,作为观察口(观察口的端口速率至少与镜像口持平)
#observing-port 1 interface GigabitEthernet 0/0/3 (将G0/0/3作为观察口,编号为1)
2.将镜像口的流量镜像到观察口
int g 0/0/1
port-mirroring to observe-port 1 both
查看状态:
dis port-mirroring
Observe index 1 is set to interface GigabitEthernet0/0/3
Observe Type: Local
Interface GigabitEthernet0/0/1
Mirrored to: Observe index 1
Direction: both
3.开启观察口:
#int g 0/0/3
#dis th
#
interface GigabitEthernet0/0/3
shutdown
port default vlan 58
bpdu enable
port-isolate enable
ntdp enable
ndp enable