Ian Cottrell wrote:
 
>      You should not need any entries in your rc.local file.  Unless you have
> additional static routes to add to your system (which, as near as I can tell,
> you do not), then everything should be taken care of by the scripts in
> /etc/sysconfig/network-scripts. Please post your ifcfg-lo ahd ifcfg-eth0 from
> that directory (and delete the 'route' entries in rc.local).
 
>      The difference between route -n and route indicates that you still have a
> name resolution problem (the -n tells route not to bother converting the
> numbers to names, hence the lack of delay).  But, lets fix the routing
> problems first and deal with name lookup afterwards............................Ian

I've partially licked the delay problem by changing .254 to .54 in
/etc/sysconfig/network-scripts/ifcfg-eth0. I no longer need -n to prevent
delay if I have no ppp connection up, but I get a long delay before the first
line displays if ppp is active.

This is current route without ppp up:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
st21s.atlantic. *               255.255.255.255 UH    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         st21s.atlantic. 0.0.0.0         UG    0      0        0 eth0
default         st21s.atlantic. 0.0.0.0         UG    1      0        0 eth0

This is with ppp up:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
209.208.25.25   *               255.255.255.255 UH    0      0        0 ppp0
st21s.atlantic. *               255.255.255.255 UH    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         st21s.atlantic. 0.0.0.0         UG    1      0        0 eth0

I see one of the default entries disappears when ppp is up. According to what
Pierre Fortin has been offering, there's still an unnecessary eth0 entry. The second
line looks to be the extra, and it has an "H" flag missing from his too.

/etc/sysconfig/network-scripts/ifcfg-eth0 (with .254 changed to .54):
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.54
NETMASK=255.255.255.0
GATEWAY=192.168.0.54

/etc/sysconfig/network-scripts/ifcfg-lo:
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

/etc/rc.d/rc.local now ends as follows:
/sbin/ifconfig eth0 192.168.0.54 netmask 255.255.255.0 up
/sbin/ifconfig lo 127.0.0.1 up
#/sbin/route add -host 127.0.0.1 lo
#/sbin/route add default gw 192.168.0.54
#/sbin/route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.54
-- 
A fool gives full vent to his anger, but a wise man keeps himself under control.       
         Proverbs 29:11 NKJV

 Team OS/2

Felix Miata  ***  http://mrmazda.members.atlantic.net/



Reply via email to