编辑/etc/network/interfaces
[15:31:07] NETAD-GZ-IT+joji(万君军) 说: 一个示例:
[15:31:09] NETAD-GZ-IT+joji(万君军) 说: # The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.8.28
netmask 255.255.255.0
gateway 192.168.8.1
然后编辑/etc/resolv.conf 加上你的dnsserver
/etc/init.d/networking restart 就可以了,不用重开机。