Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The problem in such a setup is obvious, R2 can not reach the external network directly. Traffic going to the LAN network from R2 will be forwarded to router R1over the router R1, but if we look at the network diagram we can see that more R2 can directly reach the router where the LAN network i located.


So knowing the forwarding address conditions, we can make router R1 to set the forwarding address. We simply need to add 10.1.101.0/24 network to OSPF networks in the router's R1 configuration:

Code Block
languageros
/routing/ospf/interface-template add area=backbone_v2 networks=10.1.101.0/24


Now lets verify that forwarding address is actually working: 

Code Block
languagetext
themeFadeToGrey
[admin@r2] /ip/route> print where dst-address=192.168.0.0/24
Flags: D - DYNAMIC; A - ACTIVE; o, y - COPY
Columns: DST-ADDRESS, GATEWAY, DISTANCE
    DST-ADDRESS       GATEWAY            DISTANCE
DAo 192.168.0.0/24    10.1.101.1%ether1       110




On all OSPF routers you will see LSA set with forwarding address other than 0.0.0.0 

Code Block
languagetext
themeFadeToGrey
[admin@r2] /routing/ospf/lsa> print where id=192.168.0.0
Flags: S - self-originated, F - flushing, W - wraparound; D - dynamic 

 1  D instance=default_ip4 type="external" originator=10.1.101.10 id=192.168.0.0 
      sequence=0x80000001 age=19 checksum=0xF336 body=
        options=E
        netmask=255.255.255.0
        forwarding-address=10.1.101.1
        metric=10 type-1
        route-tag=0


Note

OSPF adjacency between routers in the 10.1.101.0/24 network is not required

...