- 1、本文档共3页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
思科路由器配置命令
简写命令
完整命令
1
用户模式:
用户模式:
Router
Router
2
特权模式:
特权模式:
Routeren
Routerenable
Router#
Router#
3
全局配置模式
全局配置模式
Router#conf t
Router#config terminal
Router(config)#
Router(config)#
4
接口配置模式
接口配置模式
Router(config)#in f1/0
Router(config)#interface f1/0
Router(config-if)#
Router(config-if)#
5
子接口配置模式
子接口配置模式
Router(config)#in f1/0.1
Router(config)#interface f1/0.1
Router(config-subif)#
Router(config-subif)#
6
line模式:
line模式:
Router(config)#lin c 0
Router(config)#line console 0
Router(config-line)#
Router(config-line)#
7
路由模式
路由模式
Router(config)#router rip(rip是一种路由协议)
Router(config)#router rip(rip是一种路由协议)
Router(config-router)#
Router(config-router)#
8
静态路由的配置
静态路由的配置
Routeren
Routerenable
Router#conf t
Router#config terminal
Router(config)#in f0/0
Router(config)#interface f0/0
Router(config-if)#ip ad
Router(config-if)#ip address
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#e
Router(config-if)#exit
Router(config)#ip route 目标网段 目标网段掩码 下一跳入口IP地址
Router(config)#ip route 目标网段 目标网段掩码 下一跳入口IP地址
9
默认路由的配置
默认路由的配置
Router(config)#ip route 下一跳入口IP地址
Router(config)#ip route 下一跳入口IP地址
10
查看路由表
查看路由表
benet#sh ip ro
benet#show ip route
11
更改路由器主机名
更改路由器主机名
Router(config)#ho zsc
Router(config)#hostname zsc
zsc(config)#
zsc(config)#
12
查看接口状态
查看接口状态
Router#sh int f0/0
Router#show interfaces f0/0
13
查看路由器当前时间
查看路由器当前时间
Router#sh clo
Router#show clock
14
配置路由器接口IP地址
配置路由器接口IP地址
Router(config)#in f1/0 (有些写成e0/1,e0)
Router(config)#interface f1/0 (有些写成e0/1,e0)
Router(config-if)#ip ad 0
Router(config-if)#ip address 0
Router(config-if)#no sh
Router(config-if)#no shutdown
15
配置控制台密码
配置控制台密码
Router(config)#lin c 0
Router(config)#line console 0
Router(config-line)#pas 123
Router(config-line)#password 123
Router(config-line)#logi
Router(config-line)#login
16
配置特权模式密码
配置特权模式密码
Router(config)#ena p 123
Router(config)#enable password 123
17
配置加密保存的密码
配置加密保存的密码
Router
文档评论(0)