On Sat, 18 Nov 2000, Chris Dowling wrote:
> On Fri, 17 Nov 2000, Rob Ruth wrote:
>
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric Ref Use
> > Iface
> > cp1 * 255.255.255.255 UH 0 0
> > 0 eth0
> > 10.0.0.0 * 255.0.0.0 U 0
> > 0 0 eth0
> > 127.0.0.0 * 255.0.0.0 U 0
> > 0 0 lo
> >
> >
> > With the above config I can ping. telnet, etc.
> >
> > The problem is that if I uncommnet the line "Gateway=10.0.0.7" in
> > /etc/sysconfig/network I can't ping, telnet or any other network activity.
> > Also, when I specify the gateway as 10.0.0.7, the route command hangs... Any
> > ideas? The gateway has to be set to 10.0.0.7 because this is the webservers
> > route out to the inet... Suggestions?
> >
> > -Rob
>
> I believe that you'll need to set a route to 10.0.0.7, so that it knows
> how to get to that address so that it can use it as the gateway.
>
> try something like:
> route add -host 10.0.0.7 netmask 255.255.255.255 10.0.0.21
> route add default gw 10.0.0.7
>
> dunno about the netmask to be honest (I'm no networking person) but that
> should get you going.
>
> chris.
>
>
As long as there is a route to the 10.0.0.0 network, you do not need a
specific route to the gateway machine. You do need to specify the
interface to use when you specify the default route.
route add default gw 10.0.0.7 eth0
Here is my routing table (route -n)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.9.0 0.0.0.0 255.255.255.0 U 0 0 13783 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 229 lo
0.0.0.0 192.168.9.254 0.0.0.0 UG 0 0 4615 eth0
(I removed some spaces so the table fits.)
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list