分类: LINUX
2013-05-25 09:08:46
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.100
gateway 192.168.1.1
netmask 255.255.255.0
2.DNS
~~~~~~~~~~~~~~~~~~~~~~
vim /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver ipaddress
nameserver ipaddress
3.network restart
sudo /etc/init.d/networking restart
sudo apt-get update
4.paramater meaning
man interfaces