Basic OSPF configuration
In this section, you configure OSPF on the routers that are labeled R1, R2, and R3 in the OSPF configuration diagram. The routers advertise their routes on the 10.0.40/24 and 10.0.50.0/24 networks.
For this example, it is assumed that you have already configured the router interfaces, including the loopback interfaces (lo); only the steps that are required to implement OSPF are shown.
To create a basic OSPF configuration, perform the following steps in configuration mode.
Router | Step | Command |
---|---|---|
R1 | Set the identifier of the OSPF router to that of the loopback address. |
|
R1 | Run OSPF on the 10.0.40.0/24 network. |
|
R1 | Redistribute the networks connected to OSPF. |
|
R1 | Commit the configuration. |
|
R1 | Display the configuration. |
|
R2 | Set the identifier of the OSPF router to that of the loopback address. |
|
R2 | Run OSPF on the 10.0.40.0/24 network. |
|
R2 | Run OSPF on the 10.0.0.2/32 network. |
|
R2 | Redistribute the networks connected to OSPF. |
|
R2 | Redistribute connected routes from OSPF process 5 to OSPF process 4. |
|
R2 | Run OSPF on the 10.0.50.0/24 network. |
|
R2 | Redistribute the networks connected to OSPF. |
|
R2 | Redistribute connected routes from OSPF process 4 to OSPF process 5. |
|
R2 | Commit the configuration. |
|
R2 | Display the configuration. |
|
R3 | Set the identifier of the OSPF router to that of the loopback address. |
|
R3 | Run OSPF on the 10.0.50.0/24 network. |
|
R3 | Redistribute the networks connected to OSPF. |
|
R3 | Commit the configuration. |
|
R3 | Display the configuration. |
|