《实验6路由器的基本配置》由会员分享,可在线阅读,更多相关《实验6路由器的基本配置(2页珍藏版)》请在金锄头文库上搜索。
1、实验 6 路由器的基本配置 2007 年 12 月 21 日 星期五 17:49 实验名称实验名称 配置路由器支持 Telnet。 实验目的实验目的 掌握路由器的管理特性,学会配置路由器支持 Telnet 操作的相关语句。 实现功能实现功能 网络管理人员可以通过 Telnet 对路由器进行远程管理。 实验设备实验设备 锐捷 R1762 路由器 1 台。 实验步骤实验步骤 1. telnet 172.16.X.1(X 为每组的组号) 2. 在下图中输入密码 star 回车后,选择 D0 设备。(取值范围为 D0-D2)同组 内每个用户不能选择相同的设备) 3. 在命令提示符下输入 enable,
2、然后输入密码 star,进入特权模式。 Router0enable(进入特权模式) Password: 4. 进入全局配置模式。 Router0# configure terminal(进入全局配置模式) 5. 设置路由器的名称。 Red-Giant(config)#hostname RouterAB(设置路由器的名称,其中 A 为组号,B 为设备顺序号。) Router21(config)#interface fastEthernet 1/0(设置以太网 0 号端口) Router21(config-if)#ip address 172.16.2.10 255.255.255.0(为该端口设
3、置 IP) Router21(config-if)#no shutdown(开启路由器 fastEthernet 1/0 接口) Router21#show ip interface fastEthernet1/0(显示刚才配置的信息) 运行结果如下: FastEthernet 1/0 IP interface state is: DOWN IP interface type is: BROADCAST IP interface MTU is: 1500 IP address is:172.16.2.10/24 (primary) IP address negotiate is: OFF Fo
4、rward direct-boardcast is: ON ICMP mask reply is: ON Send ICMP redirect is: ON Send ICMP unreachabled is: ON DHCP relay is: OFF Fast switch is: ON Route horizontal-split is: ON Help address is: 0.0.0.0 Proxy ARP is: ON Outgoing access list is not set.Inbound access list is not set. 6. 配置路由器远程登录密码。 Router21(config)#line vty 0 4 Router21(config-line)#login Router21(config-line)#password star Router21(config-line)#exit Router21(config)#enable password star Router21(config)#exit Router21#copy running-config startup-config 7. 显示配置内容 Router21#show running-config 8.此时再断开连接,然后再重新登录,验证密码是否生效。