欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ubuntu取消pppoe啟動時自動拔號的設(shè)置方法

 更新時間:2008年09月12日 00:25:24   作者:  
昨晚用pppoe撥號,今早回公司發(fā)現(xiàn)原先的dhcp設(shè)置不生效了,所以取消pppoe啟動時自動拔號
解決方案:
sudo gedit /etc/network/interfaces
auto dsl-provider 改成 #auto dsl-provider
此外還將所有跟dsl相關(guān)的語句注釋,重啟,ok。
設(shè)置靜態(tài)ip的方法:
Ubuntu的網(wǎng)絡(luò)參數(shù)保存在文件 /etc/network/interfaces中,默認(rèn)設(shè)置使用dhcp,內(nèi)容如下:
# The primary network interface
auto eth0
iface eth0 inet dhcp
設(shè)置靜態(tài)ip的方法如下:
(1)編輯 /etc/network/interfaces
1.1)將dhcp 一行屏蔽
# The primary network interface
auto eth0
#iface eth0 inet dhcp
1.2)添加和靜態(tài)ip有關(guān)的參數(shù)
# The primary network interface
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
(2)編輯 /etc/resolv.conf,設(shè)置dns
nameserver 202.96.134.133
nameserver 202.106.0.20
(3)執(zhí)行下面兩個命令,啟用新設(shè)置
$sudo ifdown eth0
$sudo ifup eth0

相關(guān)文章

最新評論