How do I setup two gateways for one Ethernet card in Linux?
migrated from stackoverflow.com Nov 17 '09 at 5:34
This question came from our site for professional and enthusiast programmers.
I'm not positive what exactly you want to accomplish. If you want to have two gateways for a single subnet then you might be able to use the route command.
route add -net xxx.xxx.xxx.xxx netmask 255.255.255.0 gw xxx.xxx.xxx.xxx
Or if you want a computer to have two different ip addresses and use a seperate gw for each ip you can use network alias's and the route command.