Re: Two network adapters on seperate networks problem



Thanks for the quick reply Allen. I did figure out that using
10.9.81.193 as my default gateway was bad, and that having 2 gateways
was also bad. So, I removed that entry, and I think my default gateway
is now automagically set to that which I get from DHCP.

Soo... I made a perl script to parse my /etc/hosts file and get the
IP's of the machines on the isolated network I need access to. For each
of these $ip addresses I have the script execute:
/sbin/route -v add -host $ip eth0

Now I have access to all of the machines I need on the isolated
network, and public internet works too. So, I seem to have what i
wanted. Is this really the correct or proper way to do this? One
question I have, is why didn't it need me to tell it that the gateway
for those routes on eth0 was 10.9.81.193? I also need to figure out how
to make those route commands persist, or run the script after bootup,
which isn't a big deal..



Here is a snippet of output of route -n. I've snipped out a bunch of
lines that are similar to the first 2, and are the IP's of the other 30
or so systems on the isolated network. Does anything here look like it
will cause me any problems?

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.9.71.196 0.0.0.0 255.255.255.255 UH 0 0 0
eth0
10.9.69.196 0.0.0.0 255.255.255.255 UH 0 0 0
eth0
10.9.16.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 10.9.16.1 0.0.0.0 UG 0 0 0
eth1


Thanks!

.



Relevant Pages

  • Re: networking
    ... > All of your traffic is being routed to your LAN not your dial-up adapter. ... > traffic) through your ppp adapter using the gateway assigned by your ISP. ... That will route all traffic to you LAN address space ... from opening page eth0 Ethernet ...
    (alt.os.linux)
  • Re: routing behaviour with two nics on same subnet
    ... To default gateway, but via which device? ... If there are multiple best route with equivalent priority, I like to consider that the chosen one among then is unpredictable. ... 10.10.88.0/22 dev eth0 proto kernel scope link src 10.10.88.67 ... 10.10.88.0/22 dev eth1 proto kernel scope link src 10.10.88.104 ...
    (comp.os.linux.networking)
  • Re: Two network adapters on seperate networks problem
    ... If you can contact them directly without a gateway, ... I think each system is connected to a local switch with several other ... Is there a way to tell eth0 to use the gateway 10.9.81.193 for all ... I didn't see a way to really do that with the route ...
    (comp.os.linux.networking)
  • Re: howto isolate 2 nics?
    ... The default route is through eth1 with a gateway of 192.168.1.12. ... eth0, is going out eth1. ... instead of providing a proper route to that network. ...
    (Fedora)
  • remove
    ... Routing problem - was FC9 Linux gateways, VPN working, IP ... Local gateway can talk to remote server. ... ppp0 192.168.127.2/32 P-to-P 192.168.127.1 ...
    (Fedora)