锐捷路由器的配置(交换机、路由器配置步骤简要说明).doc
《锐捷路由器的配置(交换机、路由器配置步骤简要说明).doc》由会员分享,可在线阅读,更多相关《锐捷路由器的配置(交换机、路由器配置步骤简要说明).doc(13页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
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
2、 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 192.168.2.1 255.255.255.0为其配置IP地址Router(config-if)#no shutdown启用配置Router
3、(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地
4、址Router(config-if)#no shutdown启用配置Router(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)#
5、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-c
6、onfig清空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配置明文密码Route
7、r(config)#enable secret star配置的密码不能与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、出现提示如
8、下信息,按“N”回车确认: Enable“debug mode?”y/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 in
9、itial configuration dialog?Yes:此时密码及路由器信息被清除,你就可以顺利进入路由器了 可以归纳为“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
10、地址*/ Routeren Password: Router#con 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 s
11、hutdown Router(config-if)#exit Router(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
12、)#end /*新增Loopback1、Loopback2并为其配置IP地址*/ 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.2
13、55.255.0 Router(config-if)#no shutdown 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, memor
14、y, or network terminal? t Router(config)#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为S
15、erial 0封装PPP协议 Router(config-if)#end /*测试路由配置信息及互联互通*/ 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
16、发布初始度量值。 (一)配置命令 User Access Verification Password: Routeren Password: Router#con Configuring from terminal, memory, or network terminal? t Router(config)#router rip开启路由功能 Router(config-router)#version 2升级至版本2 Router(config-router)#no auto-summary在主类边界关闭自动汇总 Router(config-router)#network 192.168.1.0
17、配置network命令 Router(config-router)#maximum-paths 4配置均衡负载,缺省值为4 Router(config-router)#default-metric 1配置RIP发布初始度量值,建议设置为1 Router#show ip protocols验证RIP的配置 Router#show ip route显示路由表的信息 Router#clear ip route清除IP路由表的信息 Router#debug ip rip在控制台显示RIP的工作状态 Router#no debug all清除控制台显示RIP的工作状态 (二)实验模型 拓朴图如下,用RI
18、P配置Route-A和Route-B之间的路由。 /*配置F0、F1和S0端口IP地址*/ User Access Verification Password: Routeren Password: Router#con Configuring from terminal, memory, or network terminal? t Router(config)#int f0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#exit Route
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 路由器 配置 交换机 步骤 简要 说明
限制150内