路由器基础知识培训

上传人:hao****an 文档编号:245126327 上传时间:2024-10-07 格式:PPT 页数:42 大小:265.63KB
返回 下载 相关 举报
路由器基础知识培训_第1页
第1页 / 共42页
路由器基础知识培训_第2页
第2页 / 共42页
路由器基础知识培训_第3页
第3页 / 共42页
点击查看更多>>
资源描述
,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,路由器基础,1,将,RJ-45,到,DB-9,或,RJ-45,到,DB-25,的转换接头连接到,PC,的,COM,口,再通过电缆连接到,Cisco,设备的,Console,口,在终端软件中对,COM,口的设置为:速率9600,bps, 8,个数据位,无奇偶效验位,1个停止位,无流量控制,AUX,口用于通过调制解调器连接管理设备,连接设备的,Console,2,Cisco IOS,基础知识,互联网操作系统,3,命令行接口(,CLI),用户模式,Console,Auxiliary,接口,Modem,Modem,VTY,4,路由器的用户模式和特权模式,用户模式,特权模式,enable,disable,Console,Aux,VTY,5,路由器,CLI,的模式,Router(config)#,Router,Router#,配置模式,提示符,InterfaceRouter(config-if)#,SubinterfaceRouter(config-subif)#,Controller Router(config-controller)#,LineRouter(config-line)#,RouterRouter(config-router)#,IPX router Router(config-ipx-router)#,enable,configure terminal,exit,end,或,ctrl-z,用户模式,特权模式,全程配置模式,6,路由器的配置文件,用户模式,特权模式,全程配置模式,RAM,(,running-config,),运行配置文件,enable,Ctrl-Z,or,exit,NVRAM,(,startup-config,),启动配置文件,write,copy,conf t,disable,每一条成功的配置,7,路由器的内部配置部件,RAM/DRAM,路由器的工作区,保存路由表、,ARP,缓存、快速交换缓存、分组缓存区和分组队列,保存运行配置文件(,Running-config),NVRAM,非易失性,RAM,,保存启动配置文件(,Startup-config),Flash,存放操作系统,ROM,保存开机诊断程序、引导程序和最小的操作系统,8,路由器的检测,RAM,NVRAM,FLASH,网络操作系统,配置文件备份,操作系统,接口,程序,当前的,配置文件,表和缓存,Router# show processes CPU,Router# show protocols,Router# show running-config,Router# write term,Router# show memory,Router# show stacks,Router# show buffers,Router# show startup-config,Router# show config,Router# show version,Router# show flash,Router# show interface,9,路由器的基本配置,10,路由器的管理性配置,路由器的名称,Router(config)# hostname ,Router(config)# hostname P1R1,P1R1,(config)#,路由器的标语,Router(config)# banner motd #,Router(config)# banner motd #You are on Router1#,接口的描述,Router(config-if)# description ,Router(config-if)# description connected to Router2,11,配置路由器进入特权模式的密码,配置方法一:,Router# conf t,Router(config)#enable password ,可在,setup,或 全程设置模式下配置,密码以纯文本的方式存放在配置文件中,配置方法二,:,Router# conf t,Router(config)#enable secret,可在,setup,或 全程设置模式下配置,密码以加密的方式存放在配置文件中,此密码与“,enable password,”,配置的密码共存时,此密码起作用,12,配置命令行接口连接的密码,密码类型,配置,Console,Console,Router(config)# line con 0,Router(config-line)# login,Router(config-line)# password,Auxiliary,Auxiliary,Router(config)# line aux 0,Router(config-line)# login,Router(config-line)# password ,Telnet,VTY,Router(config)# line vty 0 4,Router(config-line)# login,Router(config-line)# password ,其他相关命令,:,exec-timeout 0 0 logging synchronous,13,路由器的配置文件,用户模式,特权模式,全程配置模式,RAM,(,running-config,),运行配置文件,enable,Ctrl-Z,or,exit,NVRAM,(,startup-config,),启动配置文件,write,copy,conf t,disable,每一条成功的配置,14,查看配置文件,Console,show,startup-config,show,running-config,启动配置,文件,运行配置,文件,RAM,NVRAM,15,命令列表,用 “,?,” 去看命令列表,Router,?,Exec commands:,access-enable Create a temporary Access-List entry atmsig Execute Atm Signalling Commands cd Change current device clear Reset functions connect Open a terminal connection dir List files on given device disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC help Description of the interactive help system lat Open a lat connection lock Lock the terminal login Log in as a particular user logout Exit from the EXEC,- More -,-,More-,按空格键显示下一屏;,按回车键显示下一行;,按 “,q”,退出,16,用“?”命令得到帮助,Router#c,?,clear clock configure connect copy,Router#clock,?,set set the time and date,Router#clock set,?,hh:mm:ss Current Time,Router#clock set 10:30:10,?, Day of the month,MONTH Month of the year,Router#clock set 10:30:10 12 Jan,?, Year,Router#clock set 10:30:10 12 Jan 2002,?,17,出错信息,Router#clock set 10:30:10,% Incomplete command.,Router(config)#clock set 19:56:00 04 8 2002,% Invalid input detected at marker,Router# sh te,% Ambiguous command: “sh te”,Router# sh te?,WORD tech-support terminal,18,IOS,帮助命令小结,?,显示某种模式下的所有命令.,help,用文字描述怎得到帮助,并不给出实际的命令帮助.,com?,由 “,com”,开头的命令列表,command ?,列出命令的所有第一个参数,command parm?,列出所有以,“parm”,开头的命令参数 (注意,“parm”,和“?”之间没有空格),command parm,如果以“,parm”,开头的命令只有一个,按,Tab,键将会拼写出完整的命令;如果以“,parm”,开头的命令有多个,按,Tab,键不会有任何回应,command parm1 ?,如果一个空格键被插入到问号之前,CLI,列出所有的下一个参数,并且给出每一个参数的简要说明,19,show version,命令,IOS,软件版本号,操作系统的名称,启动方式,硬件配置,处理器,接口,内存,20,配置接口,进入接口配置模式,Router(config)# interface ,Router(config)# interface ethernet 0,Router(config)# int e 0,Router(config)# interface ,Router(config)# interface fastethernet 0/1,Router(config)# int fa0/1,21,所有的接口在默认情况下均处于软件“,shutdown”,状态,Router# sh int fa0/0,FastEthernet0/0 is administratively down,激活一个端口,Router(config-if)#no shutdown,Router# sh int fa0/0,FastEthernet0/0 is up,关闭端口,Router(config-if)#shutdown,激活接口,22,配置串行广域网接口,串行接口需连接到一个提供公网时钟的,CSU/DSU (,信道服务单元)设备,DTE / DCE,中,DCE,提供时钟,实验环境中使用,“,背对背”的连接,其中连接,DCE,电缆的一端必须提供时钟,确定连接的电缆是,DTE,电缆 /,DCE,电缆,Router# show controllers ,Router#show controller serial 0,HD unit 0, idb = 0x121C04, driver structure at 0x127078,buffer size 1524 HD unit 0,V.35 DCE cable,.,.,23,配置串行广域网接口,进入全程配置模式,Router(config-if)#,clock rate 64000,Router(config-if)#,Router(config)#,interface serial 0,Router(config-if)#,Router#,configure terminal,Router(config)#,Router(config-if)#,bandwidth 64,Router(config-if)#,exit,Router(config)#,exit,Router#,指明需要配置的接口,配置时钟精度,(,只在连接,DCE,电缆的接口配置,),配置带宽,(,默认1.544,M),24,Router(config-if)#,ip address ,配置接口的,IP,地址,Router#,configure terminal,Router(config)#,interface ethernet 0,Router(config-if)#,ip,Router(config-if)#,no shutdown,Router(config-if)#,exit,25,使用命令历史功能,Ctrl-P or Up arrow,翻回上次的命令,Ctrl-N or Down arrow,翻回更多的近期命令,Router show history,显示以前的命令内容,Router terminal history size,选择历史记录的命令数目,26,基本网络测试,27,基本网络测试,应用层的测试,telnet,网络层的测试,ping,trace,数据链路层和物理层的测试,show interface,路由表的查询,show ip route,28,show interface,查看接口状态,Router# show int ,Router# sh int s0,Serial0 is administratively down, line protocol is down,接口未激活,Serial0 is down, line protocol is down,线路或接口问题,连接路由器的设备的接口未激活,Serial0 is up, line protocol is down,时钟问题,Keepalive,数据链路层协议的封装不匹配,Serial0 is up, line protocol is up,29,show ip route,查看路由表,直连路由,静态,/,默认路由,通过路由协议学习到的路由,30,专线安装路由器典型配置,31,专线安装路由器配置,路由器的配置一般由客户自行配置。若遇到特殊情况,上报项目经理,经协调后可帮客户配置调试。,路由器配置分类:,1.专线上网(包括城域网、数据专线),2.通过专线与其他分点相连,帧中继电路,DDN、SDH,电路,MSTP,电路,32,城域网专线上网配置(一),打电话给网管,问,ip,地址,及网关,ip(,即静态路由的下一跳)。,假设网管所给地址为192.168.0.0/28,网关为192.168.0.1。则用户可用的,ip,地址为192.168.0.214。则此时,用户用电脑直接连接光纤收发器,,ip,地址设为192.168.0.214、网关设为、子网掩码为便可以接入互联网。,若用户上网人数超过13人,便要采用,NAT(ip,地址翻译)功能。,33,城域网专线上网配置(二),本例把以太口0作为外口,以太口1作为内口:,用超级终端进入路由器,回车,出现,router,enable,config terminal,interface ethernet0 /,如果用户是快速以太口则输入,fastethernet,ip address 192.168.0.2 255.255.255.240 /,选择网段内的其它,ip,也可,ip nat outside,no shutdown,exit,interface ethernet1,ip address 10.0.0.1 255.255.255.0 /,该接口,ip,地址为上网电脑的网关,ip nat inside,no shutdown,exit,ip nat pool aaa 192.168.0.2 192.168.0.2 netmask 255.255.255.240 /aaa,也可换成其它名称,ip nat inside source list 1 pool aaa overload,ip,34,帧中继电路配置,enable,config terminal,interface serial 0/0,encapsulation frame-relay,frame-relay lmi-type q933a,no shutdown,interface serial 0/0.1 point-to-point,ip address 172.16.1.1 255.255.255.252,frame-reply interface-dlci 105 /dlci,是对端的,该参数要问网管,no shutdown,exit,interface e0/0,ip,ip route 192.168.0.0 255.255.255.0 172.16.1.2 /,给对端网段做路由,下一跳为对端,35,DDN、SDH,电路配置,enable,config terminal,interface s0/0,ip,no shutdown,exit,interface ethernet0/0,ip,no shutdown,ip route 192.168.0.0 255.255.255.0 172.16.1.2 /,给对端网段做路由,下一跳为对端广域网口,36,MSTP,电路配置,本例为派出所路由器配置,enable /,然后输入密码,config,t,interface f0,ip,address 192.168.xxx.xxx.255.255.255.252 /,该,ip,地址为外网口,ip,地址,no shutdown,exit,interface e0,ip,address 10.43.xxx.xxx 255.255.255.240 /,该,ip,地址为内网口,ip,地址,no shutdown,exit,router,eigrp,1,network 192.168.xxx.0 /,该,ip,地址中的,xxx,与本路由器外网口一致,no auto-summary,exit,exit,wr,37,CISCO,路由器口令恢复,当,Cisco,路由器的口令被错误修改或者忘记时,可以按如下步骤进行操作,1. 开机时按,使进入,ROM,监控状态,作如下设置,使路由器引导时忽略,NVRAM,中的设置,2.,rommon,1,confreg,0x2142,正常值为0,x2102,3.,rommon,1reset,重新启动路由器,4.,在,Setup,下,选择,NO ,,进入特权模式,5. Router#configure memory,恢复,NVRAM,中的配置,6. Router#configure terminal,恢复正常配置寄存器并激活所有端口,Router(,config,)#,config,-register 0x2102,Router(,config,)#interface xx,Router(,config,)#no shut,Router #,wr,38,思考:,1.,CISCO,路由器命令行接口模式主要包含哪两种模式?,2.请列举出几个比较常用的基本网络测试命令。,3.假设有一城域网上网专线网管提供的公网,IP,为192.168.0.0/28,,请简单描述出网关地址,可用,IP,地址段及子网掩码等信息。,4.在查看路由器端口状态时显示如下:,Serial0 is down, line protocol is down,请简单描述可能存在的问题。,5.,CISCO,路由器的,NVRAM,与,RAM,在存放配置文件上有什么区别?,6.实际操作:几种常见专线的配置。,39,答案,1.,CISCO,路由器命令行接口模式主要包含哪两种模式?,答:用户模式和特权模式。,2.请列举出几个比较常用的基本网络测试命令。,答:,telnet ping tracert,3.假设有一城域网上网专线网管提供的公网,IP,为192.168.0.0/28,,请简单描述出网关地址,可用,IP,地址段及子网掩码等信息。,可用,IP,地址段:192.168.0.214,40,答案,4.在查看路由器端口状态时显示如下:,Serial0 is down, line protocol is down,请简单描述可能存在的问题。,答:线路或接口问题,连接路由器的设备的接口未激活,5.,CISCO,路由器的,NVRAM,与,RAM,在存放配置文件上有什么区别?,答:,RAM,保存的是当前运行的配置文件,,NVRAM,保存的是启动配置文件。,6.见幻灯片。,41,谢谢大家,42,
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 课件教案


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!