CISCO 4507R根据IP地址查找端口,并使用4/46口来镜像此端口
首先找出10.0.0.9的IP地址所在的端口,然后制作10.0.0.9服务器的镜像口->fastethernet4/46,使之可以查看10.0.0.9上的具体数据包信息。
操作步骤:
1、找出10.0.0.9的MAC地址
Switch#ping 10.0.0.9
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.9, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Switch#sh arp | in 10.0.0.9
Internet 10.0.0.9 4 0014.5e19.8345 ARPA Vlan1
Internet 10.0.0.92 0 0019.bbdc.1d1f ARPA Vlan1
Internet 10.0.0.93 0 001e.4f98.0934 ARPA Vlan1
2、查看MAC地址0014.5e19.8345的相应端口,显示为在fast4/23端口上
Switch#show mac-address-table address 0014.5e19.8345
Unicast Entries
vlan mac address type protocols port
——-+—————+——–+———————+——————–
1 0014.5e19.8345 dynamic ip FastEthernet4/23
3、制作fast4/23的镜像端口->fast4/46
Switch(config)#monitor session 1 source interface fastEthernet 4/23
Switch(config)#monitor session 1 destination interface fastEthernet 5/46
这样,就完成了从查找端口到制作镜像口的操作。