chinamoon 发表于 2003-10-21 02:11:44

[转贴]要用Sniffer抓包先要配置这个

chinamoon注:<br>即端口镜像配置.<br><br><br>interface FastEthernet0/1 <br>port monitor FastEthernet0/2 <br>port monitor FastEthernet0/5 <br>port monitor VLAN1 <br>! <br>interface FastEthernet0/2 <br>! <br>interface FastEthernet0/3 <br>switchport access vlan 2 <br>! <br>interface FastEthernet0/4 <br>port monitor FastEthernet0/3 <br>port monitor FastEthernet0/6 <br>switchport access vlan 2 <br>! <br>interface FastEthernet0/5 <br>! <br>interface FastEthernet0/6 <br>switchport access vlan 2 <br>!! <br>interface VLAN1 <br>ip address 10.200.8.136 255.255.252.0 <br>no ip directed-broadcast <br>no ip route-cache <br>! <br><br>3550/2950用这个 <br>C2950#conf t <br>C2950(config)# <br>C2950(config)#monitor session 1 source interface fastEthernet 0/2 <br>!-- Interface fa 0/2 is configured as source port <br>C2950(config)#monitor session 1 destination interface fastEthernet 0/3 <br>!-- Interface fa0/3 is configured as destination port <br>C2950(config)# <br><br>8500用这个 <br>8500CSR# configure terminal <br>8500CSR(config)# interface fastethernet 12/0/15 <br>8500CSR(config-if)# shutdown <br>8500CSR(config-if)# snoop interface fastethernet 0/0/1 direction both <br>8500CSR(config-if)# no shutdown <br>

cwav 发表于 2004-3-28 11:54:30

port monitor VLAN1 <br><br>多VLAN网络中,一定要指定这个么?今天那台交换机没有这玩意,凑合着用了。<br><br>and,如果是网路岗,也要这样设置?

sdspage 发表于 2004-3-24 20:31:13

今天居然用上了~哈哈~哈哈~
页: [1]
查看完整版本: [转贴]要用Sniffer抓包先要配置这个