[LUNI] Route add
Lawrence, Sean
slawrence at seveninteractive.com
Thu Nov 1 14:41:02 CST 2001
I tried adding it to static-routes before I posted this but that didn't
help.
I really don't see wh it needs to be added to a startup script. I was able
to change it back to the old IP and it generated a correct netmask. I've
had to change the external IP on this box once before which also involved a
different gateway as well and had no problems. Now that we had to move it
to an external IP that had to route out it totally flaked. I can't
understand why it was pulling 255.255.255.255 rather than 0.0.0.0 as it
should have.
Let me be explicit. When we changed the IP to the new internal one the
external one was going to translate to the new routing table on the box read
like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
x.x.x.x * 255.255.255.0 U 0 0
0 eth0
127.0.0.0 * 255.0.0.0 U 0 0
0 lo
default x.x.x.x 255.255.255.255 UG 0 0
0 eth0
We then hosed the default route and did:
route add -net 0.0.0.0 gw x.x.x.x netmask 0.0.0.0
This took and read somethinglike:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
x.x.x.x * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default x.x.x.x 0.0.0.0 UG 0 0 0 eth0
when we restart the nework it looked like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
x.x.x.x * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
It didn't hold the default even after we added it which did make a whole lot
of sense to me. Once we changed the IP back everything was fine.
Hope that makes my problem a little more understandable.
Thanks,
Sean
-----Original Message-----
From: Simon L. Epsteyn [mailto:seva at sevatech.com]
Sent: Thursday, November 01, 2001 2:11 PM
To: Linux User Group (E-mail)
Subject: Re: [LUNI] Route add
This needs to be added to one of the init scripts, for example on newer Red
Hat Linux it would go into /etc/sysconfig/network or
/etc/sysconfig/network-scripts/ifcfg-eth0 on older ones.
/Simon
On Thu, 1 Nov 2001, Lawrence, Sean wrote:
> I'm having a huge problem, we moved our server behind the DMZ we changed
the
> IP, the default route was bogus and we hosed it but when we do a route add
> -net 0.0.0.0 gw x.x.x.x netmask 0.0.0.0 it adds the routes but doesn't
hold
> it when we start the network service.
>
> I need some serious help here.
>
> Thanks,
>
> Sean
> ______________________________________________________________________
> Linux Users Of Northern Illinois - Technical Discussion
> luni at luni.org
> http://luni.org/mailman/listinfo/luni
>
--
seva at sevatech.com
http://sevatech.com
______________________________________________________________________
Linux Users Of Northern Illinois - Technical Discussion
luni at luni.org
http://luni.org/mailman/listinfo/luni
More information about the luni
mailing list