文档介绍:: .
锐捷路由器的配置
、路由器基本配置命令
/* 由远程终端登录路由器 */
Red-Giant>enable ——由用户模式进入特权模式
Password:****** ——输入密码
Red-Giant#configure ——由特权模式进入全局配置模式
——输入 t 继续
0 接口模式
0 接口模式
Configuring from terminal, memory, or network [terminal] t Red-Giant(config)#hostname Router ——修改路由器名称 /* 配置接口 IP 地址 */
Router(config)#interface fastethernet 0 ——进入以太网口
Router(config-if)#ip address ——为其配置 IP 地址
Router(config-if)#no shutdown ——启用配置
Router(config-if)#exit ——退至配置模式
Router(config)#interface fastethernet 1 ——进入以太网口
Router(config-if)#ip address ——为其配置 IP 地址
Router(config-if)#no shutdown ——启用配置
Router(config-if)#exit ——退至配置模式
Router(config)#interface serial 0 ——进入 Serial 0 接口模式
Router(config-if)#ip address ——为其配置 IP 地址
Router(config-if)#no shutdown ——启用配置
Router(config-if)#exit ——退至配置模式
Router(config)#interface serial 1 ——进入 Serial 1 接口模式
Router(config-if)#ip address ——为其配置 IP 地址
Router(config-if)#no shutdown ——启用配置
Router(config-if)#end ——退至特权模式
Router#write ——保存配置信息
Router(config)#interface loopback 0 ——新建 Loopback 0
Router(config-if)#ip add ——为其配置 IP 地址
新建 Loopback 1
Router(config-if)#int loopback 1
Router(config-if)#ip add ——为其配置 IP 地址
Router(config-if)#end ——退至特权模式
/* 查看路由器相关配置信息 */
Router#show ip interface brief ——查看配置状态
Router#show version ——显示路由器版本信息
Router#show ip interface fastethernet 0 ——查看以太网口 0 接口配置状态
Router#show running-config ——显示当前运行的配置参数
Router#show startup-config ——显示 NVRAM 中中配置参数的副本
Router#copy running-config startup-config ——将当前运行的配置参数复制到 NVRAM
Router#erase startup-config ——清空 NVRAM 中的配置参数
Router#reload ——重新启动路由器
/* 配置 console 登陆密码 */
Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password star
/* 配置 VTY 登陆密码 */
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password star
/* 配置特权模式登录密码 */
Router(config)#enable password star ——配置明文密码
Router(config)#enable secret star ——配置的密码不能与 password