Re: bidirectional forwarding

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

 



Jason Opperisano schreef:

> > PC1               R1           R2           R3           R4            PC2
> > |---------------|   |-------|    |--------|   |--------|   |-----------|
> > 192.168.10.2   .1  12.1    12.2 13.1     13.2 16.1    16.2 11.1       11.2
> > e0             e0   e1     e0   e1        e0  e1       e0  e1          e0
>
> assuming:
>
>   default gw of pc1 is 10.1
>   default gw of r1 is 12.2
>
>   default gw of pc2 is 11.1
>   default gw of r4 is 16.1
>
> both r2 & r3 will need static routes telling them how to get to networks 10 and 11:
>
> on r2:
>
>   192.168.10.0/24 via 192.168.12.1
>   192.168.11.0/24 via 192.168.13.2

How cat r2 reach your 16-network? you will need to add a routing for
that network to.

>
>
> on r3:
>
>   192.168.10.0/24 via 192.168.13.1
>   192.168.11.0/24 via 192.168.16.2

Same for r3, but now for your 12-network.

>
>
> the output of:
>
>   ip route get 192.168.10.2
>   ip route get 192.168.11.2
>
> on r2 and r3 should clue you in to where the packets are going.
>
> HTH...
>
> -j

Routingprotocols are designed for this kind of problem, to get this
resolved
automaticly. In this case you might look at zebra.

Regards,
--
Frans Luteijn
PGP PblKey fprnt=C4 87 CE AF BC B6 98 C1  EF 42 A1 9A E2 C0 42 5B
GPG PblKey fprnt=ED20 0F25 C233 DC59 3FFA  170E D0BF 15F5 0BA6 1355



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux