Professional Documents
Culture Documents
– Serial Link
KHAWAR BUTT
CCIE # 12353 [R/S, SECURITY, SP, DC, VOICE, STORAGE & CCDE]
Overview
Overview of Basic OSPF Configuration
Configuring OSPF on a Point – To – Point Serial Link
Lab Configuration c
Lab Diagram
Loopback0
1.0.0.0/8
Loopback0 Loopback0
2.0.0.0/8 3.0.0.0/8
R1
E 0/0
Loopback0
c 6.0.0.0/8
R2 R3
E 0/0 E 0/0
S 1/0 192.168.100.0/24 E 0/1
R6
192.168.101.0/24 192.168.103.0/24 E 0/0
S 1/0
E 0/0
R5
S 1/1 R4
S 1/0
192.168.102.0/24
Loopback0
5.0.0.0/8 Loopback0
4.0.0.0/8
Basic OSPF Configuration
All Routing Protocols are enabled by using the “Router” command.
In order to enable OSPF, you use the “Router OSPF” command followed by a
process ID. c
The Process is locally significant. It does not need to match the neighboring router.
R1(config)#Router ospf 1
R1(config-router)#
Basic OSPF Configuration
OSPF Routers requires a unique identifier. This ID is known as the Router
ID.
It can be set either of the 3 ways and in that order.
1. Manually under the Router ospf processc using the “router-id” command.
2. If the command is missing under the process, OSPF tries to pick the router-id
based on the Highest IP address on a Loopback.
3. If you don't have a loopback interface, it will use the highest IP address on any
Physical Interface.
R1(config)#Router ospf 1
R1(config-router)#router-id 0.0.0.1
Network Command
Just like the other Routing protocols, the “Network” Command is used by the Routing
Protocols on the specified Interface.
By Enabling the routing protocol under the interface, it will take the following 2 actions:
• 1. It will allow the router to send and receive OSPF updates on that interface.
c
• 2. It will send/advertise this interface network on other OSPF enabled interfaces.
In OSPF, the network command allows you the ability to enable OSPF on a Major network or
subnets. The subnets can be specified using a Inverse Mask.
The Area that the interface belongs to is also specified in the Network Command.
You enable OSPF on all the directly connected interfaces.
R1(config)#Router OSPF 1
R1(config-router)#Network 10.1.1.0 0.0.0.255 area 0
R1(config-router)#Network 11.0.0.0 0.255.255.255 area 0
R1(config-router)#Network 192.1.13.0 0.0.0.255 area 0
Configuring OSPF on a Point –
To – Point Serial Interface
OSPF detects a Point-to-Point Interface by looking at the Encapsulation of
the Interface. When it sees either HDLC or PPP as the encapsulation, it
knows it is a Point-to-point segment.
c
A P2P segment will only have 1 neighbor hence does not require a DR or
BDR.
Assign each router a Router ID manually using the 0.0.0.X format, where X
is the router #.
R2(config)#Router OSPF 1
R2(config-router)#router-id 0.0.0.2
R2(config-router)#network 192.168.101.0 0.0.0.255 area 0
R2(config-router)#network 2.0.0.0 0.255.255.255 area 0
c
R4
R4(config)#Router OSPF 1
R4(config-router)#router-id 0.0.0.4
R4(config-router)#network 192.168.102.0 0.0.0.255 area 0
R4(config-router)#network 4.0.0.0 0.255.255.255 area 0
R5
R5(config)#Router OSPF 1
R5(config-router)#router-id 0.0.0.5
R5(config-router)#network 192.168.101.0 0.0.0.255 area 0
R5(config-router)#network 192.168.102.0 0.0.0.255 area 0
R5(config-router)#network 4.0.0.0 0.255.255.255 area 0
Verifications
Type Show IP OSPF Neighbors on R5. You should see 2 Neighbors listed.
Type Show IP route OSPF on R2. You should see the Loopback Interfaces of
R4 & R5. They will be listed as a Hostcrouter “/32”. This is due to the fact that
OSPF treats a Loopback as a Host and advertises it with a /32 mask.
Type Show IP OSPF Interface S 1/0 on R4. The Link will have a Network
Type of Loopback.
Type Show IP OSPF Interface S 1/0 on R2. The Link will have a Network
Type of Point-to-point.
Whiteboard