Ubuntu 10.10 網路連線的通訊閘問題 - Linux

Table of Contents


各位好,
我常在不同網路區段使用筆電
因此常需要變更 IP 位址
但有一個網路區段很奇怪, 變更完以後不能上網路
但切換到 Windows 以後, 同樣的設定卻又正常

最後查到
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.101.0 * 255.255.255.0 U 1 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default my.router 0.0.0.0 UG 0 0 0 eth0

當然我設定 Gateway 的時候, 是直接輸入 IP 而不是上面這個 my.router
請問哪裡可以關閉這個解析功能,

ps, 最後是在 /etc/hosts 填上 my.router 正確的 ip
但我希望不必改這個檔案.

--

All Comments

Elizabeth avatarElizabeth2011-08-11
route -n 就變 ip 了, my.router是反解出來的
Una avatarUna2011-08-16
我知道,但問題在於多餘的反解功能導致網路出不去
Dora avatarDora2011-08-21
kernel記得的是ip,不是hostname. 反解是route做的
Tom avatarTom2011-08-25
cat /proc/net/route for more information