>ie only 0.0.0.0 in gw col, as "XXX" pointed out

I don't want to start a war, but this isn't a valid argument as to why his
routing isn't working.  The gw address can be used, and is valid if
there are two subnets on 1 NIC.  For example:

Kernel IP routing table
Destination   Gateway       Genmask         Flags Metric Ref Use Iface
192.168.1.0   192.168.1.1   255.255.255.248 UG    0      0     0 eth1
192.168.1.8   192.168.1.10  255.255.255.248 UG    0      0     0 eth1
0.0.0.0       192.168.1.13  255.255.255.0   UG    1      0     0 eth1

eth1 is 192.168.1.1, broadcast is 192.168.1.7
eth1.0 is 192.168.1.10 broadcast is 192.168.1.15

In the above example defining the gateway for the kernel is necessary
because the access to the WAN or Internet is through a machine,
192.168.1.13, on the second subnet.  Without it the kernel wouldn't know
how to access a request for IP address 123.456.7.8 (been there, done
that).

I fixed the routing problems on my LAN by going with the following (same
solution as above but with 2 NICs):

Destination  Gateway       Genmask         Flags Metric Ref  Use Iface
192.168.2.8  192.168.2.10  255.255.255.248 UG    0      0      0 eth1
10.0.0.0     10.0.0.2      255.0.0.0       UG    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.0.0.1      0.0.0.0         UG    1      0      0 eth0

The gw IP address for each NIC is defined for the kernel, so there's no
question as to how to access each network.  And, as I said, it's up and
running.  All boxes can access each other and the Internet through the
Linux box which uses the above routing table.

$ ping marie
PING marie (192.168.2.13) from 192.168.2.10 : 56(84) bytes of data.
64 bytes from 192.168.2.13: icmp_seq=0 ttl=128 time=1.7 ms
64 bytes from 192.168.2.13: icmp_seq=1 ttl=128 time=1.0 ms
64 bytes from 192.168.2.13: icmp_seq=2 ttl=128 time=1.0 ms
64 bytes from 192.168.2.13: icmp_seq=3 ttl=128 time=1.0 ms
64 bytes from 192.168.2.13: icmp_seq=4 ttl=128 time=1.0 ms
64 bytes from 192.168.2.13: icmp_seq=5 ttl=128 time=1.0 ms
64 bytes from 192.168.1.13: icmp_seq=6 ttl=128 time=0.9 ms

--- marie ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 0.9/1.0/1.7 ms

Please don't misinterpret what I'm saying; I'm NOT saying that he has to
set the gw address.  I am saying that the argument that this is his
problem isn't valid.

Glen



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to