routing and 2 subnet

routing and 2 subnet

Post by mi_trida.. » Tue, 13 Feb 2001 08:14:33



Hi averyone

im in little difficulty with configuring my network.

                                          192.168.0.3
                                                 |
                                              eth0-BoxC-eth1
               192.168.168.11    192.168.0.1     |
                           |         |           |
Internet --le0-BoxA-ne0 -- ed0-BoxB-ep0 ------- hub
            |        |                           |
       x.x.x.x  192.168.168.10                   |
                                              eth1-BoxD-eth0
                                                |
                                         192.168.0.4

BoxA (ipfilter, ipnat), BoxB (ipnat enable) are FreeBSD 4.2 S
the reste are Linux 2.2.18/2.4.0.
With BoxA & B, I can ping www.cnn.com (just an example), not with BoxC &
D

192.168.0.1 is gateway for BoxC and D
/etc/resolv.conf with nameserver of my ISP (on all boxes)
i can ping from BoxC and D  ep0 and ed0

I tried on Linux (without success):

route add -net 192.168.168.0 netmask 255.255.255.0 dev eth1

boxd:
 route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0
eth1
192.168.168.0   0.0.0.0         255.255.255.0   U     0      0        0
eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0
eth1

still no Internet for BoxC & D

so what did i miss ?

Regards

Sent via Deja.com
http://www.deja.com/

 
 
 

routing and 2 subnet

Post by mi_trida.. » Tue, 13 Feb 2001 08:29:08


oups
sorry for a little mess with picture

so

Box A   le0 x.x.x.x
        ne0 192.168.168.10

BoxB    ed0 192.168.168.11
        ep0 192.168.0.1

boxC    eth0 192.168.0.3
BoxD    eth1 192.168.0.4

bye

Sent via Deja.com
http://www.deja.com/

 
 
 

routing and 2 subnet

Post by Tauno Voipi » Tue, 13 Feb 2001 23:23:57



Quote:> Hi averyone

> im in little difficulty with configuring my network.

>                                           192.168.0.3
>                                                  |
>                                               eth0-BoxC-eth1
>                192.168.168.11    192.168.0.1     |
>                            |         |           |
> Internet --le0-BoxA-ne0 -- ed0-BoxB-ep0 ------- hub
>             |        |                           |
>        x.x.x.x  192.168.168.10                   |
>                                               eth1-BoxD-eth0
>                                                 |
>                                          192.168.0.4

> BoxA (ipfilter, ipnat), BoxB (ipnat enable) are FreeBSD 4.2 S
> the reste are Linux 2.2.18/2.4.0.
> With BoxA & B, I can ping www.cnn.com (just an example), not with BoxC &
> D

I understood that BoxA and BoxB can ping each other. Also BoxB, BoxC and
BoxD can ping each other.

BoxB should route the 192.168.0.0/24 net from the 192.168.168.0/24 net. It
should not do a second NAT but IP forwarding instead. It should also have IP
forwarding enabled.

Check by pinging BoxA from the 192.168.0.0/24 network.

Tauno Voipio