Ubuntu网络配置

修改/etc/network/interfaces:

 

# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.11.11
gateway 192.168.11.2
netmask 255.255.255.0
network 192.168.11.0
broadcast       192.168.11.255

 

重启网卡:/etc/init.d/networking restart

 

指定dns服务器,修改/etc/resolv.conf:

 

search localdomain
nameserver 192.168.11.2

你可能感兴趣的:(ubuntu)