Re: Two network adapters on seperate networks problem
- From: mikepro@xxxxxxxxx
- Date: 28 Mar 2006 11:02:15 -0800
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!
.
- Follow-Ups:
- Re: Two network adapters on seperate networks problem
- From: Allen McIntosh
- Re: Two network adapters on seperate networks problem
- References:
- Two network adapters on seperate networks problem
- From: mikepro
- Re: Two network adapters on seperate networks problem
- From: Allen McIntosh
- Two network adapters on seperate networks problem
- Prev by Date: Re: Two network adapters on seperate networks problem
- Next by Date: Squid error: Transport endpoint is not connected
- Previous by thread: Re: Two network adapters on seperate networks problem
- Next by thread: Re: Two network adapters on seperate networks problem
- Index(es):
Relevant Pages
|