Professional Documents
Culture Documents
OSPF Practical Lab
OSPF Practical Lab
Topology
router ospf 1
Output:
OUTPUT at R2: here E2 is the external routes, which we redistributed into OSPF.
R2(config)# do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Notes: As we know LSA 5 will be generated only when we redistribute the routes in OSPF, it is
generated by ASBR, when ASBR send LSA 5 to ABR router, in our case ASBR is R1 and ABR is R2, R1 will
send LSA 5 to R2, then R2 will generate LSA 4.
STUB:
Topology:
We have made Area 1 as Stub
Router ospf 1
Area 1 stub
As we know Stub routers will only show O and OIA routes and there
will be default route 0.0.0.0* to ABR router.
OUTPUT at R8:
OUTPUT at R4:
R4(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Totally Stub:
Topology:
Router ospf 1
OUTPUT at R9:
R9#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
NSSA:
As we know that LSA 5 cannot enter STUB, but if in future there can
be possibility that stub area needs to be connected to some customer
router for redistribute the routes, for that we have NSSA Not so
stubby area, It will generate LSA 7 which will be in area 1, and when it
will go to area 0 it will be converted to LSA5 by the ABR of area 0.
Topology:
We have configured EIGRP between R10 and R4, and redistributed
EIGRP routes in R4, we also need to make area 1 as NSSA, need to
configure it on all area 1 routers.
router ospf 1
area 1 nssa
OUTPUT at R8:
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route