OSPF Routing Basics for Network Setup
OSPF Routing Basics for Network Setup
Address table
Tasks to be completed:
1. Configuration of interfaces on R1, R2, and R3
2. Verification of IP addressing and interfaces (Use the commandshow ip interface brief)
3. Configuration of Ethernet interfaces of PC1, PC2, and PC3.
4. Configuration of the OSPF protocol on routers R1, R2, and R3
• Step 1: using the commandOSPF routerin global configuration mode to enable
the OSPF protocol on a router. Enter 1 as the process ID for the parameter process-ID.
Example:R1(config)#router ospf 1
Important: The OSPF commandnetworkuse a combination of network address and generic mask.
Note that when adding the serial link network between R1 and R2 to the OSPF configuration, the router
send a notification message to the console indicating that there is a neighbor relationship with another
OSPF router has been established.
1
5. Configuration of OSPF router IDs
• Step 1: review of current router IDs in the topology with:
show ip protocols - show ip ospf - show ip ospf interface
• Step 2: using loopback addresses to modify the router IDs in the topology.
For example:
R1(config)#interface loopback 0
R1(config-if)#ip address [Link] [Link]
R2(config)#interface loopback 0
R2(config-if)#ip address [Link] [Link]
• Step 3: using the commandshow ip ospf neighborsto verify the router IDs
have been modified.
• Step 4: using the router-id command to change the router ID on router R1
R1(config)#router ospf 1
R1(config-router)#router-id [Link]
Reload or use the 'clear ip ospf process' command for this to take effect.
• Step 2: configuring a default static route on router R1. Use the address of
loop configured to simulate a connection with an ISP as the output interface.
R1(config)#ip route [Link] [Link] loopback1
• Étape 4 : consultation de la table de routage du routeur R2 pour vérifier que la route statique par
default is redistributed via OSPF.