1、端口镜像的具体配置:
例如把gi1/0/8端口流量镜像到gi3/0/1端口:
interface gigabitethernet3/0/1---------观测口
undo shutdown
port-observing observe-index 3---------(index索引必须与物理接口所在的槽位号一致)
slot 1---------------------------------镜像槽位
mirror to observe-index 3
interface gigabitethernet1/0/8---------镜像口
undo shutdown
port-mirroring inbound
port-mirroring outbound
2、 注意说明:
1)一块单板上只能同时存在一个观测端口,但可同时存在多个镜像端口。
2)同一块单板上的镜像端口只能同时镜像到一个相同的观测口。
3)一个观测口可以对应多个镜像口,一个镜像口只能对应一个观测口。
4)业务口下port-observing observe-index 命令也能配置成功,但业务口若配置成了观测口则会导致原有业务中断。
5)配置端口镜像后,接口上接收的所有报文都会被镜像,包括上送cpu的报文。如果只配置了上送cpu报文的单独镜像功能,那么只有上送cpu的报文被镜像。