R1(config)#username aa password bb
R1(config)#line vty 0 4
R1(config-line)#login local
R2(config)#int f0/0
R2(config-if)#no shutdown
R2(config-if)#ip add 100.1.1.2 255.255.255.0
2、SW1命令部署:
ESW1(config)#no monitor session 1
ESW1(config)#no monitor session 2
This platform only supports 1 sessions
This platform only supports 1 sessions
ESW1(config)#monitor session 1 source interface f1/0 - 1 both //received的缩写是:rx,transmitted的缩写是:tx
ESW1(config)#monitor session 1 destination interface f1/2
四、验证:
R1#ping 100.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2 seconds:.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/24/32
R2#telnet 100.1.1.1
Trying 100.1.1.1 ... Open
User Access Verification
Username: aa
Password:
R1>
结论:R2远程登录R1后,任何命令操作都能看到
17-SPAN:Switch port analyzer //GNS3 2.1.5
原文:http://blog.51cto.com/13856092/2137342