路由器命令行和全局配置

2025-10-03 18:26:27

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

路由器命令行和全局配置

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢