telnet loopback
接口
首先
telnet
需要配置
vty
密码,然后配置特权模式密码
配置
loopback
接口后需要将其发布
下面是基本的端口配置与网络发布
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#line con 0
R1(config-line)#logging syn
R1(config-line)#exec 0 0
R1(config-line)#exit
R1(config)#
R1(config)#
R1(config)#int s0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no sh
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R1(config-if)#
R1(config-if)#
R1(config-if)#int e0
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
R1(config-if)#ip add 192.168.10.1 255.255.255.0
R1(config-if)#no sh
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
R1(config-if)#
R1(config-if)#int loopback 0
R1(config-if)#ip add 10.1.1 .1 255.255.255.0
此处要求后面的
rip
使用版本
2
R1(config-if)#exit
R1(config)#
R1(config)#router rip
R1(config-router)#ver 2 rip v1
是不支持
VLSM
的
R1(config-router)#net 192.168.1.0
R1(config-router)#net 192.168.10.0
R1(config-router)#net 10.1.1 .0
R1(config-router)#exit
接着配置密码
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#line vty 0 4
R1(config-line)#password 123
R1(config-line)#login
R1(config-line)#
R1(config-line)#exit
R1(config)#enable sec 123
R1(config)#exit
因为这个实验是在
boson
上作的,需要配置时钟频率
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int s0
R1(config-if)#clock rate 64000
R1(config-if)#exit
下面是
rip
发布结果
Router#sh ip rou
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF , IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
C 192.168.1.0 is directly connected, Serial0
C 192.168.20.0 is directly connected, Ethernet0
10.0.0 .0/24 is subnetted, 2 subnets
C 10.1.2 .0 is directly connected, Loopback0
R 10.1.1 .0 [120/1] via 192.168.1.1, 00:05:26, Serial0
R 192.168.10.0 [120/1] via 192.168.1.1, 00:04:40, Serial0
下面开始
telnet
结果
R1#telnet 10.1.2 .1
Trying 10.1.2 .1 ... Open
本文出自 “海阔天空” 博客,谢绝转载!