| John Wrate 2004-01-23, 5:06 pm |
| Hi all,
I have a Linux server which is connected to the Internet. On the same
network where this server is connected I have a second Internet
connection (ADSL/NAT) and I would like to know if it is possible to
set up a second "virtual" ip address on the server which can use the
NAT Internet connection to connect to the Internet instead of the
default network gateway.
I know I can set up a second ip address doing this:
/sbin/ifconfig eth0:1 new.ip.address netmask 255.255.255.xxx
But my question is, can I use the route command to have this second ip
address use a different gateway than the gateway configured on the
device (eth0) it is associated with?
Sort of like this, although I know this doesn't not work since I've
already tried it:
/sbin/route add -host new.ip.address gw a.different.gateway
Can anyone suggest a way of doing this, that is, if this is even
possible.
Any suggestions will be very much appreciated.
Wrate
|