路由器命令行和全局配置

时间:2026-02-13 09:12:33

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

路由器命令行和全局配置

© 2026 长短途
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com