狮子的雄心,骆驼的耐力,孩子的执著!
分类: LINUX
2009-04-14 09:47:54
/etc/network/interfaces编辑 文件 sudo vi /etc/network/interfaces重起 网卡 sudo /etc/init.d/networking restart # This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5). # The loopback network interfaceauto loiface lo inet loopbackaddress 127.0.0.1netmask 255.0.0.0auto eth0iface eth0 inet dhcpiface eth1 inet static address 192.168.0.2 netmask 255.255.255.0 gateway 192.168.0.1/etc/resolv.conf, which should look something like this: search mydomain.examplenameserver 192.168.0.1nameserver 4.2.2 .2/etc/resolv.conf