PDA

View Full Version : [ubuntu] IP on Multiple LAN Cards



neandero
February 6th, 2013, 11:20 PM
my settings inside /etc/network/interfaces are:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 123.123.123.22
netmast 255.255.255.248
gateway 123.123.123.17


only one network will work at a time.
even adding the below line:


route add default gw 123.123.123.17
--OR--
route add default gw 192.168.5.254

What can be done to make both networks work at the same time??

thanks,

jonobr
February 7th, 2013, 12:54 AM
Hello


When you add your default gateway as one or the other then all traffic will go to that device


I guess what you may be looking for is split access
here (http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html#AEN258)