思科路由器配置.ppt

上传人:wuy****n92 文档编号:64010940 上传时间:2022-11-28 格式:PPT 页数:28 大小:311.99KB
返回 下载 相关 举报
思科路由器配置.ppt_第1页
第1页 / 共28页
思科路由器配置.ppt_第2页
第2页 / 共28页
点击查看更多>>
资源描述

《思科路由器配置.ppt》由会员分享,可在线阅读,更多相关《思科路由器配置.ppt(28页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、路由器配置路由器配置主要内容主要内容n n配置路由器n n配置的完成n n路由器口令的恢复一、命令行用户界面的命令模式一、命令行用户界面的命令模式n n登录路由器,进行模式选择(用户模式/特权模式)n n用户模式命令列表方法:router?n n特权模式命令列表方法:router#?路由器的配置模式路由器的配置模式全局配置模式特定配置模式二、配置路由器二、配置路由器1、配置路由器的名称、配置路由器的名称 配置路由器的名称,能唯一地标识网络中的每台路由器。Router#config terminal Router(config)#hostname BaojiBaoji(config)#2、配置路

2、由器的口令、配置路由器的口令n n用口令限制访问,可以保证对路由器进行权限范围内的安全访问。n n可以分别为特权模式、虚拟终端连接、控制台连接设定口令。n n特权模式的口令用于对特权模式的访问,可以通过enable secret命令设置。n n控制台终端的登录口令可以在line console 0配置模式下进行设定。用于防止未经授权的用户访问路由器。n n虚拟终端用户通过远程登录(telnet)的方式访问路由器。命令Line vty 0 4用于标识5个vty连接。可以为通过Telnet访问路由器的用户设置口令。3、show命令命令n n该命令能帮助检查路由器中文件的内容,帮助排除故障。n n在

3、路由器的各种模式下,show?命令都可以用于显示所有可用的选项。n nShow命令时路由器上最重要的信息收集命令。n n例如:n nshow interfacesshow interfaces Displays all the statistics for all the interfaces on the Displays all the statistics for all the interfaces on the router.To view the statistics for a specific interface,enter the router.To view the sta

4、tistics for a specific interface,enter the show show interfacesinterfaces command followed by the specific interface and port mand followed by the specific interface and port number.For example:For example:n nshow interfaces serial 0/1show interfaces serial 0/1n nshow controllers serialshow controll

5、ers serial Displays information-specific to the Displays information-specific to the interface hardware interface hardware n nshow clockshow clock Shows the time set in the router Shows the time set in the router n nshow hostsshow hosts Displays a cached list of host names and addresses Displays a c

6、ached list of host names and addresses n nshow usersshow users Displays all users who are connected to the router Displays all users who are connected to the router n nshow historyshow history Displays a history of commands that have been Displays a history of commands that have been entered entered

7、 n nshow flashshow flash Displays information about flash memory and what IOS Displays information about flash memory and what IOS files are stored there files are stored there n nshow versionshow version Displays information about the router and the IOS Displays information about the router and the

8、 IOS that is running in RAM that is running in RAM n nshow ARPshow ARP Displays the ARP table of the router Displays the ARP table of the router n nshow protocolshow protocol Displays the global and interface specific status of Displays the global and interface specific status of any configured Laye

9、r 3 protocols any configured Layer 3 protocols n nshow startup-configurationshow startup-configuration Displays the saved configuration Displays the saved configuration located in NVRAM located in NVRAM n nshow running-configurationshow running-configuration Displays the configuration currently Disp

10、lays the configuration currently running in RAMrunning in RAM4、配置串行接口、配置串行接口n n通过控制台或虚拟终端连接可以对串行接口进行配置。n n串行接口通常用来做一个局域网的广域网连接接口,最高速率2M例如:s0s1用户端局端专线连接串行口配置命令串行口配置命令n nRouter(config)#interface serial 0/0Router(config-if)#ip address n nRouter(config)#interface serial 0/0Router(config-if)#clock rate 5

11、6000Router(config-if)#no shutdown Router(config-if)#exit5、配置以太网接口、配置以太网接口n n可以从控制台端口或者虚拟终端连接配置以太网接口。n n每个以太网接口必须有一个IP地址和子网掩码。n n配置步骤如下:1 1、进入全局配置模式、进入全局配置模式2 2、进入接口配置模式、进入接口配置模式3 3、指定接口、指定接口IPIP地址和子网掩码地址和子网掩码4 4、开启该接口(、开启该接口(缺省时,接口都是关闭的缺省时,接口都是关闭的)以太网接口配置命令以太网接口配置命令n nRouter(config)#interface e0Rout

12、er(config-if)#ipRouter(config-if)#no shutdown6、执行路由器变更、执行路由器变更n n如果需要对配置进行变更,需要进入适当的模式如果需要对配置进行变更,需要进入适当的模式并完成变更。并完成变更。n n要验证所作的变更,可以使用命令要验证所作的变更,可以使用命令show running-show running-configconfig进行查看。进行查看。n n可以通过如下的方式进行配置的变更:可以通过如下的方式进行配置的变更:n n指定某个命令的指定某个命令的nono形式,表示去除该条命令形式,表示去除该条命令n n重启系统并从重启系统并从NVRAM

13、NVRAM中加载原始的配置文件中加载原始的配置文件n n使用命令使用命令erase startup-configurationerase startup-configuration去除启动配置文件,去除启动配置文件,重启路由器,进入重启路由器,进入setupsetup模式。模式。n n变更完成后,使用变更完成后,使用copy running-config startup-config copy running-config startup-config 命令将配置文件保存在命令将配置文件保存在NVRAMNVRAM中。中。管理管理NVRAM的命令列表的命令列表n n擦除NVRAM的命令 eras

14、e startup-confign n将RAM中的当前配置(即运行中的配置)保存到NVRAM中(作为启动配置)的命令:copy running-config startup-confign n显示RAM中的当前配置的命令:show running-confign n显示所保存的配置(即NVRAM中的内容)的命令:show startup-config二、配置的完成二、配置的完成n n下面列出了用于结束配置的推荐任务:n n建立配置标准建立配置标准n n提供并配置接口描述提供并配置接口描述n n配置登录横幅配置登录横幅n n配置当日消息配置当日消息n n进行主机名解析进行主机名解析n n进行配置

15、备份和文档说明进行配置备份和文档说明1、建立配置标准、建立配置标准n n建立配置标准便于管理配置文件(例如如何存储、存放在什么地方等),当在需要的时候能及时获得。n n为网络的一致性建立标准有助于减少网络的复杂性,减少计划外的停工时间,减少可能影响网络性能事件的发生。2、提供并配置接口描述、提供并配置接口描述n n描述信息作为对接口的注释,尽管在路由器的配置文件中存在,但不影响路由器的运行。n n描述信息可以包括接口的用途和位置,连接到接口的其他设备或其他位置,电路标识等。n n描述信息使得支持人员能更好地了解与某个接口相关的问题范围,从而更好地解决问题。配置接口描述信息配置接口描述信息3、登

16、录横幅、登录横幅n n登录横幅(login banner)是显示在登录时的消息,通常用来向所有网络用户传递消息。n nRouter#config terminalrouter(config)#banner&This is a secret system.Authorized Access ONLY!&其中,&表示界定字符登录路由器时显示的横幅登录路由器时显示的横幅4、主机名解析、主机名解析n n主机名解析是一个计算机系统用于关联主机名和网络地址的过程。n n主机名和与之关联的IP地址的列表称为主机表。n n主机名只在所配置的路由器上有效,与域名系统的名称不同。主机表配置主机表配置5、配置信息的备份和文档说明、配置信息的备份和文档说明n n每台设备的配置文件都应该做备份,以备设备或软件出现故障的时候恢复使用。n n配置信息的备份最好存储在网路服务器上,例如 TFTP Server。n n对备份的配置信息需要做文档说明。与备份相关的命令与备份相关的命令n nRouter#copy running-config tftp n nRouter#copy tftp running-config三、口令恢复三、口令恢复n n本技术应用于Cisco 路由器和Catalyst交换机的口令恢复。n n口令恢复只能从控制台端口进行(一台计算机和路由器物理连接)

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

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

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com