




已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
10DZYNQ-BLGLA-ZJKMY-UBDSZenable 从非特权模式进入特权模式conf t 进入全局配置模式hostname RX 配置一个路由器的名字no ip domain-lookup 去消域名解析 禁用 DNS 查找ip classless 支持可变长子网掩码长度ip subnet-zero 支持零子网int fa2/0 配接口ip address IP地址no shutdown 激活end 返回特权模式show ip interface brief 显示接口的状况对路由器应用启动脚本之前,需要对某些命令进行编辑或添加一些命令。其中一些更改包括:为正在使用的 FastEthernet 接口和串行接口添加 no shutdown 命令。将 enable secret 命令中的加密文本替换成正确的口令。从接口中清除 mac-address 命令。清除 ip classless 命令。清除不使用的接口。 路由器基本配置命令语法为路由器命令 Router(config)#hostname name设置口令 Router(config)#enable secret password 设置进入特权执行模式的加密口令 Router(config)#Line console 0 进入控制台线路的线路配置模式 Router(config-line)#password password设置控制台口令 Router(config-line)#Login 来要求登录时输入口令 Router(config)#line vty 0 4 进入所有五条虚拟终端线路的线路配置模式 Router(config-line)#password password 设置 vty 口令 Router(config-line)#login 来要求登录时输入口令按 Ctrl+z 退出配置模式。输入命令 copy running-config startup-config,将更改保存到 NVRAM。出现提示时,按 Enter 确认目标文件名配置登录提示文字 Router(config)#banner motd # message #配置接口 Router(config)#interface type number Router(config-if)#ip address address mask Router(config-if)#description description Router(config-if)#no shutdown保存路由器更改 Router#copy running-config startup-config 使用 copy running-config startup-config 命令保存 Router 配置检查show命令的输出 Router#show running-config 显示当前运行配置文件的内容 Router#show ip route Router#show ip interface brief Router#show interfaces路由器第一次启动时会进入设置模式,以便用户执行基本路由器配置。Packet Tracer 仅支持基本的管理设置,因此您只能配置一个接口来连接到管理系统,从而通过该系统执行其余配置。清除所有现有配置:RouterenableRouter#erase startup-config 重新启动路由器:RouterenableRouter#reload输入 yes 确认使用配置对话框 Continue with configuration dialog? yes/no: yes configuration:n. 配置;结构;外形 dialog:n. 对话;会话键入 yes 以便输入基本管理设置 Would you like to enter basic management setup? yes/no: yes输入 class 作为使能加密口令 Enter enable secret: class输入 cisco 作为使能口令 Enter enable password: cisco输入 cisco 作为虚拟终端口令 Enter virtual terminal password: cisco输入 FastEthernet0/0 作为用来连接到管理网络的接口 Enter interface name used to connect to themanagement network from the above interface summary: FastEthernet0/0接受默认设置以将此配置保存到 nvram 并退出 Save this configuration to nvram and exit输入命令 enable secret class,设置进入特权执行模式的加密口令。输入命令 line con 0 进入控制台线路的线路配置模式。注意提示符发生了改变。输入命令 password cisco 设置控制台口令。输入命令 login 来要求登录时输入口令。输入命令 exit 返回全局配置模式。输入命令 line vty 0 4 进入所有五条虚拟终端线路的线路配置模式。输入命令 password cisco 设置 vty 口令。输入命令 login 来要求登录时输入口令。按 Ctrl+z 退出配置模式。输入命令 copy running-config startup-config,将更改保存到 NVRAM。出现提示时,按 Enter 确认目标文件名。校验配置:show running-config 显示当前运行配置文件的内容show startup-config 显示启动配置show ip routeshow interfaces 显示所有接口的统计信息show ip interface brief 显示每个接口的使用情况信息摘要show version 显示有关当前加载软件版本的信息,以及硬件和设备信息路由器创建路由表时会首先添加自身接口上配置的 IP 地址所在的网络。这些网络是与该路由器直接相连的网络。当所有的接口均已配置有正确的地址,但接口状态为shutdown,是不是在激活这些接口是不需在ip address ip mask?静态路由由网络管理员配置,包括远程网络的网络地址和子网掩码,以及下一跳路由器的 IP 地址或本地路由器的送出接口。路由器能够通过静态路由或动态路由获知远程网络。RouterenableRouter#show ip routeRouter#configure terminalRouter(config)#ip route Router(config)#end静态路由是由网络管理员配置的,它包括:? 网络地址。? 远程网络的子网掩码。? 下一跳路由器的 IP 地址或本地路由器的送出接口。动态路由协议可让路由器从其它路由器那里自动获知远程网络。通过路由协议获知的网络以及到达每个网络的最佳路径会自动加入路由表中。一、用户模式Router二、特权模式Routerenablepassword:Router#三、设置模式四、全局配置模式Router#configure terminalEnter configuration commands,one per line,End with CNTL/ZRouter(config)#五、其它配置模式1、接口配置模式Router(config)#int f0/12Router(config-if)#2、虚拟终端配置模式Router(config)#line vty 015 Router(config-line)#3、RIP路由协议配置模式Router(config)#router ripRouter(config-router)#六、RXBOOT模式设置系统时钟Router#calendar set 10:24:00 22 march 2007保存配置Router#write memoryRouter#write networktftp删除配置Router#write erase网络的基本检测命令1、telnetRoutertelnet parisRouter2、pingRouterping 10Type escape sequenc to abort.Sending 5,100-byte ICMP Echos to 10,timeout is 2 seconds:!Success rate is 100 percent(5/5),round-trip min/avg/max=4/4/4ms3、traceRoutertrace 3Routertraceroute 4、showa、查看flash:Routershow flash System flash directory: File length Name/status.b、查看系统时钟Routershow clock*23:36:09.614 UTC Thu Apr 14 1994Routerc、查看路由器软、硬件版本Routershow versionCisco internetwork Operating System Software.d、查看路由器配置Router#show configurationUsing 6907 out of 32762 bytes!.e、查看路由表Router#show ip route f、查看IP路由协议的详细信息:Router#show ip protocolsRouting Protocol is rip.接口配置1、配置接口描述信息Router(config)#int g6/0Router(config-if)#description To-Beijing Roreign Studies UniversityRouter(config-if)#(注:描述信息说明该接口连接到北京外国语大学)2、配置接口带宽Router(config)#interface POS3/0Router(config-if)#bandwidth 2500000 (设置接口带宽为2.5Gbps)Router(config-if)#3、配置接口的IP地址Router(config)#interface f2/3Router(config-if)#ip address 49 52Router(config-if)#4、接口的开启与关闭Router(config)#interface f2/3Router(config-if)#shutdown (关闭接口)Router(config-if)#Router(config-if)#no shutdown (开启接口)Router(config-if)#局域网接口配置1、配置标准以太网接口Router(config)#interface Ethernet0Router(config-if)#description To HuabeiDiQuWANGRouter(config-if)ip address Router(config-if)#bandwidth 10000Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#exitRouter#2、配置快速以太网接口Router(config)#interface f2/1Router(config-if)#description To-XianDaiKuan-YuanXiaoRouter(config-if)#ip address 45 40Router(config-if)#bandwidth 100000Router(config-if)#duplex fullRouter(config-if)#no ip directed-broadcastRouter(config-if)#no ip proxy-arpRouter(config-if)#no shutdownRouter(config-if)#exitRouter(config)#exitRouter#3、配置千兆以太网接口Router(config)#interface g0/1Router(config-if)#description To-BeiJingWaiGuoYuDaXueRouter(config-if)#ip address 9 52Router(config-if)#bandwidth 1000000Router(config-if)#duplex fullRouter(config-if)#no ip directed-broadcastRouter(config-if)#no ip proxy-arpRouter(config-if)#no shutdownRouter(config-if)#exitRouter(config)#exitRouter#广域网接口配置1、配置异步串行接口Router(config)#interface a1Router(config-if)#ip unnumbered ethernet0Router(config-if)#iencapsulation pppRouter(config-if)#async default ip address 202.332.7.129Router(config-if)#async dynamic routingRouter(config-if)#async mode interactiveRouter(config-if)#no shutdownRouter(config-if)#exitRouter(config)#exitRouter#2、配置高速同步串行接口Router(config)#interface s1/1Router(config-if)#description To-shenzhenRouter(config-if)#bandwidth 2048 (带宽为2M)Router(config-if)#ip address 1 52Router(config-if)#encapsulation hdlc (封装HDLC或PPP协议,HDLC为缺省值)Router(config-if)#no ip directed-broadcastRouter(config-if)#no ip proxy-arpRouter(config-if)#no shutdownRouter(config-if)#exitRouter(config)#exitRouter#3、配置POS接口Router(config)#interface POS3/0Router(config-if)#description To TianJingDaXueRouter(config-if)#bandwidth 2500000Router(config-if)#ip address 8 52Router(config-if)#crc 32Router(config-if)#pos framing sdhRouter(config-if)#no ip directed-broadcastRouter(config-if)#pos flag s1s0 2Router(config-if)#no shutdown Router(config-if)#exitRouter(config)#exitRouter#loopback接口的配置Router(config)#int loopback 0Router(config-if)#ip address 55Router(config-if)#no ip route-cacheRouter(config-if)#no ip mroute-cacheRouter(config-if)#exitRouter(config)#exitRouter#静态路由的配置命令格式:ip route Router(config)#ip route Router(config)#动态路由配置一、RIP动态路由协议的配置1、RIP的基本配置Router(config)#router ripRouter(config-router)#network Router(config-router)#network Router(config-router)#exitRouter(config)#exitRouter#2、RIP的高级配置a、配置被动接口Router(config)#router rip Router(config-router)#passive-interface ethernet 0Router(config-router)#exitRouter(config)#exitRouter#b、配置路由过滤Router(config)#access-list 12 deny anyRouter(config)#router ripRouter(config-router)#distribute-list 12 in ethernet0Router(config-router)#endRouter#c、配置管理距离Router(config)#router rip Router(config-router)#distance 50Router(config-router)#exitRouter(config)#exitRouter#d、定义邻居路由器Router(config)#router rip Router(config-router)#neighbor Router(config-router)#exitRouter(config)#exitRouter#二、OSPF动态路由协议的配置1、OSPF的基本配置(1)使用network命令定义参与OSPF的子网地址a、单个IP地址参与OSPFRouter(config)#router ospf 63Router(config-router)#network area 0Router(config-router)#exitRouter(config)#exitRouter#b、网络地址参与OSPFRouter(config)#router ospf 63Router(config-router)#network 55 area 0Router(config-router)#exitRouter(config)#exitRouter#(2)使用area range命令定义参与OSPF的子网地址Router(config)#router ospf 63Router(config-router)#area 0 range Router(config-router)#exitRouter(config)#exitRouter#2、几个常用OSPF参数的配置(1)配置被动接口a、路由器的配置命令Router(config)#router ospf 63Router(config-router)#passive-interface ethernet 0Router(config-router)#endRouter#b、第三层交换机的配置命令Router(config)#router ospf 63Router(config-router)#passive-interface vlan37Router(config-router)#endRouter#(2)配置路由过滤Router(config)#access-list 12 deny anyRouter(config)#router ospf 63Router(config-router)#red-list 12 in serial 0Router(config-router)#endRouter#(3)配置管理距离Router(config)#router os
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 广西事业单位笔试真题2025
- 公考安徽真题2025
- 2025年宜兴市事业单位考试真题
- 农发行抚州市临川区2025秋招小语种岗笔试题及答案
- 2025年乡村旅游发展报告:文旅融合视角下的乡村旅游与乡村旅游与乡村旅游规划
- 2025年食品安全追溯技术在食品行业食品安全信用体系建设中的应用报告
- 平硐盲竖井开拓课件
- 2025年新能源汽车充电桩智能化升级改造技术报告
- 往年统招试卷真题及答案
- 2025网络文学IP产业链全链路开发模式创新与价值实现路径研究
- 来华留学生管理办法
- 宁波银行2025-2026年招聘考试笔试题内容历年考试真题
- 辽宁省民间信仰管理办法
- 心力衰竭健康教育
- 财务信息化系统建设-洞察阐释
- 学堂在线 新闻摄影 期末考试答案
- 统编版语文五年级上册 第一单元核心素养展示
- 校本研修教学课件
- 物业客服部日常工作
- 一例外周静脉炎的护理个案讲课件
- 慢性便秘病人护理
评论
0/150
提交评论