![]() |
查看
1.查看路由信息:sh ip route
2.查看IP协议:sh ip protocols
3.现场查看RIP路由信息:debug ip rip(关闭:no debug ip rip)
4. 查看VLAN: sh vlan
5查看VTP状态:sh vtp status
6.查看路由器或交换机的运行信息:sh run
7. 查看路由器的ACL信息:sh ip access-lists
8. 查看路由器动态路由信息库:sh ip rip database
9. 查看路由器OSPF路由表信息:sh ip ospf data
Router#sh ip ospf data
OSPF Router with ID (2.2.2.2) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 551 0x80000005 0x00f12f 3
1.1.1.1 1.1.1.1 552 0x80000006 0x0056bd 4
Router#
10. 显示指定进程OSPF:sh ip ospf 1(指定进程1)
11. 显示OSPF使用的接口:sh ip ospf inteface
12.查看相邻路由器的邻居OSPF关系: sh ip ospf neighbor
13. 查看与IP相关的所有接口:sh ip interface
14.路由命令:Router(config)#router ?
bgp Border Gateway Protocol (BGP)
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
ospf Open Shortest Path First (OSPF) //开启OSPF路由协议
rip Routing Information Protocol (RIP)//开启RIP动态路由协议
Router(config)#
15.