精華 | 網絡故障排除命令匯總【網工必須收藏】( 五 )

ip route 0.0.0.0 0.0.0.0 1.0.0.1,沒有問題 。
檢查RouterB的路由表,配置到4.0.0.0網絡的靜態路由為:ip route 4.0.0.0 255.0.0.0 1.0.0.2――下一跳配置的是1.0.0.2,而不是3.0.0.1 。這正是錯誤所在 。
(4) 處理過程
修改RouterB的配置如下:
RouterB(config)# no ip route 4.0.0.0 255.0.0.0 1.0.0.2
RouterB(config)# ip route 4.0.0.0 255.0.0.0 3.0.0.1
故障排除 。
(5) 建議和總結
Traceroute命令能夠很容易發現路由環路等潛在問題 。當路由器A認為路由器B知道到達目的地的路徑,而路由器B也認為路由器A知道目的地時,就是路由環路發生了 。使用Ping命令只能知道接收端出現超時錯誤,而Traceroute能夠立即發現環路所在――如果Traceroute命令兩次或者多次顯示同樣的接口 。
當通過Traceroute發現路由環路后,如果配置為:

  • 靜態路由:幾乎可以肯定是手工配置有問題,如本案例所示 。
  • OSPF協議:可能是地址聚合產生的問題 。
  • 多路由協議:可能是路由引入產生的問題 。
1.3Show命令Show命令是用于了解路由器的當前狀況、檢測相鄰路由器、從總體上監控網絡、隔離互連網絡中故障的最重要的工具之一 。幾乎在任何故障排除和監控場合,Show命令都是必不可少的 。
例如:基于RGNOS路由平臺的Show命令選項如下所示:
RG#show ?
access-groupMAC access-group
access-listsList access lists
accountingAccounting configurations parameters
address-bindaddress binding table
AggregatePortAggregatePort IEEE 802.3ad
arpARP table
class-mapShow QoS Class Map
clockDisplay the system clock
clusterCluster information
configureContents of Non-Volatile memory
cpuCPU statistics
debuggingState of each debugging option
detectdetect user ip
dot1xIEEE 802.1X information
fileShow filesystem information
gvrpGVRP configure command
hostIP dns host table
interfacesInterface status and configuration
ipIP information
ip-auth-modeShow IP authentication mode
keyKey information
lineTTY line information
lldpLLDP information
loggingShow the contents of logging buffers
macMAC information
mac-address-tableMAC forwarding table
memberShow members information
memoryMemory statistics
mlsShow MultiLayer Switching information
monitorShow a SPAN session
policy-mapShow QoS Policy Map
port-securityShow secure port information
privilegeShow current privilege level
radius-serverShow RADIUS query parameters
rate-controlRate control configuration information
reloadHalt and perform a cold restart
rmonrmon statistics
running-configCurrent operating configuration
securitySecurity Settings
serviceShow network management services
smp-serverSMP Server Parameters
snmpsnmp statistics
snmp-serverShow SNMP parameters
sntpshow sntp parameter
spanning-treeSpanning tree topology
storm-controlShow packet storm control configuration
time-rangeShow time-range information
versionSystem hardware and software status
vlanVLAN status
在此僅介紹部分最常用的、全局性的show命令 。
1. Show Version命令Show Version命令是最基本的命令之一,它用于顯示路由器硬件和軟件的基本信息 。因為不同的版本有不同的特征,實現的功能也不完全相同,所以,查看硬件和軟件的信息是解決問題的重要一步 。在進行故障排除時,我們通常從這個命令開始收集數據 。該命令將幫助用戶收集下列信息: