[問題] Ubuntu 10.10 網路連線的通訊閘問題

看板Linux作者 (龍騎士2)時間14年前 (2011/08/11 11:50), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
各位好, 我常在不同網路區段使用筆電 因此常需要變更 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 但我希望不必改這個檔案. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.179.20 ※ 編輯: longrider 來自: 140.113.179.20 (08/11 11:51)

08/11 13:10, , 1F
route -n 就變 ip 了, my.router是反解出來的
08/11 13:10, 1F

08/11 14:05, , 2F
我知道,但問題在於多餘的反解功能導致網路出不去
08/11 14:05, 2F

08/11 14:23, , 3F
kernel記得的是ip,不是hostname. 反解是route做的
08/11 14:23, 3F

08/11 14:24, , 4F
cat /proc/net/route for more information
08/11 14:24, 4F
文章代碼(AID): #1EGr61tW (Linux)