系統管理
1753424 會員
4733 線上
108793 解決方案
發表新文章

請教網路卡troubleshooting 的技巧

 
watermelonyu
教授

請教網路卡troubleshooting 的技巧

D370上有一張1g fc 網卡、重開機後突然無法連線,ioscan (CLAIMED)正常 、ifconfig lan3 (UP)正常,ip可以設定

設定完後自己ping本身的ip卻ping 不到(我想別台電腦更不可能會PING得到、我還是有試ping 不到),網卡換過一張也一樣

請指導小弟一下網路卡troubleshooting 的技巧。感激不盡
4則回覆 4
watermelonyu
教授

請教網路卡troubleshooting 的技巧

For Your case, After you use lanscan to make sure the lancard is up, we need use lanadmin to make sure lancard's Administration Status and Operation Status are both UP,If they both UP, we can check if related net daemon is running.If all of them is on and you still failed, you can collected net log as below:netfmt -f /var/adm/nettl.LOG000

and analyzed them.
watermelonyu
教授

請教網路卡troubleshooting 的技巧

Hi Terry

所謂的troubleshooting無非就是從硬体很軟体這兩個角度來看,從硬体的角度講可以用ioscan lanscan等指令來看

從軟体較多來説最常用的就是lanadmin,(linux上應該是ethtool)你可以嘗試下面兩條指令

lanadmin -g 0

lanadmin -x 0 (0表示lan 0)

看看是如何的結果,你也可以貼上來!

還有就是要使用測試的tool。

ping是其中常用的一種,另外可以使用linkloop來專門測試OSI中第二層是否有問題。

在做測試的時候,可以觀察lanadmin -g 0

中記錄的error counter有無變化。

另外fiona講的nettl.LOG000(網路log)也是很有價值,但是有的時候你需要打開nettl的warning 開關以便獲得更多的訊息(default,nettl只記錄error和disaster級別delog),呵呵,先講這些!
watermelonyu
教授

請教網路卡troubleshooting 的技巧

1. 請檢查是不是有設default gateway,

# netstat -rn



2. 請確認default gateway的設定是不是存在設定檔中

# vi /etc/rc.config.d/netconf



如果沒有, 可手動加, 但重開機後就失效了.

手動bind, 可用/etc/route指令



或是透過sam來做,

1. 選"network and communications"

2. 選"routes"

3. action, 選"add default route"



如果還是有問題, 就請把/etc/rc.config.d/netconf和netstat -rn貼上來吧.
watermelonyu
教授

請教網路卡troubleshooting 的技巧

注意一下 ping service 有沒有被 disable 掉了. 有時候為了防 DoS 攻擊會把 ping disbale.