修改网络设置

修改/etc/network/interface文件

 

auto lo  

iface lo inet loopback  

  

# The primary network interface  

auto eth0  

iface eth0 inet static  

pre-up ifconfig eth0

        address 192.168.0.50  

        netmask 255.255.255.0

        network 192.168.0.0

        broadcast 192.168.0.255

        gateway 192.168.0.1

        dns-nameservers 202.103.44.150

  

auto eth1  

iface eth1 inet static  

pre-up ifconfig eth1

        address 10.0.0.1  

        netmask 255.255.255.0  

        network 10.0.0.0  

        broadcast 10.0.0.255  

你可能感兴趣的:(网络)