38-8
4)Configure the priority of the interface when electing designated layer3 switch (DR).
Interface Configuration Mode
ip ospf priority <priority>
no ip ospf priority
Sets the priority of the interface in “designated
layer3 switch” election; the no ip ospf priority
command restores the default setting.
5)Configure to keep a log for OSPF adjacency changes or not
OSPF Protocol Configuration Mode
log-adjacency-changes detail
no log-adjacency-changes detail
Configure to keep a log for OSPF adjacency
5)Filter the route obtained by OSPF
OSPF Protocol Configuration Mode
filter-policy <access-list-name>
no filter-policy
Use access list to filter the route obtained by
OSPF, the
no command cancels the route
filtering.
3. Disable OSPF protocol
no router ospf [process <id>]
Disables OSPF routing protocol.
38.3 OSPF Examples
38.3.1 Configuration Example of OSPF
Scenario 1: OSPF autonomous system.
This scenario takes an OSPF autonomous system consists of five switch for example.