ubuntu network

Edit the /etc/network/interfaces file so as to looks like this:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
		address 10.10.10.2
		netmask 255.255.255.0
		broadcast 10.10.10.255
		gateway 10.10.10.1
		dns-nameservers 10.10.10.3

auto eth1
iface eth1 inet static
		address 192.168.3.1
		netmask 255.255.255.0
		network 192.168.3.0
		broadcast 192.168.3.255

Restart the network now
sudo /etc/init.d/networking restart

你可能感兴趣的:(NetWork)