- 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????? 设置第二个IProuter(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????? 设置子接口IProuter(config-subif.1)#encapsulation dot1q isl序号??? 绑定vlan中继协议 (vlan三层路由)注: dot1q 为IEEE802.1Q标准????????? isl为 思科专用 router#write????????? 保存配置信息router#copy running-config startup-config??? 保存当前配置nvramrouter#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)