Configuring OSPF
Step 1: Enter Configuration Mode
Router> enable
Router# configure terminal
Router# configure terminal
Step 2: Enable OSPF
Enable OSPF with a process ID. The process ID is locally significant and can be any number.
Router(config)#router ospf <process-Id>
Step 3: Set the OSPF Router ID
Setting a unique OSPF Router ID is optional but recommended for stability and troubleshooting. The Router ID should be a unique IPv4 address within the OSPF domain.
Router(config-router)# router-id <router-id>
Step 4: Define Networks to Include in OSPF
Specify which networks will participate in OSPF and their corresponding areas. Ensure the areas match across all routers in the OSPF domain.
Router(config-router)# network <network-address> <wildcard-mask> area <area-id>
Step 5: Save the configuration
Router(config-router)#exit
Router(config)#do write / do wr
Verification Commands
View OSPF Neighbors
show ospf neighbor
View the OSPF Routing Table
show ip route ospf
View OSPF Process Information
exit show ip ospf
View OSPF Database
exit show ip ospf database
Comments
Post a Comment