亚洲 日韩 激情 无码 中出,无码人妻久久一区二区三区蜜桃,亚无码乱人伦一区二区,四虎影视永久免费观看,四虎成人精品一区二区免费网站

路由器基本配置命令-如何用命令配置路由器

小編:小丟 更新時(shí)間:2022-08-03 23:51

1.1:配置console永不超時(shí)命令。

1.2:配置console的日志同步,關(guān)閉域名解析。

1.3:配置設(shè)備時(shí)間。

1.4:配置console密碼,特權(quán)模式密碼,VTY線路密碼。

1.5:配置標(biāo)識(shí)符(banner)和接口描述信息。

路由器基本配置命令-如何用命令配置路由器

拓?fù)鋱D

Router>enable //特權(quán)模式

Router#configure terminal //全局配置模式

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

Router(config)#hostname R1 //配置設(shè)備名字為R1

R1(config)#line console 0 //進(jìn)入console 0接口

R1(config-line)#exec-timeout 0 0 //配置console永不超時(shí)。

R1(config-line)#logging synchronous // 配置console日志同步,輸入命令時(shí)不會(huì)被信息打斷。

R1(config)#no ip domain lookup //關(guān)閉域名解析

R1#clock set 20:24:29 4 oct 2020 //修改設(shè)備時(shí)間為20:24:29 4 oct 2020

R1(config)#clock timezone GMT +8 //修改時(shí)區(qū)

R1#show clock //查看設(shè)備時(shí)間

04:25:52.732 GMT Mon Oct 5 2020

R1(config)#line console 0 //進(jìn)入console 0接口

R1(config-line)#password cisco //配置console密碼cisco

R1(config-line)#login //配置使上述密碼生效,且登入時(shí)需要密碼。

R1(config)#enable password cisco //配置特權(quán)enable明文密碼cisco

R1(config)#enable secret cisco //配置特權(quán)enable密文密碼cisco

The enable secret you have chosen is the same as your enable password.

This is not recommended. Re-enter the enable secret. //密文密碼生效。

R1(config)#line vty 0 4 //進(jìn)入vty虛擬線路

R1(config-line)#password cisco //配置VTY密碼cisco

R1(config-line)#login //配置使上述密碼生效,且登入時(shí)需要密碼。

R1(config)#service password-encryption //配置使明文密碼顯示加密,保證安全。

R1(config)#banner motd # //配置標(biāo)識(shí)符,登入設(shè)備時(shí)顯示信息以#開(kāi)始。

Enter TEXT message. End with the character '#'. //表示以#結(jié)尾

hello word //標(biāo)識(shí)的內(nèi)容

# //和開(kāi)始的符號(hào)一致,表示以#結(jié)尾。

R1(config)#interface ethernet 0/0 //進(jìn)入接口E0/0

R1(config-if)#ip address 12.1.1.1 255.255.255.0 //配置IP地址為12.1.1.1

R1(config-if)#description R1toR2 //配置接口描述信息R1toR2