亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Ubuntu Linux系統(tǒng)下設(shè)置靜態(tài)IP的方法

  發(fā)布時(shí)間:2008-09-08 17:00:41   作者:佚名   我要評(píng)論
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 prima

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í)行下面兩個(gè)命令,啟用新設(shè)置

$sudo ifdown eth0

$sudo ifup eth0

相關(guān)文章

最新評(píng)論