On 14/08/13 20:05, Daniel Lipuma wrote:
> Hello dear community,
> 
> Could you help me?
> 
> What am i doing wrong? I have this configuration
> 
>     192.168.3.1     -  192.168.3.2
> +--------+                        +--------+
> | router1 |---------------    | router2 |
> +--------+                       +--------+
> 192.168.1.1                 192.168.2.1
>      |                                        |
>      |                                        |
> +----+                               +----+
> | PC  |                               | PC   |
> |   1   |                               |   2   |
> +----+                              +----+
> 192.168.1.2             192.168.2.2
> 
> PC 1 become a entry
> route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.1
> PC 2 become a entry, too.
> route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.2.1

Hi,

router1 needs to know 192.168.2.0/24 is via 192.168.3.2

router2 needs to know 192.168.1.0/24 is via 192.168.3.1

if the routers 1 and 2 are default gateways you do not need to put a
route on the PCs, but the routers must have them.

> 
> But when i make ping, i dont have response from PC1 to PC2 and vice versa.
> 
>  I just have ping from 192.168.3.1 from PC1 and 192.168.3.2 from PC2.
> 

you cannot ping in current configuration because router2 does not know
how to get to the 192.168.0.1/24 network, so the reply never reaches you.

Put routes on the routers and I think you'll be ok.

Regards

Jon
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to