思科路由器的配置和测试网络
01
配置文件是路由器上的两种永久性文件之一,是管理路由器的唯一途径;另一个文件是IOS文件,是不可修改的。
运行配置文件 running-configuration ---- 用于设备的当前工作过程中。
启动配置文件 startip-configuration --- 用作备份配置,在设备启动时加载。
02
设备基本配置四种模式
注:在全局配置模式下做出了更改,最好是将更改保存到 NVRAN内的启动配置文件中。
Router#copy running-config startup-config
Router#reload # 还原到配置前的状态
Router#erase startup-config # 删除所有配置
或 erase NVRAN:startup-config
Description XXXXX # Description 创建描述
# 恢复默认主机名
Router(config)#hostname AtlantaHQ
AtlantaHQ(config)#no hostname
03
配置口令:
控制台口令——用于限制人员通过控制台连接访问设备;
Router(config)#line console 0
Router(config-line)#password password
Router(config-line)#login
辅助口令——用于限制人员通过辅助端口连接访问设备;
Router(config)#line aux 0
Router(config-line)#password password
Router(config-line)#login
远程登录 口令——用于限制人员通过 Telnet 访问设备;
Router(config)#line vty 0 4 # virtual type
0-15 自己分配
Router(config)#enable secret PWD # 加密口令
仅当enable password没有使用
Router(config)#password PWD
Router(config)#login
04
加密显示口令:
Router(config)# service password-encryption
以及我自己的公众号:大学生你懂得