计算机网络/计算机科学与应用/系统/运维/开发

1、登陆路由器



pc机连接串口

路由器连接console口


image.png


image.png


image.png


image.png


image.png


image.png


退出特权模式  或者是用exit 也可以

Rt99a#disable  

Rt99a#logout 退出登录状态


Password:

Password:


Rt99a>

Rt99a>

Rt99a>enable

Password:

Rt99a#

Rt99a#conf t

Rt99a#conf terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Rt99a(config)#

Rt99a(config)#


模拟远程登陆(新增设备)


image.png

Rt99a#conf t

Rt99a#conf terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Rt99a(config)#

Rt99a(config)#

Rt99a(config)#

Rt99a(config)#line vty

Rt99a(config)#line vty  0 4  #允许四个终端

Rt99a(config-line)#pas

Rt99a(config-line)#password 99vty04    #配置口令


image.png


Rt99a(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up


Rt99a(config-if)#

Rt99a(config-if)#end   # 退出

Rt99a#

%SYS-5-CONFIG_I: Configured from console by console


Rt99a#

Rt99a#wr

Rt99a#write   # 保存配置

Building configuration...

[OK]

Rt99a#


pc主机ping

image.png


image.png


总结:


所用命令:

image.png


命名规则


image.png


image.png


ip地址分配规则

image.png


只要认真对待生活,终有一天,你的每一份努力,都将绚烂成花。

评论

^