yonght 发表于 2013-6-28 09:45:25

Cisco 交换机端口镜像配置图解


Switch>en
Switch#conf t //进入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#monitor session 1 source interface gigabitEthernet 0/1 both//指定端口0/1,both是进出的包都抓

Switch(config)#monitor session 1 destination interface gigabitEthernet 0/2 //指定连接抓包主机的端口

Switch(config)#exit

例如,我想在f0/24端口上抓f0/1-23端口的包
配置如下:Switch#conf t (进入全局配置模式)Switch(config)#monitor session 1 destination interface fastEthernet 0/24(指定连接抓包主机的端口)Switch(config)#monitor session 1 source interface f0/1 - 23 both(指定端口1-23,both是进出的包都抓)
很简单的设置就可以了,但这里有个小问题,就是做了镜像端口,连接这个端口就变成单向接收模式了,那么主机将无法上网了。那,如果想要远程连接抓包怎么办呢?就在这台主机上再加一块网卡就可以上网,也可以远程了.


82870034 发表于 2013-6-28 11:41:39

所有的男人生来平等,结婚的除外。

q4561231 发表于 2013-6-28 11:53:45

男人靠的住,母猪能上树!

blueice 发表于 2013-6-28 12:21:50

只要不下流,我们就是主流!

q986 发表于 2013-6-28 14:03:15

男人靠的住,母猪能上树!

bobbai 发表于 2013-6-28 15:16:31

一时的冲动,子孙的危机!

sunkezai 发表于 2013-6-28 15:22:44

花前月下,不如花钱“日”下!*^_^*
页: [1]
查看完整版本: Cisco 交换机端口镜像配置图解