![](https://csdnimg.cn/release/download_crawler_static/15113525/bga.jpg)
-14-
Asuqa#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Asuqa(config)#interface serial 0
Asuqa(config-if)#ip address 10.0.0.2 255.255.255.252
Asuqa(config-if)#clock rate 56000
Asuqa(config-if)#no shutdown
Asuqa(config-if)#end
Asuqa#
Sep 25 16:24:25.347: %SYS-5-CONFIG_I: Configured from console by console
Asuqa#
Sep 25 16:24:25.787: %LINK-3-UPDOWN: Interface Serial0, changed state to up
Asuqa#
Sep 25 16:24:26.791: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0,
changed state to up
Asuqa#
测试一:
Aiko#ping 10.0.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/36/40 ms
Aiko#
Asuqa#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/36/40 ms
Asuqa#
测试二:
Aiko#telnet 10.0.0.2
Trying 10.0.0.2 ... Open
Password required, but none set
[Connection to 10.0.0.2 closed by foreign host]
Aiko#
解释:
在 telnet 到远端路由器的时候,如果对方的 VTY 线路没有设置密码和启用登陆,将拒绝本地路由器 telnet.