Trying to edit this thing down a bit, Felix. I seem to be getting 2 or 3 or
sometimes even 4, of everything, so trying to keep it as short as possible.
I don't have ppp (using cable modem), so my routing table is not quite the
same, but here it is anyway:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.53.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
192.168.53.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
24.156.70.0 0.0.0.0 255.255.254.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 24.156.70.1 0.0.0.0 UG 0 0 0
eth0
In detail:
192.168.53.254 is the host ip of the 'inside' (secure) network. Both the
netmask (255.255.255.255) and the flags (U = route is up, H = target is a
host) are correct for this device. It is reached through eth1.
192.168.53.0 is the sucure network. Again the netmask and flags are
correct. This is also reached through eth1.
24.156.70.0 is the outside (unsecure) network and again, netmask and
flags are fine. This network is, however, reached via eth0.
0.0.0.0 is the 'default route' or the 'gateway of last resort'. When no
other route is appropriate, data are sent here. This is the only entry that
has (or needs) a gateway address and that address is supplied by @home
via dhcp. Its netmask is correct for 'the universe' (everything) and the flags
indicate that it is up and that it is a gateway.
Now notice that I have defined 1 host, 1 gateway and 1 local host and 2
networks while you have defined 2 hosts, 1 gateway and 1 local host and 1
network. Forgetting localhost, I have 1 network defined for each interface,
one host and one default route. Damn, this seems to be going on and on!
Anyway, I believe that your ifcfg-* files are still incorrect and that you do
not need the the ifconfig statements in rc.local. I could be totally wrong
here; I'm the first to admit that I know NOTHING about ppp. It could also
be a function of the version that you are running. All of my Linux
experience is the RH 6.x and MDK 8.0 (although I have been networking
with various Unices since the early 80's).
You did not post your ifcfg-ppp file (I believe that there should be one). I
really don't know what it SHOULD look like, since it has to deal with all
that modem initialisation and dialing stuff. You can also look of
/etc/ppp/options (if it's there) and post that too.
Sure hope that I haven't totally confused you. I may well have confused
myself! (=: .......................Ian
> 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/
>
>
>