OSPF Command List
OSPF is fairly simple, with only a few variations from the RIP and IGRP configuration steps you have previously use. Configuration is as simple as defining the OSPF process using the router ospf command, and then identifying the networks that will participate in OSPF routing. The following table lists the commands and details for configuring OSPF.
Command | Purpose |
Router(config)#router ospf process-id | Use to enter configuration mode for OSPF. |
Router(config-router)#network a.b.c.d w.w.w.w area number | Identifies networks that participate in OSPF routing. |
Router(config-router)#router-id a.b.c.d | Configures the router ID for the OSPF process. |
Router(config)#interface ethernet0/1 | Sets the OSPF priority number for an interface. |
Router(config)#interface loopback0 | Sets an IP address for a loopback interface. |
Example
The following graphic shows a sample network with two OSPF areas.
Use the following commands to configure OSPF on each router:
Router | Configuration |
SFO | router ospf 1 |
LAX | router ospf 2 |
PHX | router ospf 1 |
Notice the following in the configuration:
- The process ID on each router does not have to match. OSPF uses areas to identify sharing of routes, not the process ID.
- You can use the subnet address with the appropriate wildcard mask (as in 10.1.16.0 0.0.15.255), or you can use the IP address of the router interface with a mask of 0.0.0.0.
- The network command identifies the subnet, wildcard mask, and the OSPF area of the subnet. A subnet can only be in one area.
Tidak ada komentar:
Posting Komentar