国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 網(wǎng)絡(luò)通信 > 正文

網(wǎng)絡(luò)故障排除實(shí)戰(zhàn)技巧

2019-11-04 21:03:03
字體:
供稿:網(wǎng)友

我們曾經(jīng)介紹過一篇關(guān)于如何選擇網(wǎng)絡(luò)故障排除方法的文章,介紹了三種網(wǎng)絡(luò)故障排除方法。這里我們又重拾話題,通過具體實(shí)例助您排除網(wǎng)絡(luò)故障。

開始以前,先來簡要回顧一下介紹過的三種方法。 >

從下至上的方法:從OSI模型底端開始,順序向上。

從上至下的方法:從OSI模型頂端開始,順序往下。

分而治之的方法:從OSI模型特定層開始,確定問題是在該層、還是上層或下層。

從理論上來理解這些方法是輕易的,但是如何在實(shí)際應(yīng)用中運(yùn)用來解決實(shí)際問題呢?來看幾個(gè)利用從下至上的以及分而治之方法的實(shí)例。(因?yàn)閺纳现料碌姆椒▽?shí)際就是從下至上方法的逆向方法,所以不做介紹。)

從下至上

適用情況:當(dāng)用戶從遠(yuǎn)程地址打來電話說電腦不能工作,他所使用的應(yīng)用需要網(wǎng)絡(luò)訪問。

開始:首先查看用戶1層的連通性(如物理層)。例如,可以讓用戶看網(wǎng)線是否與墻上端口和設(shè)備相連。對于大部分用戶來說,讓他們?nèi)ゲ榭唇粨Q機(jī)端口的指示燈狀態(tài)要比向他們解釋什么是網(wǎng)線要輕易得多。

在理想情況下,交換機(jī)治理良好,有完備的網(wǎng)絡(luò)記錄文檔。因此,可知道這位用戶使用的墻上插座端口號為12,而且知道12號口與交換機(jī)接線柜里11號口相連。 (注重,假如治理員不把握這些信息,就需要詢問用戶獲得這些信息)

方法1:然后,遠(yuǎn)程登陸Cisco交換機(jī),使用show ip interface brief命令。可得到列表A的信息。

列表A

Switch# show ip interface briefInterface           IP-Address      OK? Method Status       PRotocolVlan1               10.1.1.1        YES NVRAM  up           upFastEthernet0/1     unassigned      YES unset  up           upFastEthernet0/2     unassigned      YES unset  down         downFastEthernet0/3     unassigned      YES unset  down         downFastEthernet0/4     unassigned      YES unset  down         downFastEthernet0/5     unassigned      YES unset  down         downFastEthernet0/6     unassigned      YES unset  down         downFastEthernet0/7     unassigned      YES unset  down         downFastEthernet0/8     unassigned      YES unset  down         downFastEthernet0/9     unassigned      YES unset  up           upFastEthernet0/10    unassigned      YES unset  up           upFastEthernet0/11    unassigned      YES unset  down         downFastEthernet0/12    unassigned      YES unset  up           upFastEthernet0/13    unassigned      YES unset  up           upFastEthernet0/14    unassigned      YES unset  up           upFastEthernet0/15    unassigned      YES unset  down         downFastEthernet0/16    unassigned      YES unset  down         downFastEthernet0/17    unassigned      YES unset  down         downFastEthernet0/18    unassigned      YES unset  down         downFastEthernet0/19    unassigned      YES unset  down         downFastEthernet0/20    unassigned      YES unset  down         downFastEthernet0/21    unassigned      YES unset  down         downFastEthernet0/22    unassigned      YES unset  down         downFastEthernet0/23    unassigned      YES unset  up           upFastEthernet0/24    unassigned      YES unset  up           upSwitch#

通過查看這個(gè)輸出,我們可以發(fā)現(xiàn)FastEthernet0/11端口沒有工作。由于這屬于第一層故障,所以讓用戶順著PC的網(wǎng)卡上的網(wǎng)線找到交換機(jī)端口。

方法2:假如不是這個(gè)問題怎么辦?假如用戶使用的是14號端口又該怎么辦?既然有連接,說明網(wǎng)是通的。下一步應(yīng)該怎么辦?在交換機(jī)上使用show interface fastethernet 0/14 命令。顯示如表B所列。

列表B

Switch# show interface fa0/14FastEthernet0/14 is up, line protocol is up (connected)  Hardware is Fast Ethernet, address is 0014.1c40.b08e (bia 0014.1c40.b08e)  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,      reliability 255/255, txload 1/255, rxload 1/255  Encapsulation ARPA, loopback not set  Keepalive set (10 sec)  Half-duplex, 100Mb/s, media type is 100BaseTX  input flow-control is unsupported output flow-control is unsupported   ARP type: ARPA, ARP Timeout 04:00:00  Last input never, output 00:00:00, output hang never  Last clearing of "show interface" counters never  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0  Queueing strategy: fifo  Output queue: 0/40 (size/max)  5 minute input rate 0 bits/sec, 0 packets/sec  5 minute output rate 2000 bits/sec, 3 packets/sec     96848 packets input, 8083322 bytes, 0 no buffer     Received 9293 broadcasts (0 multicast)     0 runts, 0 giants, 0 throttles     323210 input errors, 123123 CRC, 0 frame, 0 overrun, 0 ignored     0 watchdog, 133 multicast, 0 pause input     0 input packets with dribble condition detected     10061627 packets output, 866400040 bytes, 0 underruns     0 output errors, 0 collisions, 2 interface resets     0 babbles, 0 late collision, 2 deferred     132 lost carrier, 20 no carrier, 0 PAUSE output     0 output buffer failures, 0 output buffers swapped outSwitch#

通過表B,我們可以發(fā)現(xiàn)盡管網(wǎng)絡(luò)可以連接,但存在一些第一層的問題。

方法3:假如這個(gè)端口有網(wǎng)絡(luò)連接而且沒有問題該怎么辦呢?接下來就應(yīng)該查看第二層。請看例子

Switch#show mac address-table interface fastEthernet 0/14

硬件地址表

Vlan 硬件地址 類型 端口號

1 00c0.b768.5409 DYNAMIC Fa0/14

Total Mac Addresses for this criterion: 1

Switch#

假如這一信息符合PC上的MAC地址,接下來就要確定交換機(jī)端口上沒有不相關(guān)的配置。例如:

Switch# show run interface fa0/14Building configuration...Current configuration : 82 bytesinterface FastEthernet0/14switchport mode accessspanning-tree portfastendSwitch#

盡管可能還有第二層別的問題存在,至少在這一層看起來情況還不錯(cuò)。接下來,查看第三層。在PC上使用IPCONFIG /ALL命令進(jìn)行檢查,如列表C列所示。

列表C

C:/> ipconfig /allWindows IP Configuration        Host Name . . . . . . . . . . . . : PC100        Primary Dns Suffix  . . . . . . . : TechRepublic.com        Node Type . . . . . . . . . . . . : Peer-Peer
IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : TechRepublic.comEthernet adapter Local Area Connection: Connection-specific DNS Suffix . : TechRepublic.com Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection Physical Address. . . . . . . . . : 00-C0-B7-68-54-09 Dhcp Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IP Address. . . . . . . . . . . . : 10.80.2.2 Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 10.80.2.1 DHCP Server . . . . . . . . . . . : 10.2.1.26 DNS Servers . . . . . . . . . . . : 10.2.1.26 Primary WINS Server . . . . . . . : 10.2.1.26 Secondary WINS Server . . . . . . : 10.2.1.21 Lease OBTained. . . . . . . . . . : Wednesday, November 02, 2005 5:43:55 AM Lease EXPires . . . . . . . . . . : Thursday, November 10, 2005 5:43:55 AM

這里,我們可以看到PC有IP地址,但是這地址對么?這臺(tái)PC通過DHCP獲得10.80.x.x范圍內(nèi)的地址,但是現(xiàn)在地址卻是10.1.x.x。

所以,我們終于發(fā)現(xiàn)了問題。DHCP服務(wù)器分發(fā)的IP地址不屬于子網(wǎng)。這種問題多出現(xiàn)在PC從某個(gè)子網(wǎng)挪到另一個(gè)子網(wǎng)時(shí),PC依然請求舊的IP地址就產(chǎn)生了問題。

可以嘗試這樣解決問題,讓所有接口的租用IP地址重新交付給DHCP服務(wù)器(即歸還IP地址)。使用IPCONFIG /RELEASE,然后使用IPCONFIG /RENEW命令,然后PC就會(huì)獲得正確的IP地址,所有的網(wǎng)絡(luò)應(yīng)用就都可以使用了。

QQRead.com 推出數(shù)據(jù)恢復(fù)指南教程 數(shù)據(jù)恢復(fù)指南教程 數(shù)據(jù)恢復(fù)故障解析 常用數(shù)據(jù)恢復(fù)方案 硬盤數(shù)據(jù)恢復(fù)教程 數(shù)據(jù)保護(hù)方法 數(shù)據(jù)恢復(fù)軟件 專業(yè)數(shù)據(jù)恢復(fù)服務(wù)指南

分而治之

假設(shè)情況:某個(gè)用戶說所有的應(yīng)用除了IE瀏覽器都可以使用。當(dāng)嘗試瀏覽網(wǎng)頁時(shí),出現(xiàn)“找不到主機(jī)或DNS錯(cuò)誤,網(wǎng)頁無法顯示”的提示。

如何開始:由于是跟應(yīng)用相關(guān)的問題,可能會(huì)想采用從上到下的方法從OSI模型的應(yīng)用層查起。但是,其實(shí)有多種原因可能造成這種錯(cuò)誤。

采用分而治之的方法,先從我們了解的情況入手。用戶說除IE外其他應(yīng)用都可以工作。問題可能就出現(xiàn)在本地網(wǎng)和外網(wǎng)。

方法1: 既然錯(cuò)誤報(bào)告提到了DNS, 可以將它看做DNS問題。既然其他應(yīng)用依然工作,也許存在有一臺(tái)本地DNS服務(wù)器給局域網(wǎng)應(yīng)用提供服務(wù)。

為了檢測這一理論,我們可以使用nslookup命令來確定DNS是否在工作。例子如下:

C:/> nslookup www.techrepublic.comServer: dns.TechRepublic.comAddress: 10.2.1.26Non-authoritative answer:Name: c10-sha-redirect-lb.cnet.comAddress: 216.239.115.148Aliases: www.techrepublic.com

這表示DNS確實(shí)在工作,所以還要繼續(xù)查看。

方法2:用戶所要訪問的網(wǎng)站是否存在于本地或者遠(yuǎn)程的子網(wǎng)?就象互聯(lián)網(wǎng)網(wǎng)站一樣,我們稱它為外部子網(wǎng)。

既然有些連接以及其它應(yīng)用還可以使用,我們可以查看第三層,網(wǎng)絡(luò)層。我們使用ipconfig命令來查看默然網(wǎng)關(guān)是否是10.80.2.1。現(xiàn)在需要ping默認(rèn)網(wǎng)關(guān)。如下面的例子。

C:/> ping 10.80.2.1Pinging 10.80.2.1 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 10.80.2.1:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

從這里,我們可以確定第三層存在問題。默然網(wǎng)關(guān)停用或者不可達(dá)。

假如所處位置是中心數(shù)據(jù)中心,遠(yuǎn)程登陸用戶默認(rèn)網(wǎng)關(guān)。登陸以后,使用show ip interface brief命令,如列表D所示。

列表D

Router# show ip interface briefInterface              IP-Address      OK? Method Status       ProtocolSerial3/0              unassigned      YES NVRAM  up           up      Serial3/0.1            10.80.100.2     YES NVRAM  up           up      Serial3/0.2            10.80.100.6     YES NVRAM  up           up      BRI3/0                 unassigned      YES NVRAM  up           up      BRI3/0:1               unassigned      YES unset  down         down    BRI3/0:2               unassigned      YES unset  down         down    Dialer1                10.80.100.10    YES NVRAM  up           up      Loopback1              unassigned      YES NVRAM  up           up      Ethernet3/0            10.80.2.1     YES NVRAM  down           downRouter#

通過這一輸出結(jié)果,我們可以確定連接路由器和本地交換機(jī)的網(wǎng)線沒有連接。我們曾經(jīng)以為是第三層出了問題,但是實(shí)際上問題出在第一層。

在我看來,分而治之的方法需要更多網(wǎng)絡(luò)和故障排除的知識。但是,這種發(fā)法也是發(fā)現(xiàn)問題最快的方法。使用故障排除方法類似于使用訪問列表,一旦發(fā)現(xiàn)相符合的情況,就沒有必要繼續(xù)追查。



發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 仁怀市| 南丰县| 竹山县| 木里| 惠州市| 德昌县| 白朗县| 葵青区| 石家庄市| 奉节县| 巫山县| 阜阳市| 正宁县| 平凉市| 道孚县| 无为县| 新竹县| 江安县| 和龙市| 安平县| 镇平县| 兴业县| 北京市| 承德市| 襄城县| 成都市| 东山县| 泰州市| 五河县| 通化县| 桃园市| 潢川县| 玛纳斯县| 白水县| 新化县| 遵化市| 剑河县| 张家界市| 十堰市| 农安县| 响水县|