Introduction To Section Ospf Review Ospf Neighbor and Adjacencies On Lans Virtual Links
Introduction To Section Ospf Review Ospf Neighbor and Adjacencies On Lans Virtual Links
Introduction To Section Ospf Review Ospf Neighbor and Adjacencies On Lans Virtual Links
• OSPF Review
• OSPF Neighbor and Adjacencies on LANs
• Virtual Links
Reviewing the Basics of OSPF
Term Definition
LSDB The data structure held by an OSPF router for the purpose of storing topology
data
SPF The name of the algorithm OSPF uses to analyze the LSDB
LSU The name of the OSPF packet that holds the detailed topology information.
LSA The name of class of OSPF data structures that hold topology information.
Area Contiguous grouping of routers and router interfaces.
ABR A router that has interfaces connected to at least two different OSPF areas.
Backbone Router Any router that has a t least one interface connected to the backbone area.
Internal Router A router that has interfaces connected to only one area, making the router
completely internal to that one area.
DR On a multi-access data links like LANs an OSPF router elected by the routers
on that data link to perform special functions.
BDR A router on a multi-access data link that monitors the DR and becomes
prepared to take over for the DR, if it fails.
Configuring OSPF
• Single Area
• Router ospf 1
• Network 10.1.1.4 0.0.0.3 area 0
• Multiple Area
• Router ospf 2
• Network 10.1.1.8 0.0.0.3 area 1
• Network 10.1.1.12 0.0.0.3 area 2
• Loopback interface
• Int lo1
• Ip address 1.1.1.1 255.255.255.255 (included in the network statement)
Verifying OSPF
Command Definition
Sh ip ospf Lists the interfaces on which OSPF is enabled,
int brief omitting passive interfaces
Sh ip List the contents of the network configuration
protocols commands for each routing process and a list
enabled but passive interfaces
Sh ip ospf List of known neighbors, including neighbor state.
neighbor
Sh ip ospf List all LSAs for all connected area
database
Sh ip route List the contents of the IP routing table.
OSPF Neighbors and Adjacencies on LANs
Requirements to create Neighbors
Requirement Yes/
No
Interfaces primary IP addresses must be in same subnet Yes
Must not be passive on the connected interface Yes
Must be in same area Yes
Hello and Dead timers must be the same Yes
Router ID must be unique Yes
Must pass neighbor authentication (Optional) Yes
K-values must match N/A
Virtual Links
Why we use Virtual Links
• Allows two ABRs that connect to same no backbone area to form
a neighbor relationship.
• Virtual link acts like a virtual point to point connection between
two routers
• The routers forma a neighbor relationship, inside area 0 and flood
LSAs over that link
Summary of Section
Topics covered in the section
• OSPF Review
• Terminology
• Configuration
• Virtual Links
Multiple areas
Advanced OSPF Topics
Topics Covered In This Section
• Route Filtering
• Route Summarization
• Route Summarization
• Default Routes and Stub Areas
• OSPFv3
Filtering in OSPF
• Where do we filter
• ASBR
• ABR
• How do we filter
• Create a filter
• In OSPF use the Area command
OSPF Filter Lab Time
• Configure it
• Ip prefix-list no-loopback seq 10 deny 2.2.2.2/32
• Ip prefix-list no-loopback seq 20 deny 3.3.3.3/32
• Ip prefix-list no-loopback seq 30 permit 0.0.0.0/0 le 32
• Router ospf 1
• Area 0 filter-list prefix no-loopback in
Rules of OSPF Summarization
• To direct remote site routers at the edge of the enterprises network to send
all packets to the core of the enterprise.
• To direct traffic on all enterprise routers toward an Intenet facing router so
that all traffic destined for the internet, eventually arrives at the internet
connected routers.
Configurations
• ASBR(config)#router ospf 1
• ASBR(Config-Router)#Default-information originate
• Do not forget to Redistribute the routing protocols
Stubby Areas
• ABRs create a default route, using type 3 LSA, listing subnet 0.0.0.0 and mask 0.0.0.0 and flood that
into stub area
• ABRs do not flood Type 5 LSAs into the Stub Area
• ABRs might not flood other type 3 LSAs into the area.
• The default route has a metric of 1 unless otherwise configured using the router command area 100
default cost 100
• Routers inside stub areas cannot redistribute external routes into stubby area.
• All routers in the area must be configured to be stubby; if not, neighbor relationships cannot form,
between potential neighbors.
Configurations
• ROUTER OSPF 1
• AREA 34 STUB
• AUTO-COST REFENCE-BANDWIDTH 1000
• MAKE SURE THE COST BANDWIDTH IS SAME ACROSS ALL ROUTERS.
OSPFv3 Typical Configuration
• RX#ipv6 unicast-routing
• RX#ipv6 CEF
• RX#conf t
• RX(config)#ipv6 router ospf 1
• RX(config-router)#router-id 1.1.1.1
• RX(config-router)#int g0/1
• RX(config-if)#ipv6 ospf 1 area 0
Verification of OSPFv3 on interfaces