Saturday, February 22, 2014

OSPF - LSA types

Understanding OSPF LSA types is really important for CCNP Route exam and OSPF implementation in general.

LSA Type 1 - Called Router LSAs that a router will generate for every area that is belongs to. It contains routing information such as routers interfaces in the same area, stub networks, its adjacent routers, and relevant interfaces IPs.

LSA Type 2 - Called Network LSAs that are generated by the DR on a multi-access segment. It contains routing information such as LSA Type 1.

LSA Type 3 - Called Network Summary LSAs that are generated by the Area Border Routers. It contains the subnets and costs.

LSA Type 4 - Called ASBR Summary LSAs that are generated by the ASBRs. It contains the subnets and costs (identical with LSA Type 3) and sent when crossing an AS boundary.

LSA Type 5 - Autonomous System External LSAs that are generated by the ASBRs. It contains routing information of external networks.

LSA Type 6 - Called Group Membership LSAs but not supported by Cisco devices.

LSA Type 7 - Called NSSA External LSAs that are generated by the ASBR in an NSSA area. LSA Type 7 will be use to carry the external prefix information into the non so stubby area.

LSA Type 8 - Called External Attribute LSA but not supported by Cisco devices.

LSA Types 9 to 11 - Called Opaque LSAs but not supported by any network devices - reserved for future expansion.












Monday, February 17, 2014

OSPF - Virtual Links


When you are using OSPF as your routing protocol there is one thing that you must consider before the actual network implementation. An OSPF network must contain an area 0 and might contain different areas. All OSPF areas must be connected to area 0, what we called backbone area. Usually, when our network expends, we might end up having non-zero area connected to a non-zero area and this of course won't allow communication between the areas. The solution to this case is to use a virtual link to bridge across an intermediate area. Let's see an example.

Topology

R2(config)# router ospf 1
R2(config)# router-id 2.2.2.2
R2(config)# network 10.23.23.0 0.0.0.3 area 23

R3(config)# router ospf 1
R3(config)# router-id 3.3.3.3
R3(config)# network 10.23.23.0 0.0.0.3 area 23
R3(config)# network 10.34.34.0 0.0.0.3 area 34

R4(config)# router ospf 1
R4(config)# router-id 4.4.4.4
R4(config)# network 10.34.34.0 0.0.0.3 area 34
R4(config)# network 10.46.46.0 0.0.0.3 area 0


R6(config)# router ospf 1
R6(config)# router-id 6.6.6.6
R6(config)# network 10.46.46.0 0.0.0.3 area 0

As you can see the area 23 is not connected to area 0 and R4 won't have the route 10.23.23.0 in its routing table. To solve this issue we have to configure a virtual-link between R3 and R4 (transit area).

R3(config)# router ospf 1
R3(config)# area 34 virtual-link 4.4.4.4

R4(config)# router ospf 1
R4(config)# area 34 virtual-link 3.3.3.3

After the virtual-link configuration, check the R4's routing table and you will see an IA route to 10.23.23.0 network. You can also verify with the show ip ospf virtual-links command.