Professional Documents
Culture Documents
OSPF
OSPF
OSPF
2
Autonomous System Boundary Router Execute the SPF algorithm: Routers then
(ASBR): execute the SPF algorithm. The SPF algorithm
An ASBR is a router that has interfaces connected creates the SPF tree.
to one or more OSPF areas, similarly as the ABR,
however the difference with an ASBR is that it also Build the routing table: From the SPF tree, the
connects to other routing systems such best paths are inserted into the routing table
as BGP, EIGRP, Internet and others.
An ASBR router normally advertises routes from Cisco OSPF basic Commands :
other routing systems into the OSPF area to which 1) Enable OSPF process and name it 1
it belongs. Adding the network 192.168.12.0
with its wildcard mask 0.0.0.255
Designated Router (DR & BDR): area 0
A Designated Router is elected by the routers on (Config) #router ospf 1
multi-access segments based on its priority (Config) #network 192.168.12.0 0.0.0.255 area 0
(Router ID, priority). The DR router performs
special functions such as generating Link State 2) Giving a priority manually to a router
Advertisements (LSAs) and exchanging
information with all other routers in the R(config-if)# ip ospf priority <0-255>
same Area. Every router in the same Area will
create an adjacency with the DR and BDR. the BDR 3) Enable OSPF Authentification :
interface Serial0
will be active if DR fails.
ip address 192.16.64.2 255.255.255.0
ip ospf authentication-key c1$c0
OSPF Operations:
4) Display the OSPF database :
Router# show ip ospf database
Establish neighbor adjacencies: OSPF-enabled
5) Display the OSPF neighbors
routers must form adjacencies with their Router# show ip ospf neighbor
neighbor before they can share information 6) Display OSPF interface description
with that neighbor. An OSPF-enabled router show ip ospf interface ethernet 0
sends Hello packets out all OSPF-enabled 7) Display OSPF routes
interfaces to determine whether neighbors are Show ip route ospf
present on those links. If a neighbor is present,
the OSPF-enabled router attempts to establish
a neighbor adjacency with that neighbor.