Cisco路由器命令总结.docVIP

  • 7
  • 0
  • 约9.03千字
  • 约 7页
  • 2018-06-25 发布于河南
  • 举报
Cisco路由器命令总结

Cisco路由器命令总结 2010-05-06 15:03 路由器命令状态: 路由器处于rxboot状态,开机60秒内按ctrl+break可进入此状态用于软件升级和手工引导. router用户命令状态,只能查看一些基本信息 router#特权命令状态 router(config)#全局设置状态 router(config-if)#接口设置状态 路由器口令设置: routerenable??? 进入特权模式 router#config terminal??? 进入全局配置模式 router(config)#hostname hostname??? 设置交换机的主机名 router(config)#enable secret xxx??? 设置特权加密口令 router(config)#enable password xxx??? 设置特权非密口令 控制台口令 router(config)#line console 0??? 进入控制台口 router(config-line)#login??? 要求口令验证 router(config-line)#password xx??? 设置登录口令 使用Telnet远程式管理 router(config)#line vty 0 4??? 进入虚拟终端 router(config-line)#login??? 要求口令验证 router(config-line)#password xx??? 设置登录口令 路由器基本配置: router(config)#int s0/0 f0/1??? 进入Serail接口 router(config-if)#ip address ip netmask??? 设置IP地址 router(config-if)#ip address ipnetmask second????? 设置第二个IP router(config-if)#description to *****??? 接口描述 router(config-if)#no shutdown??? 激活当前接口 router(config-if)#clock rate 64000??? 设置同步时钟 (仅用于串口) router(config-if)#clock rate 64??? 设置带宽??? (仅用于串口) router(config-if)#ip ospf authentication-key 口令??? 为ospf设置认证(不加密) router(config-if)#ip ospf message-digest-key 钥匙号md5 口令????????? 为ospf设置md5认证 router(config-if)#no ip ospf message-digest-key 钥匙号md5 口令??????? 为ospf设置md5认证 router(config)#int f0/0.1??????????????? 进入子接口 router(config-subif.1)#ip address ipnetmask????? 设置子接口IP router(config-subif.1)#encapsulation dot1q isl序号??? 绑定vlan中继协议 (vlan三层路由) 注: dot1q 为IEEE802.1Q标准????????? isl为 思科专用 router#write????????? 保存配置信息 router#copy running-config startup-config??? 保存当前配置nvram router#debug ip ripevents??????? 监测配置 router#no debug ip all??????? 关闭监测配置 router#reload??? 重新起动 router#erase startup-config??? 清除配置文件 路由器显示命令: router#show run??????? 显示配置信息 router#show interface??????? 显示接口信息 router#show ip route??? 显示路由信息 router#show ip arp??? 显示arp缓存 router#show cdp nei??? 显示邻居信息 静态路由: router(config)#ip route ip-address subnet-mask 下一跳distance??????? 命令格式 注: distance 改变默认管理开销 router(config)#ip route 下一跳????? 默认路 router(config)#ip classless??? 数据包不能转发时匹配给

文档评论(0)

1亿VIP精品文档

相关文档