[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: routing problem?



Cedar Cox wrote:

>I have the default route on A pointing to B, on D pointing to C.  On B I
>have:
>
>Destination     Gateway         Genmask         Flags Metric Ref    Iface
>10.0.1.2        *               255.255.255.255 UH    0      0        cipcb0
>192.168.2.0     10.0.1.2        255.255.255.0   UG    0      0        cipcb0
>192.168.1.0     *               255.255.255.0   U     0      0        eth0
>192.168.0.0     *               255.255.240.0   U     0      0        eth1
>10.0.0.0        *               255.0.0.0       U     0      0        eth2
>loopback        *               255.0.0.0       U     0      0        lo
>
>On C I have:
>
>Destination     Gateway         Genmask         Flags Metric Ref    Iface
>10.0.1.1        *               255.255.255.255 UH    0      0        cipcb0
>192.168.2.0     *               255.255.255.0   U     0      0        eth0
>192.168.0.0     10.0.1.1        255.255.240.0   UG    0      0        cipcb0
>10.0.0.0        *               255.0.0.0       U     0      0        eth1
>loopback        *               255.0.0.0       U     0      0        lo
>
>
Only thing I couldn't understand was why telnet from A to D works.

It seems like there are duplicates in your routing table.

On B - 10.0.0.0-10.255.255.255 routes to eth2, but 10.0.1.2 routes via 
the encryption (if I understand correctly - I have never worked with CIPE).
On both - the 192.168 networks are marked as netmask 240, which means 
that they are the same network. You probably want to have them defined 
as different networks.

On C - 192.168.2.0-192.168.2.255 - eth0
192.168.0.0 - 192.168.15.255 - 10.0.1.1 (notice that one network is 
contained in the second)

You probably want the routing table to read:
B:
192.168.1.0 255.255.255.0 eth0
192.168.1.1 255.255.255.255 eth0
10.0.1.1 255.255.255.255 cibcb0
10.0.1.0 255.255.255.0 cibcb0
192.168.2.0 255.255.255.0 gw 10.0.1.2
default - whatever you use to go on the internet

C:
192.168.2.0 255.255.255.0 eth0
192.168.2.1 255.255.255.255 eth0
10.0.1.2 255.255.255.255 cipcb0
10.0.1.0 255.255.255.0 cipcb0
192.168.1.0 255.255.255.0 gw 10.0.1.1
default - etc.



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il