3.2.b Configure simple OSPFv2/v3: multiple areas, summarization, filtering, network types, passive interfaces
ENCOR 350-401 v1.2 · 3.0 Infrastructure
Beyond a single area, ENCOR expects you to configure multi-area OSPFv2 and OSPFv3, summarise at area borders, filter routes, choose network types and use passive interfaces. Areas keep the link-state database small and the SPF runs local.
What you must know
- Configure ABRs and multiple areas around area 0, for OSPFv2 and OSPFv3 (address families).
- Name the LSA types 1, 2, 3, 4, 5 and 7 and who creates them.
- Summarise inter-area routes on an ABR (
area range) and external routes on an ASBR (summary-address). - Filter routes with
area filter-list(type 3) anddistribute-list in(local RIB only). - Choose network types (broadcast, point-to-point) and passive interfaces.
Areas and LSAs
Every area attaches to area 0. An ABR has interfaces in area 0 and another area and turns each area's routes into type 3 summary LSAs for the others. An ASBR redistributes external routes as type 5 LSAs (type 7 inside an NSSA).
| LSA | Created by | Describes |
|---|---|---|
| 1 Router | Every router | Its links in the area |
| 2 Network | DR | A multi-access segment |
| 3 Summary | ABR | Prefixes from other areas |
| 4 ASBR summary | ABR | How to reach an ASBR |
| 5 External | ASBR | Redistributed prefixes |
| 7 NSSA external | ASBR in an NSSA | Converted to type 5 by the ABR |
Configuration
router ospf 1
router-id 2.2.2.2
passive-interface default
no passive-interface GigabitEthernet0/0
no passive-interface GigabitEthernet0/1
area 10 range 10.10.0.0 255.255.0.0
area 10 filter-list prefix NO-LAB in
!
interface GigabitEthernet0/0
ip ospf 1 area 0
ip ospf network point-to-point
interface GigabitEthernet0/1
ip ospf 1 area 10
ip ospf network point-to-point
!
ip prefix-list NO-LAB seq 5 deny 10.99.0.0/16 le 32
ip prefix-list NO-LAB seq 10 permit 0.0.0.0/0 le 32router ospfv3 1
router-id 2.2.2.2
address-family ipv6 unicast
area 10 range 2001:db8:10::/48
!
interface GigabitEthernet0/1
ospfv3 1 ipv6 area 10Summarising on R2 hides area 10's details from area 0 (1): R1 holds one route, and a flapping LAN in area 10 no longer triggers SPF changes elsewhere. area filter-list stops type 3 LSAs at the ABR; distribute-list in only keeps routes out of one router's table, while the LSAs still flood. A point-to-point network type on Ethernet links between two routers removes DR election; passive-interface stops hellos on user-facing interfaces while still advertising their subnets.
Commands
show ip ospf database summary | Type 3 LSAs: what the ABRs advertise. |
show ip route ospf | O (intra-area), O IA (inter-area), O E1/E2 (external). |
show ip ospf border-routers | ABRs and ASBRs this router knows. |
show ospfv3 neighbor | OSPFv3 adjacencies. |
Exam traps
- Summarise inter-area routes on the ABR with
area range; external routes on the ASBR withsummary-address. - A
distribute-list infilters the routing table, not the LSDB. - Every non-backbone area must touch area 0 (or use a virtual link).
- OSPFv3 still needs a 32-bit router ID; on an IPv6-only router, configure it.
- Network types must match for the adjacency to work properly (timers, DR).
Check yourself
- Which LSA type does an ABR create for prefixes from another area?
- Type 3.
- Where do you summarise area 10's networks for the rest of the domain?
- On the ABR, with
area 10 range …. - What is the difference between
area filter-listanddistribute-list in? - The filter-list stops type 3 LSAs at the ABR for the whole area; the distribute-list only keeps routes out of one router's routing table.
Labs
Try it live: Multi-area OSPF: summarization, stub areas and filtering
More topics in 3.0 Infrastructure
- 3.1.a Troubleshoot 802.1Q trunks, whether configured statically or negotiated
- 3.1.b Troubleshoot static and dynamic EtherChannels
- 3.1.c Configure and verify RSTP and MST, plus protections such as root guard and BPDU guard
- 3.2.d Describe policy-based routing
- 3.3.a Interpret NTP and PTP configurations
- 3.3.b Configure NAT and PAT
- 3.3.c Configure first-hop redundancy with HSRP and VRRP
- 3.3.d Describe multicast: RPF check, PIM-SM, IGMPv2/v3, SSM, bidir, MSDP