Basic OSPF Configuration
Lab Objectives
In this lab you can download the configurations containing the IP addresses for each router here, or you can address the network according to the needs of the diagram above.
- Set a router-id on each router. For example, router 1 would be 1.1.1.1 .
- Configure OSPF on each router.
- Configure OSPF authentication on all routers in the network.
- Disable OSPF updates from being sent on all loopback interfaces.
Completed Router Configurations
The following are the finished configuration files for all the routers in this lab.
Router 1 Config
Router 2 Config
Router 3 Config
Router 4 Config
Router 5 Config
Changes Made
- Each router had their router-id set with the 'router-id x.x.x.x' command in OSPF configuration.
- Each router was configured with the 'network 172.16.0.0 0.0.255.255 area 0' command in OSPF configuration.
- Authentication was enabled with the 'area 0 authentication message-digest' command in each routers OSPF configuration.
- Each router with a loopback interface had the command 'passive-interface loopbackInterface' entered in OSPF configuration.
Testing and Verification
- The router-id of each router can be found with a few different commands. 'show ip protocols' 'show ip ospf' , and 'show ip ospf database' will all show the router-id.
2. Test OSPF configuration by issuing the 'show ip protocols' and ensuring that OSPF is routing for the correct network. You should also
check the routing table to ensure the proper OSPF routes have been added. Also ping each loopback interface from each router to
ensure full connectivity.
check the routing table to ensure the proper OSPF routes have been added. Also ping each loopback interface from each router to
ensure full connectivity.
3. Verify authentication is enabled with the 'show ip ospf' command.
4. Passive interfaces can be confirmed with the 'show ip protocols' command.