gedit /etc/network/interfaces
auto lo #开机自动激活
iface lo inet loopback #配置lo回环接口
mapping hotplug
script grep
map eth0 eth0
auto eth0 #开机自动激活eth0接口
iface eth0 inet static #接口eth0的静态配置
address 192.168.10.237 #IP地址
netmask 255.255.255.0 #子网掩码
network 192.168.10.0 #网络地址
gateway 192.168.10.1 #网关
broadcast 192.168.10.255 #广播地址
dns-nameservers 202.96.134.133 #DNS解析服务器IP地址
auto eth0:1 #eth0 接口配置第2个IP地址
iface eth0:1 inet static
address 192.168.1.111
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 202.96.134.133
auto wlan0 #开机自动激活无线网卡
iface wlan0 inet dhcp #自动配置I
/etc/init.d/networking restart