路由器命令行和全局配置
1、 将路由器的f0/0端口指定一个IP地址192.168.0.1/24,设置虚拟终端登入密码为“cisco”,
进入特权模式的明文密码为“cisco”,密文密码为“cisco1”;
R1#config ter
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface f0/1
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#end
R1#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#exit
R1(config)#enable password cisco
R1(config)#enable secret cisco1
R1(config)#exit
2、将PC机通过Ethernet连接到路由器的FastEthernet0/1端口,并用Telnet方式登入到路由器;


3、设置路由器名为RTA,为路由器console口设置密码为“cisco”;
Router>ENABLE
Router#config ter
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host RTA
4、查看当前内存的配置信息,正确保存到NVRAM中。
show running-config
