1、锐捷路由器配置命令大全(锐捷的路由器如何配置)# 一、路由器基本配置命令# 由远程终端登录路由器Red-Giantenable 由用户模式进入特权模式Password:* 输入密码Red-Giant#configure 由特权模式进入全局配置模式Configuring from terminal, memory, or network terminal? t 输入 t继续Red-Giant(config)#hostname Router 修改路由器名称# 配置接口IP地址Router(config)#interface fastethernet 0 进入以太网口 0接口模式Router(config-if)#ip address 192.168.1.1 255.255.255.0 为其配置 IP地址Router(config-if)#no shutdown 启用配置Router(config-if)#exit 退至配置模式Router(config)#interface fastethernet 1 进入以太网口 0接口模式Router(config-if)#ip address 19
2、2.168.2.1 255.255.255.0 为其配置 IP地址Router(config-if)#no shutdown 启用配置Router(config-if)#exit 退至配置模式Router(config)#interface serial 0 进入 Serial 0 接口模式Router(config-if)#ip address 192.168.3.1 255.255.255.0 为其配置 IP地址Router(config-if)#no shutdown 启用配置Router(config-if)#exit 退至配置模式Router(config)#interface serial 1 进入 Serial 1 接口模式Router(config-if)#ip address 192.168.4.1 255.255.255.0 为其配置 IP地址Router(config-if)#no shutdown 启用配置Router(config-if)#end 退至特权模式Router#write 保存配置信息Router(config)#interface loopbac
3、k 0 新建 Loopback 0Router(config-if)#ip add 10.10.1.1 255.255.255.0 为其配置 IP地址Router(config-if)#int loopback 1 新建 Loopback 1Router(config-if)#ip add 10.10.2.1 255.255.255.0 为其配置 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 将当前运行的配置参数复制到 NVRAMRouter#erase startup
4、-config清空 NVRAM中的配置参数Router#reload重新启动路由器# 配置console 登陆密码Router(config)#line console 0Router(config-line)#loginRouter(config-line)#password star# 配置VTY登陆密码Router(config)#line vty 0 4Router(config-line)#loginRouter(config-line)#password star# 配置特权模式登录密码Router(config)#enable password star配置明文密码Router(config)#enable secret star配置的密码不能与 password密码相同# 二、路由器密码丢失的处理方法关闭路由器,重新登录超级终端,按默认方法设置;启动路由器,不停地按 Ctrl+Pause Break,直至出现 Boot:提示符,输入 Setup-Reg;Boot:Setup-Reg出现如下提示信息,按“ Y”回车确认:Do you wish to change the
5、configuration?y/nn:出现提示如下信息,按“ Y”回车确认:Enable“bypass the system configure file”y/nn:出现提示如下信息,按“ N”回车确认:Enable“debug mode?”y/nn:出现提示如下信息,按“ N”回车确认:Enable“user break/abort enabled?”y/nn:出现提示如下信息,按“ N”回车确认:Change console speed?y/nn:出现提示如下信息,按“ N”回车确认:Do you wish to change the configuration?y/nn:出现提示符“Boot:”,输入Reset;Boot:reset出现提示如下信息,按“ N”回车确认:Would you like to enter the initial configuration dialog?Yes:此时密码及路由器信息被清除,你就可以顺利进入路由器了 可以归纳为“Setup-Reg,两个Y五个N,Reset”。# 三、静态路由配置两台路由器,其中 :Route AS0:192.168.3.
6、1 ,F1:192.168.2.1 ,Loopback 1:12.12.1.1 ,Loopback 2:12.12.2.1Route BS0:192.168.3.2 ,F0:192.168.5.1 ,Loopback 3:10.10.1.1 ,Loopback 4:10.10.2.1具体配置如下:!锐捷路由器配置命令大全(锐捷的路由器如何配置)(# 登录路由器并配置 F0、F1、S0、S1的IP地址RouterenPassword:Router#conConfiguring from terminal, memory, or network terminal? tRouter(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int f1Router(config-if)#ip address 192.168.2.1 255.255.255.0Router(config-if)#no shutdownRouter
7、(config-if)#exitRouter(config)#int s0Router(config-if)#ip address 192.168.3.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#Router(config)#int s1Router(config-if)#ip address 192.168.4.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#end# 新增Loopback1、Loopback2并为其配置 IP地址Router#conConfiguring from terminal, memory, or network terminal? tRouter(config)#int loopback 1Router(config-if)#ip address 12.12.1.1 255.255.255.0Router(config-if)#no shutdownRouter(c
8、onfig-if)#int loopback 2Router(config-if)#ip address 12.12.2.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exit# 指向下一跳 路由器Router(config)#ip route 10.10.1.0 255.255.255.0 192.168.3.2Router#show ip interface briefRouter#interface serial 0# 设置接口物理时钟频率Router#show control serial 0 查看Serial 0 接口型号Router#configureConfiguring from terminal, memory, or network terminal? tRouter(config)#int s0Router(config-if)#clock rate 64000 设置接口物理时钟频率为 64Kbps(DCE)Router(config-if)#no shutdownRouter(config)#end# 为Serial 0 封装PPP协议Router#configureConfiguring from terminal, memory, or network terminal? tRouter(config)#int s0Router(config-if)#enca ppp 为Serial 0 封装PPP协议Router(co
《锐捷路由器配置命令大全(锐捷的路由器如何配置)》由会员辽***分享,可在线阅读,更多相关《锐捷路由器配置命令大全(锐捷的路由器如何配置)》请在金锄头文库上搜索。