Can someone please help me out. I have a linux box at work with one
network card. The computer resides on two networks, the internal
network for the business (at 10.200.3.18) and the Internet (at
188.8.131.52). I have no problem getting the computer to connect to
either network individually through their respective gateways (at
10.200.3.1 and 184.108.40.206), but I'd like to be able to configure eth0
to claim both IP addresses at the same time (I've been able to set up
IP-aliasing without any problems) and use both gateways at the same
time, chooing the appropriate one to connect to either network.
It's setting up route to use both gateways that I've been unable to
do, yet. Is there someway to do this? I've been throught the manpages,
the how-tos, and have even visited the LDP, but I haven't found what I'm
This is what I've got so far:
ifconfig lo 127.0.0.1
ifconfig eth0 up
ifconfig eth0 220.127.116.11
ifconfig eth0:0 10.200.3.18
route add -net 127.0.0.0
route add -net 18.104.22.168 dev eth0
route add -host 22.214.171.124 dev eth0
route add default gw 126.96.36.199
No problems so far... My computer sees the Internet with no problems.
Now how do I go about setting it up so it can see the internal network?
route add -net 10.200.3.0 dev eth0:0 but I get the error "SIOCADDRT:
Anyway, I'm stumped. Any help would be apprecated.