Configuring OSPF Static Neighbors
Lab Objectives
- Disable OSPF from automatically discovering neighbors on the shared LAN segment.
- Statically set each neighbor in the shared LAN segment.
- Ensure that traffic from router 4 to the loopback interface on router 1 is sent through router 3.
Completed Router Configurations
The following are the completed configuration files for all the routers in this lab.
Router 1 Config
Router 2 Config
Router 3 Config
Router 4 Config
Changes Made
- Each interface connected to the shared LAN segment had the 'ip ospf network non-broadcast' command issued.
- Router 2, 3, and 4 had their neighbors statically set with the 'neighbor x.x.x.x'
- There are several ways to ensure router 4 sends traffic through router 3 to get to router 1. This lab issued the 'ip ospf cost 250' command on the s0/0 interface on router 2.
Testing and Verification
All configurations can be confirmed with the 'show ip ospf interface int' command in this lab.
- Verify that the shared LAN segment is not sending routing updates with the 'show ip ospf interface int' command.
2. Check the shared LAN segment for static neighbors.
3. Verify that router 4 sends traffic through router 3 when pinging router 1's loopback interface by viewing the routing table and issuing a
traceroute to the loopback interface.
traceroute to the loopback interface.