实训:路由器访问与配置
2/0接口。
2、分别两个配置路由器的管理IP地址,并为telnet用户配置用户名和登录口令。
配置计
算机的IP地址,通过网线将计算机和路由器相连,通过计算机telnet到路由器上进行查看配置。
3、将两个路由器的主机名分别更改为RA和RB。
4、显示当前配置信息。
5、配置路由器的远程密码。
6、显示历史命令:
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RA
RA(config)#interface fastethernet 0/0
RA(config-if)#ip address 192.168.1.1 255.255.255.0
RA(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
RA(config-if)#exit
RA(config)#interface fastethernet 1/0
RA(config-if)#ip address 10.10.1.1 255.255.255.0
RA(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
RA(config-if)#exit
RA(config)#inerface serial 2/0
^
% Invalid input detected at '^' marker.
RA(config)#interface serial 2/0
RA(config-if)#ip address 172.159.1.1 255.255.255.0
RA(config-if)#clock rate 64000
RA(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
RA(config-if)#exit
RA(config)#line vty 0 4
RA(config-line)#password star
RA(config-line)#login
RA(config-line)#end
RA#
%SYS-5-CONFIG_I: Configured from console by console
RA#en
RA#config t
Enter configuration commands, one per line. End with CNTL/Z.
RA(config)#enable secret abc
RA(config)#enable password star
RA(config)#exit
RA#
%SYS-5-CONFIG_I: Configured from console by console
RA#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES manual up up
FastEthernet1/0 10.10.1.1 YES manual up down
Serial2/0 172.159.1.1 YES manual down down
Serial3/0 unassigned YES unset administratively down down
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
RA#
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RB
RB(config)#interface fastethernet 0/0
RB(config-if)#ip address 192.168.1.2 255.255.255.0
RB(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
RB(config-if)#exit
RB(config)#interface serial 2/0
RB(config-if)#ip address 192.168.3.1 255.255.255.0
RB(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
RB(config-if)#exit
RB(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
RB(config)#end
RB#
%SYS-5-CONFIG_I: Configured from console by console
RB#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.2 YES manual up up
FastEthernet1/0 unassigned YES unset administratively down down
Serial2/0 192.168.3.1 YES manual up up
Serial3/0 unassigned YES unset administratively down down
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down RB#
1、验证进入特权模式的密码
实训成绩:指导教师签名:实训日期:。