第一范文网 - 专业文章范例文档资料分享平台

思科口令大全

来源:用户分享 时间:2025/7/28 21:22:45 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

思科口令大全

1. 用户执行模式:Router>输入enable 简写为 en 进入特权执行模式

2. 进入特权执行模式:Router#输入disable和end 和ctrl+Z 和exit退出 特权执行模式

进入用户执行模式 3. 全局配置模式:Router(config)#从特权执行模式输入config terminal 进入全局配置模式,之后从全局配置模式退出进入特权执行模式输入end 和ctrl+Z 和exit。

4. 其他配置模式:Router(config——if)从全局配置模式输入 interface fastEthernet0/1 5

为路由器改名:从特权执行模式中输入config terminal 进入全局配置模式: Router# config terminal Router(config)#

在全局配置模式下输入主机名:Router(config)# hostname HQ 出现:HQ(config)#

删除路由器名称:HQ (config)# no hostname 出现:Router(config)#

6.设置enable口令和enable加密口令:Router(config)# enable password password Router(config)# enable secret password 7.设置VTY线路口令:Router(config)#line vty 0 4

Router(config-line)# password password

Router(config-line)#login

控制端口命令如下:Router(config)#line console 0

Router(config-line)# password cisco

Router(config-line)# login

对enable口令加密:

在特权模式下键入service password-encryption

8.配置接口::1)进入全局配置模式。2)进入接口信息配置模式;3)指定接口IP地址和子网掩码 。4)启用接口。

使用下列命令配置特定接口的IP地址:Router(config)#interface 特定接口

Router(config—if)#ip address IP 地址子网掩码 Router(config—if)#no shutdown

用于设置时钟频率以及启用特定接口的命令为:Router(config)#interface 特定接口

Router(config—if)# clock rate 56000或 64000 Router(config—if)#no shutdown 9.保存路由器更改

在特权模式下:Router#copy running—config stratup----config 保存配置

a) Copy run start

b) Show start

c) Reload(使设备恢复为其原始配置) d) Show run

10.show 命令

1

show cdp neighbors 显示所有知道的网络 show ip interface brief显示基本的端口信息 show interfaces 显示详细接口信息 debug ip routing 显示路由排错信息 show ip route 显示直连路由器

show ip protocols 显示路由器当前运行的各种路由协议的全部相关信息。 show controllers 显示DTE/DCE信息

11.配置静态路由 Router(config)#ip route network-address(直连路由IP地址) 子网掩码下一条的IP 地址或者是接口名称。

删除静态路由可以在这条路由上使用no ip route 12.配置rip协议

Router(config)#router rip

Router(config-router)#network 主类网络的网络地址 Router(config-router)#passive-interface fastethernet0/0 Router(config-router)#end

13.使用 no auto-summary禁用自动汇总。 Router(config)#router rip

Router(config-router)#no auto-summary

R1(config)#router eigrp 1

R1(config-router)#no auto-summary

设置版本通过version2命令配置RIP为无类路由协议 Router(config)#router rip Router(config-router)# version2 恢复RIP到版本1

Router(config)#router rip

Router(config-router)# version1 Router(config)#router rip Router(config-router)#no version 14. router eigrp 命令

Router(config)# router eigrp1

Router(config-router)#network network-address

15. 将以下脚本加载到路由器。在粘贴命令之前,请确保您处于全局配置模式中 hostname 主机名 !

no ip domain-lookup 禁用DNS查找 !

interface 接口名称 ip address 地址 duplex auto speed auto

2

no shutdown !

interface接口名称 ip address

clock rate 64000 no shutdown ! ip route! ! ! !

line con 0 line vty 0 4 password cisco login !

End

16.找出RIP更新中处在的问题的命令: debug ip rip

结束此命令输入:undebug all或 no debug all或no debug ip rip 17.在RIPv1中传播默认路由 Router(config)#router rip

Router(config-router)# default-information originate Router(config-router)#end

18.show cdp neighbors:显示了邻居思科路由器的端口类型和平台

19.show ip eigrp neighbors:来查看邻居表并检验EIGRP是否与其邻居建立关系。 20. R1(config)#banner motd #This is .#配置开机话语

21. R1 和 R2 之间的链路带宽将被配置为 64 kbps,R2 和 R3 之间的链路带宽将被配置为 1024 kbps。使用 bandwidth 命令修改每台路由器的串行接口的带宽。 路由器 R1:

R1(config)#interface serial0/0/0 R1(config-if)#bandwidth 64

路由器 R2:

R2(config)#interface serial0/0/0 R2(config-if)#bandwidth 64 R2(config)#interface serial0/0/1 R2(config-if)#bandwidth 1024

路由器 R3:

R3(config)#interface serial0/0/1 R3(config-if)#bandwidth 1024

22. 使用 no auto-summary 命令在路由器上禁用自动总结。 R1(config)#router eigrp 1

R1(config-router)#no auto-summary

3

23. 为路由器 R3 添加两个环回地址 192.168.2.1/24 和 192.168.3.1/24。这些虚拟接口将用于代表要与 LAN 192.168.1.0/24 一起手动总结的网络。 R3(config)#interface loopback1

R3(config-if)#ip address 192.168.2.1 255.255.255.0 R3(config-if)#interface loopback2

R3(config-if)#ip address 192.168.3.1 255.255.255.0 24.在EIGRP中配置和重分布默认路由 R3(config)#ip route 0.0.0.0 0.0.0.0 lookback1 R3(config)# router eigrp 1

R3(config-router)#redistribute static 25.为EIGRP传播配置汇总路由 R2(config)#interface serial0/0/0

R2(config-if)#ip summary-address eigrp 1 192.168.0.0 255.255.252.0 26.修改默认的复合度量值

Router(config-router)#metric weights tos(默认为0) k1 k2 k3 k4 k5 (k1 k2 k3 k4 k5只能去0和1)

27.show ip eigrp topology 命令来查看所有可能的链路。 28.修改hello间隔和保持时间 R2(config)#interface serial0/0/0 R2(config-if)#ip hello-interal eigrp 1 60 R2(config-if)#ip hold-time eigrp 1 180 R2(config-if)#end 29.OSPF命令

R2(config)#router ospf 1 R2(config-router)#

30.network 命令

R2(config-router)#network network-address wildcard-mask(反子网掩码) area area-id(area0) 31.回环地址

R3(config)#interface loopback number

R3(config-if)#ip address ip address subnet-mask(子网掩码) 32.OSPF router-id 命令

Router(config)# router ospf process-id Router(config-router)#router-id ip address 33.修改路由器ID

Router#clear ip ospf process

34.show ip ospf neighbor 命令可用于验证ospfl邻居关系并排除相应的故障。 35.show ip ospf 命令可用于检查ospf 进程ID和路由器ID。 36.bandwidth 命令

Router (config-if)#bandwidth bandwidth-kbps

Router(config)#inter serial0/0/0 Router (config-if)# bandwidth 64 Router(config)#inter serial0/0/1

4

Router (config-if)# bandwidth 256 Router(config)#inter serial0/0/0 Router (config-if)# bandwidth 128 37.ip ospf cost 命令

Router(config)#inter serial0/0/0 Router (config-if)#ip ospf cost 1562 Router (config-if)#end

Router(config)#inter serial0/0/1 Router (config-if)#ip ospf cost 781 Router(config)#inter serial0/0/1

Router (config-if)#ip ospf cost 390

38.show ospf interface 命令检验路由器状态。 39.ospf接口优先级

Router (config-if)#ip ospf priority {0~255} 40.修改OSPF 接口优先级

RouterA(onfig)#interface fastethernet 0/0 RouterA (config-if)#ip ospf priority 200 RouterBonfig)#interface fastethernet 0/1 RouterABconfig-if)#ip ospf priority 100 41.强制选择DR/BDR

RouterA(onfig)#interface fastethernet 0/0 RouterA (config-if)#shutdown RouterA (config-if)#no shutdown RouterA (config-if)#end

42.ASBR的静态默认路由配置

R3(config)#interface loopback 1

R3 (config-if)#ip address 172.30.1.1 255.255.255.252 R3 (config-if)#exit

R3(config)# ip route 0.0.0.0 0.0.0.0 loopback 1 R3(config)# router ospf 1

R3(config-router)#default-inforation originate

43.使用OSPF命令auto-cost reference-bandwidth 修改参考宽带值 R3(config)# router ospf 1

R3(config-router)# auto-cost reference-bandwidth 1000 44.修改OSPF间隔

R2(config-if)#ip ospf hello-interal seconds R2(config-if)# ip ospf dead-interal seconds 45.修改路由器的hello间隔和Dead间隔 R2(config)# inter serial0/0/1 R2(config-if)#ip ospf hello-interal 5 R2(config-if)# ip ospf dead-interal 20 R2(config-if)#end

5

搜索更多关于: 思科口令大全 的文档
思科口令大全.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c9psup5is925a66i6tkzl_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top