如果都配置了 enable secretenable password 则使用secret的密码
rout(config)#line con 0 //单一的控制线路 rout(config)#passwd yourpw ...line aux 0 //单一的辅助线路 ...passwd yourpw ...line vty 0 4 //可以有5个telnet用户一起连接 ...passwd yourwd
![](file:///C:/Users/Administrator/AppData/Local/youdao/ynote/images/B985A9B809A149E39F6D753A8D190F59/clipboard.png)
![](file:///C:/Users/Administrator/AppData/Local/youdao/ynote/images/386A07CB598643A7A5FCC6B46F0E70D4/clipboard.png)
C代表直连的,R代表学习的
![](file:///C:/Users/Administrator/AppData/Local/youdao/ynote/images/B985A9B809A149E39F6D753A8D190F59/clipboard.png)
show running-config 用来显示保存RAM中的配置文件
show startup-config 用来显示保存NVRAM中的配置文件
命令前面加no 撤销前一条命令
路由器最好使用IP网段的第一个或者最后一个地址
MOTD每次登陆路由器时显示的信息,配置实用命令,banner motd $ input your information-----$
![](file:///C:/Users/Administrator/AppData/Local/youdao/ynote/images/B09A71C9883C4836A00C01789B3C2CBC/clipboard.png)
修改主机IP地址映射到路由器的DNS中,ip host name 192.168.1.1
![](file:///C:/Users/Administrator/AppData/Local/youdao/ynote/images/D6882180385F463C82400F8581B5D3C2/clipboard.png)
![](file:///C:/Users/Administrator/AppData/Local/youdao/ynote/images/74EC412E48984D7C9E5C8506063B9500/clipboard.png)
RAM中保存着运行配置文件 running-config
NVERAM中保存着启动配置文件 startup-config
![](file:///C:/Users/Administrator/AppData/Local/youdao/ynote/images/F8DCE797A60E41B797F256B00455796A/clipboard.png)
erase (running-config)清除文件内容