25
Configuring OSPF
For example, to enable redistribution of RIP and static IP routes into OSPF, enter the following
commands.
BigIron RX(config)# router ospf
BigIron RX(config-ospf-router)# redistribution rip
BigIron RX(config-ospf-router)# redistribution static
BigIron RX(config-ospf-router)# write memory
Modify default metric for redistribution
The default metric is a global parameter that specifies the cost applied to all OSPF routes by
default. The default value is 10. You can assign a cost from 1 – 65535.
NOTE
You also can define the cost on individual interfaces. The interface cost overrides the default cost.
To assign a default metric of 4 to all routes imported into OSPF, enter the following commands.
BigIron RX(config)# router ospf
BigIron RX(config-ospf-router)# default-metric 4
Syntax: default-metric <value>
The <value> can be from 1 – 65535. The default is 10.
Enable route redistribution
NOTE
Do not enable redistribution until you have configured the redistribution route map. Otherwise, you
might accidentally overload the network with routes you did not intend to redistribute.
To enable redistribution of RIP and static IP routes into OSPF, enter the following commands.
BigIron RX(config)# router ospf
BigIron RX(config-ospf-router)# redistribution rip
BigIron RX(config-ospf-router)# redistribution static
BigIron RX(config-ospf-router)# write memory
Example using a route map
To configure a route map and use it for redistribution of routes into OSPF, enter commands such as
the following.
BigIron RX(config)# ip route 1.1.0.0 255.255.0.0 207.95.7.30
BigIron RX(config)# ip route 1.2.0.0 255.255.0.0 207.95.7.30
BigIron RX(config)# ip route 1.3.0.0 255.255.0.0 207.95.7.30
BigIron RX(config)# ip route 4.1.0.0 255.255.0.0 207.95.6.30
BigIron RX(config)# ip route 4.2.0.0 255.255.0.0 207.95.6.30
BigIron RX(config)# ip route 4.3.0.0 255.255.0.0 207.95.6.30
BigIron RX(config)# ip route 4.4.0.0 255.255.0.0 207.95.6.30 5
BigIron RX(config)# route-map abc permit 1
BigIron RX(config-routemap abc)# match metric 5
BigIron RX(config-routemap abc)# set metric 8
BigIron RX(config-routemap abc)# router ospf
BigIron RX(config-ospf-router)# redistribute static route-map abc
702
BigIron RX Series Configuration Guide
53-1001810-01