會員註冊 / 登入  |  電腦版  |  Jump to bottom of page

Solaris » Solaris 網路不通問題處理

發表人: andowson, 七段學員
2008-01-24 01:09:27
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。




會員註冊 / 登入  |  電腦版  |  Jump to top of page