ubuntu8.10如何配置IP
ubuntu8.10如何配置IP 2008-12-04 09:37sudo gedit /etc/network/interfaces 修改网卡配置文件,打工文件后填下面内容: auto eth0 (启用网卡)
iface eth0 inet static ( 设置为静态IP) address 192.168.1.3 netmask 255.255.255.0 gateway 192.168.1.1设置你自己的IP,完成后点上面工具栏的保存;如果是英文就点Save。
然后命令行下在打 sudo gedit /etc/resolv.conf 设置DNS服务器,打开文件后写上你自己的DNS namesever 219.150.32.132(主dns) nameserver 222.85.85.85(备用DNS)完成后点上面工具栏的保存;如果是英文就点Save。
设置完成IP后还要sudo /etc/init.d/networking restart(重启网络) 然后再设置DSN