常用Ubuntu安裝網(wǎng)絡(luò)配置系統(tǒng)
學習Ubuntu安裝配置時,你可能會遇到Ubuntu安裝配置網(wǎng)絡(luò)問題,這里將介紹Ubuntu安裝配置網(wǎng)絡(luò)問題的解決方法,在這里拿出來和大家分享一下。Ubuntu安裝配置 。
Ubuntu安裝配置網(wǎng)絡(luò)
sudo pppoeconf
pon dsl-provider
poff
在終端輸入
sudo gedit /etc/ppp/options
將彈出的文檔中的 lcp-echo-failure 4 改為 lcp-echo-failure 40 這是因為Ubutnu默認的設(shè)置有個很明顯的缺陷,lcp-echo-failure次數(shù)被設(shè)為4,而lcp-echo-interval設(shè)為30秒。也就是說,如果120秒鐘之內(nèi),ADSL服務(wù)器沒有給回echo-reply信號,Ubuntu便會認為網(wǎng)絡(luò)已經(jīng)出了問題,馬上中斷重聯(lián),搞得人非常不爽。
其它常用網(wǎng)絡(luò)Ubuntu安裝配置
圖形界面有時候Ubuntu安裝配置網(wǎng)絡(luò)不能生效,可以用命令行配置
IP命令行配置如下
sudo gedit /etc/network/interfaces
DHCP
DHCP配置如下(假設(shè)通過eth1上網(wǎng))
# The primary network interface - use DHCP to find our address
auto eth1
iface eth1 inet dhcp //指定為dhcp
然后重啟
sudo /etc/init.d/networking restart
Static IP
靜態(tài)IP地址Ubuntu安裝配置如下(假設(shè)通過eth1上網(wǎng))
# The primary network interface
auto eth1
iface eth1 inet static //指定為static
address 192.168.3.90 //IP地址
gateway 192.168.3.1 //網(wǎng)關(guān)
netmask 255.255.255.0 //子網(wǎng)掩碼
同樣需要重啟
sudo /etc/init.d/networking restart
DNS
如果有必要,Ubuntu安裝配置DNS
sudo gedit /etc/resolv.conf
nameserver 192.168.3.2
【編輯推薦】