



免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1. 进入特权模式 enablerouter enablerouter #2. 进入全局配置模式 configure terminalrouter enablerouter #configure terminalrouter (config)#3. 重命名 hostname routera 以routerA为例router enablerouter #configure terminalrouter(config)#hostname routerArouterA (config)#4. 配置使能口令 enable password cisco 以cisco为例router enablerouter #configure terminalrouter(config)#hostname routerArouterA (config)# enable password cisco5. 配置使能密码 enable secret ciscolab 以cicsolab为例router enablerouter #configure terminalrouter(config)#hostname routerArouterA (config)# enable secret ciscolab6. 进入路由器某一端口 interface fastethernet 0/1router enablerouter #configure terminalrouter(config)#hostname routerArouterA (config)# interface fastethernet 0/1routerA (config-if)#进入路由器的某一子端口 interface fastethernet 0/1.1 以1端口的1子端口为例router enablerouter #configure terminalrouter(config)#hostname routerArouterA (config)# interface fastehernet 0/1.17. 设置端口ip地址信息router enablerouter #configure terminalrouter(config)#hostname routerArouterA(config)# interface fastethernet 0/1 以1端口为例routerA (config-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip和子网掩码routerA (config-if)#no shut 启动此接口routerA (config-if)#exit8. 查看命令 showrouter enablerouter # show version 察看系统中的所有版本信息show controllers serial + 编号查看串口类型show ip route 查看路由器的路由表9. cdp相关命令router enablerouter # show cdp 查看设备的cdp全局配置信息show cdp traffic 查看有关cdp包的统计信息show cdp neighbors 列出与设备相连的cisco设备10. csico2600的密码恢复重新启动路由器,在启动过程中按下ctrl+break键,使路由器进入rom monitor模式。在提示符下输入命令修改配置寄存器的值,然后重新启动路由器。rommon1confreg 02142rommon2reset重新启动路由器后进入setup模式,选择“no”,退回到exec模式,此时路由器原有的配置仍然保存在startup-config中,为使路由器恢复密码后配置不变,则需要把startup-config中配置保存到running-config中,然后重新设置enable密码,并把配置寄存器的值改回02102。routerenablerouter#copy startup-config running-configrouter#configure terminalrouter(config)#enable password ciscorouter(config)#config-register 02102保存当前配置到startup-config , 重新启动路由器。router #copy running-config startup-configrouter #reload11. 路由器telnet远程登录设置routerenrouter #configure terminalrouter (config)#hostname routerArouterA (config)#enable password cisco 以cisco为特权模式密码routerA (config)#interface fastethernet 0/1routerA (config-if)#ip address 192.168.1.1 255.255.255.0routerA (config-if)#no shutrouterA (config-if)#exitrouterA (config)line vty 0 4 设置0-4 个用户可以telnet远程登陆routerA (config-line)#password 123routerA (config-line)#login12. 配置路由器的标识 banner $在全局配置的模式下利用“banner”命令可以配置路由器的提示信息,所有连接到路由器的终端都会收到。routerenrouter #configure terminalrouter (config)#hostname routerArouterA(config)#banner motd $This is aptech company router ! Please dont change the configuration without permission!$13. 配置接口标识 description 接口标识用于区分路由器的各个接口。用show run命令可以查看到这些标识。routerenrouter #configure terminalrouter (config)#hostname routerArouterA(config)#interface fastethernet 0/1 以0/1 接口为例routerA(config-if)# description this is a fast Ethernet port used to connecting the companys intranet!14. 配置超时超时用于设置在多长时间没有对console进行配置,自动返回exec会话时间。默认为10分钟。routerenrouter #configure terminalrouter (config)#hostname routerArouterA(config)#line console 0routerA(config-line)#exec-timeout 0 0 第一个“0”代表分钟,第二个“0”代表秒15. 配置串口参数两台路由器通过串口连接需要一个做为DTE,一个做为DCE。DCE设备要向DTE设备提供时钟频率和带宽。DCE配置:routerenrouter #configure terminalrouter (config)#hostname routerArouterA(config)#interface serial 0/0routerA(config-if)#clock rate 64000 提供时钟频率为64000routerA(config-if)#bandwidth 64 提供带宽为64routerA(config-if)#no shutDTE配置:routerenrouter #configure terminalrouter (config)#hostname routerBrouterB(config)#interface serial 0/0routerB(config-if)#no shut16. 静态路由的配置配置路由器R1的名称和接口参数routerenablerouter#configure terminalrouter(config)#hostname routerArouterA(config)#interface fastethernet 0/0routerA(config-if)#ip address 192.168.2.1 255.255.255.0routerA(config-if)#no shutdownrouterA(config-if)#exitrouterA(config)# interface fastethernet 0/1routerA(config-if)#ip address 192.168.3.1 255.255.255.0routerA(config-if)#no shutdown主机A的ip地址为 192.168.3.2255.255.255.0192.168.3.1配置路由器R2的名称和接口参数routerenablerouter#configure terminalrouter(config)#hostname routerBrouterB(config)#interface fastethernet 0/0routerB(config-if)#ip address 192.168.2.2 255.255.255.0routerB(config-if)#no shutdownrouterB (config-if)#exitrouterB(config)# interface fastethernet 0/1routerB(config-if)#ip address 192.168.1.1 255.255.255.0主机B的ip地址为 192.168.1.2255.255.255.0192.168.1.1配置路由器R1的静态路由表routerA(config)#ip router 192.168.1.0 255.255.255.0 192.168.2.2配置路由器R2的静态路由表routerA(config)#ip router 192.168.3.0 255.255.255.0 192.168.2.1在R1和R2上配置默认路由routerA(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.2routerA(config)#ip classlessrouterB(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.1routerB(config)#ip classless(支持可变长子网掩码、无类域间路由)在routerA和routerB上配置动态路由(RIP)routerA(config)#router riprouterA(config)#network 192.168.2.0routerA(config)#network 192.168.3.0routerB(config)# router riprouterB(config)#network 192.168.2.0routerB(config)#network 192.168.1.017. 配置单臂路由router(config)# interface f0/0.1router(config-subif)# ip address 192.168.1.1 255.255.255.0router(config-subif)# encapsulation dot1q 1router(config-subif)# exitrouter(config)# interace f0/0.2router(config-subif)# ip address 192.168.2.1 255.255.255.0router(config-sub
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 家具行业用户心理分析方法试题及答案
- 学习物理中的重要知识要素试题及答案
- 班组长述职报告范文简单
- 施工安全责任明确化的试题及答案
- 组胚肌组织试题及答案
- 茶叶化学试题及答案解析
- 新能源汽车对于社会经济的贡献试题及答案
- 自信游戏测试题及答案
- 新能源汽车的创新驱动发展试题及答案
- 暑假长高测试题及答案
- KTV工程部岗位职责
- 社会科学处横向课题合同书
- 常州施工招标开标清标评标报告
- 第十五届运动会场馆医疗保障工作方案
- 生理卫生教学课件青春期男生性教育走向成熟
- 体外诊断试剂标准品、校准品、质控品
- GB/T 3452.4-2020液压气动用O形橡胶密封圈第4部分:抗挤压环(挡环)
- 王力宏-缘分一道桥-歌词
- 高校电子课件:现代管理学基础(第三版)
- 《药物学》课程教学大纲
- 艾滋病感染孕产妇所生儿童艾滋病早期诊断与抗体检测流程图
评论
0/150
提交评论