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(co
2、nfig-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 192.168.2.1 255.255.255.0为其配置IP地址Router(config-if)#no shutdown启用配置Router(config-if)#exit退至配置模式Router(config
3、)#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启用配置R
4、outer(config-if)#end退至特权模式Router#write保存配置信息Router(config)#interface loopback 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
5、 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-config清空NVRAM中的配置参数Router#reload重新启动
6、路由器/*配置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配置的密码不能
7、与password密码相同二、路由器密码丢失的处理方法01、关闭路由器,重新登录超级终端,按默认方法设置;02、启动路由器,不停地按Ctrl+Pause Break,直至出现Boot:提示符,输入Setup-Reg; Boot:Setup-Reg03、出现如下提示信息,按“Y”回车确认: Do you wish to change the configuration?y/nn:04、出现提示如下信息,按“Y”回车确认: Enable“bypass the system configure file”y/nn:05、出现提示如下信息,按“N”回车确认: Enable“debug mode?”y/
8、nn:06、出现提示如下信息,按“N”回车确认: Enable“user break/abort enabled?”y/nn:07、出现提示如下信息,按“N”回车确认: Change console speed?y/nn:08、出现提示如下信息,按“N”回车确认: Do you wish to change the configuration?y/nn:09、出现提示符“Boot:”,输入Reset; Boot:reset10、出现提示如下信息,按“N”回车确认: Would you like to enter the initial configuration dialog?Yes:此时密码
9、及路由器信息被清除,你就可以顺利进入路由器了 可以归纳为“Setup-Reg,两个Y五个N,Reset”。 三、静态路由配置 两台路由器,其中Route A(S0:192.168.3.1,F1:192.168.2.1,Loopback 1:12.12.1.1,Loopback 2:12.12.2.1),Route B(S0: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地址*/ Routeren Password: Router#con
10、Configuring from terminal, memory, or network terminal? t Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#int f1 Router(config-if)#ip address 192.168.2.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#exit Rout
11、er(config)#int s0 Router(config-if)#ip address 192.168.3.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#exit Router(config)# Router(config)#int s1 Router(config-if)#ip address 192.168.4.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#end /*新增Loopback1、Loopback2并为其配置I
12、P地址*/ Router#con Configuring from terminal, memory, or network terminal? t Router(config)#int loopback 1 Router(config-if)#ip address 12.12.1.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#int loopback 2 Router(config-if)#ip address 12.12.2.1 255.255.255.0 Router(config-if)#no shutd
13、own Router(config-if)#exit /*指向下一跳 路由器*/ Router(config)#ip route 10.10.1.0 255.255.255.0 192.168.3.2 Router#show ip interface brief Router#interface serial 0 /*设置接口物理时钟频率*/ Router#show control serial 0查看Serial 0接口型号 Router#configure Configuring from terminal, memory, or network terminal? t Router(co
14、nfig)#int s0 Router(config-if)#clock rate 64000设置接口物理时钟频率为64Kbps(DCE) Router(config-if)#no shutdown Router(config)#end /*为Serial 0封装PPP协议*/ Router#configure Configuring from terminal, memory, or network terminal? t Router(config)#int s0 Router(config-if)#enca ppp为Serial 0封装PPP协议 Router(config-if)#en
15、d /*测试路由配置信息及互联互通*/ Router#show ip route Router#show ip interface brief Router#show running-config Router#Ping 192.168.3.1 Router#Ping 192.168.3.2 Router#Ping 10.10.1.1 接下来,在另一台路由器上进行相应配置,并测试互连互通。实验完成! 四、RIP动态路由配置 配置步骤:1、启用RIP进程;2、配置Network命令;3、配置均载负衡(代价相等);4、配置RIP发布初始度量值。 (一)配置命令 User Access Verification Password: Routeren Password: Rou