11.4.4 Configuring Interface Parameter Changes
On interfaces with OSPF enabled, behavior such as hello packet sending conforms to the default values specified in the configuration. You can change how the interface behaves by using the priority parameter and passive-interface command, among others.
- <Structure of this section>
(1) Designated router priority
Networks that contain a large number of routers place a heavy load on the designated router. When a router connects to multiple such networks, we recommend that you set its priority such that it does not become the designated router for more than one network.
- Points to note
-
The greater the value of the priority parameter, the higher the priority of the router.
Command examples
-
(config)# interface vlan 1
(config-if)# ip ospf 1 area 0
(config-if)# ip ospf priority 10
Sets the interface priority to 10.
(2) Passive interface
- Points to note
-
The example below shows how to use the passive-interface command to configure a passive interface. If you specify the ip ospf cost command, the interface assigns the specified cost to the directly connected routes it advertises.
Command examples
-
(config)# interface vlan 2
(config-if)# ip ospf 1 area 0
(config-if)# ip ospf cost 10
(config-if)# exit
Enables OSPF on the interface.
-
(config)# router ospf 1
(config-router)# passive-interface vlan 2
Sets VLAN 2 as a passive interface.