Gentoo 固定ip連上網路 - Linux

Necoo avatar
By Necoo
at 2010-04-01T12:53

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}
這樣就會成功了!

--
Tags: Linux

All Comments

Robert avatar
By Robert
at 2010-04-04T11:56
該如何把這方法上傳給社群文件呢?
Catherine avatar
By Catherine
at 2010-04-09T06:28
網路設定不是在 /etc/conf.d/net 內設定的嗎?
Enid avatar
By Enid
at 2010-04-13T07:54
應該不用跑 ifconfig 及 route 命令吧?
Jacob avatar
By Jacob
at 2010-04-17T12:54
在安裝光碟中要
Andrew avatar
By Andrew
at 2010-04-19T15:59
咦?完全沒有印象... 難道我是改了 net 檔再 restart 嗎?

有人試過 wayland 嗎?

Ula avatar
By Ula
at 2010-04-01T05:18
有人試過 wayland 嗎? 想知道效果如何 找了一個 PPA 的源,但是是給 10.04 用的,而我的是 9.10 https://launchpad.net/~bryceharrington/+archive/bronze/+packages - ...

執行網頁出現 Warning: You are not root

Catherine avatar
By Catherine
at 2010-03-31T22:27
我遠端去執行linux主機上的網頁 出現了錯誤訊息 Warning: You are not root -- using TCP pingscan rather than ICMP TCP/IP fingerprinting (for OS scan) requires root privileges ...

Mandriva安裝檔的問題

Quintina avatar
By Quintina
at 2010-03-31T21:30
※ 引述《capetatiek (A咖神手)》之銘言: : 新手問題=.= : 我從這裡要載 http://www2.mandriva.com/downloads/?p=linux-free : 請問我要載哪個ISO檔? 網頁中間的DVD 64bits不看 : mandriva-linux-free-2010 ...

安裝ChromePlus要怎麼裝?

Leila avatar
By Leila
at 2010-03-31T18:47
依書上的指令, 先用tar將Chromeplus-1.3.....tar.gz 解壓縮, 但是接下來呢? 他好像可以直接執行的樣子? 這樣跟WINDOWS的免安裝版是不是同個意思? - ...

VMware的share folder功能

Una avatar
By Una
at 2010-03-31T18:30
想問一下各位 我是在XP下用VMware虛擬linux 使用VMware的share folder功能之後 我把XP的檔案移到那個資料夾後,linux就可以使用那個檔案 但是如果我想把linux的檔案移到我的分享資料夾 他都會說目的地空間不夠 請問要怎麼解決呢 - ...