OSPF Commands Flashcards
Initialize the OSPF Process
Router(config)# router ospf process-id
Enable OSPF on interfaces that match a specified network range
Router(config-router)# network ip-address wildcard-mask area area-id
Enable OSPF explicitly on a specific interface
From interface config mode:
Router(config-if)# ip ospf process-id area area-id
Configure a specific interface as passive
Router(config-router)# passive-interface interface-id
Configure all interfaces as passive
Router(config-router)# passive-interface default
Advertise a default route into OSPF (for an ABR)
Router(config-router)# default-information originate [always] [metric metric-value] [metric-type type]
Modify the OSPF reference bandwidth for dynamic interface metric costing
Router(config-router)# auto-cost reference-bandwidth mbps
Statically assign an OSPF cost to an interface
Router(config-if)# ip ospf cost 1-65535
Configure the OSPF priority for a DR/BDR election
Router(config-if)# ip ospf priority 0-255
Modify the default hello timer of an OSPF interface
Router(config-if)# ip ospf hello-interval 1-65535
Modify the default dead interval timer of an OSPF interface
Router(config-if)# ip ospf dead-interval 1-65535
Statically configure an interface as a broadcast OSPF network type
Router(config-if)# ip ospf network broadcast
Statically configure an interface as a point-to-point OSPF network type
Router(config-if)# ip ospf network point-to-point
Restart the OSPF process
Router# clear ip ospf process
Display OSPF interfaces on a router
Router# show ip ospf int [brief | interface-id]