路由器常用配置.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Routerenable (进入特权模式) Router#disable (退出特权模式) Router#configure terminal (特权模式下使用,进入全局配置模式) Router(config)#exit (退回上一个模式) Router(config)#end (在任意模式下,直接退回到特权模式) 或 ctrl+Z (在任意模式下,直接退回到特权模式) Router(config)#hostname Alading-R1 (配置设备的名称) 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 打开端口 RouterX(config-if)# description TO-FuZhou-R2 配置端口描述,最多 238 个字符。 Router#copy running-config startup-config Router#write 保存配置文件方式一保存配置文件方式二 Router(config)#enable password cisco Router(config)#enable secret cisco Router(config)#no ip domain-lookup Router(config)#line console 0 Router(config-line)#logging synchronous Router(config-line)#exec-timeout 30 10 Router(config-line)#login Router(config-line)#password cisco (进入特权模式的密码--明文存储) (进入特权模式的密码--加密存储) 关闭自动域名解析功能 (进入 con 的线路配置模式) (设置自动刷新被打断的 Console 输入信息) (将 console 口的超时时间设为 30 分钟,10 秒超时;若分钟、秒都设置为 0 表示永不超时) (设置从 console 登录需要认证) (设置 console 口的密码) 注:console 口缺省时不需要登录密码 Router(config)#line vty 0 4 进入 VTY 线路视图 Router(config-line)#login (设置从 vty 线路 telnet 设备登录需要认证) Router(config-line)#password cisco (设置 vty 线路的密码为 cisco) 注:vty 线路缺省时需要登录,因此必须配置密码 Router#show running-config 查看当前运行配置(存放在 RAM 中,掉电消失) Router#show startup-config 查看启动配置(存放在 NVRAM 中,掉电不消失) Router#show version 查看路由器的硬件型号、软件版本、IOS 文件名称、Flash 大小、内存大小等 Router#show flash: 显示 flash 中的内容 Router#dir flash: 显示 flash 中的内容 Router#erase startup-config 删除启动配置,重启路由器后,则路由器恢复为出厂配置 Router#reload 重启路由器 Router#show processes 显示每个进程的 CPU 占用情况 路由器配置:【路由器用 2621XM】Routerenable Router#configure terminal Router(config)#hostname Alading-R1 Router(config)#interface FastEthernet 0/0 Router(config-if)#ip address 192.168.0.1 255.255.255.0 Router(config-if)#no shutdown Router(config)#int Fast 0/1 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shut Router(config-if)#end Router#show run Router#copy run start 交换机 SW1 配置: Switchen Switch#conf t Switch(config)#interface vlan 1 Switch(config-if)

文档评论(0)

mph + 关注
官方认证
内容提供者

该用户很懒,什么也没介绍

认证主体上海谭台科技有限公司
IP属地湖北
统一社会信用代码/组织机构代码
91310115MA7CY11Y3K

1亿VIP精品文档

相关文档