




已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
锐捷路由器的配置一、路由器基本配置命令/*由远程终端登录路由器*/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 192.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 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 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重新启动路由器/*配置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密码相同二、路由器密码丢失的处理方法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/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:此时密码及路由器信息被清除,你就可以顺利进入路由器了 可以归纳为“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 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 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)#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.255.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, memory, 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为Serial 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发布初始度量值。 (一)配置命令 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配置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的工作状态 (二)实验模型 拓朴图如下,用RIP配置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 Router(config)#int f1 Router(config-if)#ip add 192.168.2.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#int s0 Router(config-if)#ip add 10.1.1.2 255.255.255.252 Router(config-if)#no shutdown Router(config-if)#exit /*开启RIP路由功能, 配置Network命令*/ Router(config)#router rip Router(config-router)#version 2 Router(config-router)#no auto-summary Router(config-router)#network 10.1.1.0 Router(config-router)#network 172.16.1.0 Router(config-router)#network 172.16.2.0 Router(config-router)#end /*查看配置信息,并测试配置正确与否*/ Router#show ip route Router#show ip protocols Router#debug ip rip Router#no debug all Router#ping 192.168.1.1 Router#ping 172.16.1.1 Router#ping 172.16.2.1 接下来,在另一台路由器上进行相应配置,并测试互连互通。实验完成! 五、交换机、路由器配置步骤简要说明 (一)配置说明 01、首先连接好设备,确保连接正确; 02、用超级终端进入路由器,如果忘记了密码,请按密码破解方法清除设置,还原默认设置; 03、查看各接口配置信息,“Show ip interface brief”,看以前的配置有没有保存在机器里面,视情进行清除设置; 04、查看交换机、路由器的配置,“show running-config”; 05、按自己的需要给交换机和路由器命名,以便于区分,“hostname XXXXXX”; 06、按照配置需求对交换机、路由器的各接口进行配置,配置之前最好查看一下接口时钟类型: show controllers serial 0 clock rate 64000 no shutdown 记住:对接口配置完退至上一级时一定要保存配置,即“no shutdown”; 07、配置完毕后,退至特权模式下,检查配置的正确与否。 (二)故障排除 如果两台路由器或交换机之间不能互连互通,请按照下列步骤进行检查: 01、检查Serial接口的时钟频率; 02、检查同一介质上两个接口的IP地址是不是在同一网段; 03、配置完接口后有没有“no shutdwon”; 04、接口的封装协议是否相同; 05、有没有把IP地址配置错误。 (三)三层交换机的有关说明 01、管理二层交换机的IP地址只有一个生效,且为最后一个“no shutdown”; 02、创建一个Vlan,至少一个,为了冗余备份。 六、OSPF动态路由配置实验 配置步骤:01、确定Area 0;02、激活进程号;03、反向掩码;04、主干链路区域为0。 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.8.1 255.255.255.0 router(config-if)#no shutdown router(config-if)#exit router(config)#int f1 router(config-if)#ip add 192.168.2.1 255.255.255.0 router(config-if)#no shutdown router(config-if)#exit router(config)#int s0 router(config-if)#ip add 192.168.1.2 255.255.255.0 router(config-if)#no shutdown router(config-if)#exit router(config)#int s1 router(config-if)#ip add 192.168.3.2 255.255.255.0 router(config-if)#no shutdown router(config-if)#int loopback 4 router(config-if)#ip add 12.12.1.1 255.255.255.0 router(config-if)#no shutdown router(config-if)#int loopback 5router(config-if)#ip add 12.12.2.1 255.255.255.0 router(config-if)#no shutdown router(config-if)#int loopback 6router(config-if)#ip add 12.12.3.1 255.255.255.0 router(config-if)#no shutdown router(config-if)#exit /*配置OSPF路由协议*/ router(config)#router ospf 11激活进程号 router(config-router)#network 192.168.1.0 0.0.0.255 area 0申明自治区域0 router(config-router)#network 12.12.1.0 0.0.0.255 area 1申明自治区域1 router(config-router)#network 12.12.2.0 0.0.0.255 area 1 router(config-router)#network 12.12.3.0 0.0.0.255 area 1 router(config-router)#end router#show ip protocols router#show ip interface brief router#show ip ospf neighbor 七、访问控制列表 Router#con Configuring from terminal, memory, or network terminal? t /*让用户D不能远程登录A*/ Router(config)#access-list 103 deny tcp host 192.168.3.139 host 192.168.5.165 eq 23 Router(config)#access-list 103 permit ip any any Router(config)#int Serial 0 Router(config-if)#ip access-group 103 out /*记用户A不能问网络,而用户B能够访问网络*/ Router(config)#access-list 12 deny 192.168.5.0 0.0.0.255 Router(config)#access-list 12 permit 192.168.6.0 0.0.0.255 Router(config)#int serial 0 Router(config-if)#ip access-group 12 out Router(config-if)#no shutdown Router(config-if)#end Router#show ip access-list 八、封装PPP协议验证 User Access Verification Password: routeren Password: router#con Configuring from terminal, memory, or network terminal? t Red-Giant(config)#hostname Router Router(config)#enable password star Router(config)#line vty 0 4 Router(config-line)#login Router(config-line)#password star Router(config-line)#end Router#show ip in b Router#con Configuring from terminal, memory, or network terminal? t Router(config)#int f0 Router(config-if)#ip add 192.168.2.1 255.255.255.0 Router(config-if)#no sh Router(config-if)#exit Router(config)#int f1 Router(config-if)#ip add 192.168.3.1 255.255.255.0 Router(config-if)#no shu Router(config)#int s0 Router(config-if)#clock rate 64000 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shu Router(config-if)#end Router#con Configuring from terminal, memory, or network terminal? t Router(config)#router ospf 11 Router(config-router)#network 192.168.1.0 0.0.0.255 area 0 Router(config-router)#network 192.168.2.0 0.0.0.255 area 1 Router(config-router)#n
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 人才激励与绩效管理-洞察及研究
- 2025年船用锚链行业研究报告及未来行业发展趋势预测
- 国际团队沟通障碍突破-洞察及研究
- 重冶制团制粒工综合考核试卷及答案
- 2025年IT服务管理行业研究报告及未来行业发展趋势预测
- 2025年智慧物流运输行业投资机会分析报告
- 2025年AI机器视觉行业研究报告及未来行业发展趋势预测
- 2025年VIP芯材行业研究报告及未来行业发展趋势预测
- 2025年防水建筑材料制造行业研究报告及未来行业发展趋势预测
- 数字孪生城市能源优化策略-洞察及研究
- 消防避火服课件教学
- 土地法学教学课件电子教案课件
- 小学二年级上册心理健康教案(适合北京教育出版社)
- 2025年时事政治考试题及参考答案(100题)
- 林区施工防火管理制度
- 代办报建合同协议书
- 2024有限公司生产安全事故应急预案
- 三级养老护理员职业技能鉴定理论考试题(附答案)
- 化药口服固体制剂连续制造技术指导原则(试行)
- 特种设备安全管理培训课件
- 建筑工程施工质量事故应急预案
评论
0/150
提交评论