1. Start the OSPF Process
R(config)# router ospf {Process ID}
2. Set the router Id
R(config-router)# router-id {router id}
3. Set the networks ospf should keep track of
R(config-router)# network {Network} {Mask} area {area number}
4. [OPTIONALLY] Turn off sending OSPF sharing for one or more interfaces.
R(config-router)# passive-interface {Interface}
5. [OPTIONALLY] Turn on default route sharing
R(config-router)# default-information originate
Why?
When OSPF has two routes going to the the same location a cost metric
is used to determine which is best. By defualt a 100Mb/s link and a 1000Mb/s
is equal. Which is stupid. This command allows you to fix the issue by setting
the reference higher than the default.
To make 10Gb/s be best use 10000000 as the new reference.
To make 1Gb/s be best use 1000000 as the new reference.
Change the bandwidth reference cost
R(config)# router ospf {Process ID}
R(config-router)# auto-cost reference-bandwidth {b/s}
Why?
This allows the router to send its default route to down stream routers allowing them to have a defualt route automatically set to send towards the router that this command was run on. This is generally run on the edge router.
Turn on defualt route propagation/sharing.
R(config)# router ospf {Process ID}
R(config-router)# default-information originate
Why?
This will change the bandwidth value OSPF uses when calculating the cost metric for an interface. It does not change the actual bandwidth of the interface.
Set the OSPF interface bandwidth value
R(config)# interface {interface}
R(config-if)# bandwidth {Kb/s}
Why?
Manually sets the cost OSPF will use for an interface. Used to force an interface to be more or less desirable when ospf calculates the cost of a route using this interface.
Set the OSPF interface cost value
R(config-if)# ip ospf cost {metric}
1. Start the OSPF Process
R(config)# ipv6 router ospf {Process ID}
2. Set the router Id
R(config-router)# router-id {router id}
3. Add the interfaces that will be part of the OSPF area
R(config-if)# interface {Interface}
R(config-if)# ipv6 ospf {Process ID} area {area number}
4. [OPTIONALLY] Turn off sending OSPF sharing for one or more interfaces.
R(config)# ipv6 router ospf {Process ID}
R(config-rtr)# passive-interface {Interface}
5. [OPTIONALLY] Make all interfaces defualt to passive
R(config)# ipv6 router ospf {Process ID}
R(config-rtr)# passive-interface default