練功房推薦書單

  • Google!Android 3手機應用程式設計入門(第四版)
  • 賈伯斯傳(軟皮精裝版)
  • 猛虎出閘制霸版:最新OCP Java SE 6 Programmer專業認證(附原始程式碼及範例檔)
  • SCWCD 5 猛虎出閘:Java Web 應用程式專業認證
Solaris 網路不通問題處理  XML
Forum Index » Solaris
Author Message
andowson

六段學員
[Avatar]

Joined: 2007-01-02 22:20:40
Messages: 652
Location: 台北
Offline

1. PING不到Gateway(default router)
檢查並修改/etc/defaultrouter
如果有修改,需重新啟動
sync; sync; sync; init 6


2.PING不到同一個LAN上的某部主機
檢查是否有設定static route
$ netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
172.16.244.0         172.16.244.240       U         1     35  ce0
224.0.0.0            172.16.244.240       U         1      0  ce0
default              172.16.244.254       UG        1    268
127.0.0.1            127.0.0.1            UH        3    287  lo0

如果有UGH的Flags,可透過route delete destination gateway的方式來刪除

3.PING不到其他不同LAN上的主機
可能原因很多,如果兩邊都各自PING得到Gateway,先檢查防火牆設定看看
如果防火牆設定有允許PING,則可用traceroute指令追蹤看看
如果是由防火牆後的內部網段主機PING外面Internet主機,因需配發一個Public IP給該主機出去的封包,故要順便檢查防火牆有沒有設定為NAT mode,如果是routing mode則需對每部要連出去的主機設定一個mapping IP。

分享經驗 累積智慧
[WWW] [MSN]
 
Forum Index » Solaris
Go to: