2014年5月24日 星期六

slackware與ubuntu網路設定不同處

Slackware其設定檔案的位置在於 /etc/rc.d/rc.inet1.conf 其中設定內容為
IPADD[0]="192.168.0.1" NETMASK[0]="255.255.255.0" GATEWAY="192.168.0.1"
至於在DNS設定方面則在 /etc/resolv.conf
nameserver 168.95.192.1 nameserver 168.95.1.1
然而在ubuntu14.0的部分在於其設定檔位在 /etc/network/interfaces 其中設定內容為
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.1 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 168.95.192.1 168.95.1.1
因為ubuntu把設定都整合在一個設定檔中,如此可以一次將所需要的部分設定完整