Gentoo 固定ip連上網路 - Linux

Table of Contents

Gentoo 的網路設定教學中
使用net-setup eth0 這指令有時候會不成功

照它的手動安裝方式安裝也會失敗:

ifconfig eth0 ${IP} broadcast ${BROADCAST} netmask ${NETMASK}

route add default gw ${GATEWAY}
會顯示network unreachable

但在gateway內的網路ip又連得到
只有通過gateway連外的不行

解決辦法是:
route add ${GATEWAY} eth0
route add default gw ${GATEWAY}
這樣就會成功了!

--

All Comments

Robert avatarRobert2010-04-04
該如何把這方法上傳給社群文件呢?
Catherine avatarCatherine2010-04-09
網路設定不是在 /etc/conf.d/net 內設定的嗎?
Enid avatarEnid2010-04-13
應該不用跑 ifconfig 及 route 命令吧?
Jacob avatarJacob2010-04-17
在安裝光碟中要
Andrew avatarAndrew2010-04-19
咦?完全沒有印象... 難道我是改了 net 檔再 restart 嗎?