Once this configuration is implemented, the routes identified by the
ip prefix-list
command and matched in the route map will have their
OSPF administrative distance to 200. This is displayed in the output from the
show ip route
command, as shown in the following.
device# show ip route
Total number of IP routes: 4
Type Codes - B:BGP D:Connected O:OSPF R:RIP S:Static; Cost - Dist/Metric
BGP Codes - i:iBGP e:eBGP
OSPF Codes - i:Inter Area 1:External Type 1 2:External Type 2
Destination Gateway Port Cost Type Uptime
1 10.0.0.2/32 10.1.1.2 ve 100 200/501 O 1h3m
2 10.102.1.0/24 10.1.1.2 ve 100 200/2 O 1h3m
3 10.102.6.0/24 10.1.1.2 ve 100 110/2 O 1h3m
4 10.102.8.0/30 DIRECT ve 100 0/0 D 1h4m
Routes 1 and 2 demonstrate the actions of the example configuration as both display an OSPF administrative distance value of 200.
Note that the value is applied to both OSPF learned routes that match the route-map instance containing the set distance clause. The
other OSPF route (route 3), which does not match the relevant instance, continues to have the default OSPF administrative distance of
110.
The following is an example of the
distribute-list
command applied with route-map “setdistance” set as the input.
device(config-ospf-router)# distribute-list route-map setdistance in
Syntax:
[no] distribute-list
route-map
routemap-name
in
The
routemap-name
variable specifies the name of the route map being used to define the OSPF distribute list.
The
distribute-list
command is applied to all OSPF LSAs on the router where it is executed.
NOTE
A route map used with the
distribute-list
command can use either the
ip prefix-list
command (as shown in the example) or an
ACL to define the routes.
The
set distance
command is used in association with a route map configuration.
Modify SPF timers
The device uses the following timers when calculating the shortest path for OSPF routes:
•
SPF delay
- When the device receives a topology change, the software waits before it starts a Shortest Path First (SPF)
calculation. By default, the software waits 0 (zero) seconds. You can configure the SPF delay to a value from 0 - 65535
seconds. If you set the SPF delay to 0 seconds, the software immediately begins the SPF calculation after receiving a topology
change.
•
SPF hold time - The device waits for a specific amount of time between consecutive SPF calculations. By default, the device
waits zero seconds. You can configure the SPF hold time to a value from 0 - 65535 seconds. If you set the SPF hold time to 0
seconds, the software does not wait between consecutive SPF calculations.
You can set the delay and hold time to lower values to cause the device to change to alternate paths more quickly in the event of a route
failure. Note that lower values require more CPU processing time.
You can change one or both of the timers.
To change the SPF delay and hold time, enter commands such as the following.
device(config-ospf-router)# timers spf 10 20
The command in this example changes the SPF delay to 10 seconds and changes the SPF hold time to 20 seconds.
OSPF distribute list
FastIron Ethernet Switch Layer 3 Routing
262
53-1003627-04
Summary of Contents for FastIron SX 1600
Page 2: ...FastIron Ethernet Switch Layer 3 Routing 2 53 1003627 04 ...
Page 16: ...FastIron Ethernet Switch Layer 3 Routing 16 53 1003627 04 ...
Page 20: ...FastIron Ethernet Switch Layer 3 Routing 20 53 1003627 04 ...
Page 142: ...FastIron Ethernet Switch Layer 3 Routing 142 53 1003627 04 ...
Page 150: ...FastIron Ethernet Switch Layer 3 Routing 150 53 1003627 04 ...
Page 200: ...FastIron Ethernet Switch Layer 3 Routing 200 53 1003627 04 ...
Page 214: ...FastIron Ethernet Switch Layer 3 Routing 214 53 1003627 04 ...
Page 350: ...FastIron Ethernet Switch Layer 3 Routing 350 53 1003627 04 ...
Page 476: ...FastIron Ethernet Switch Layer 3 Routing 476 53 1003627 04 ...
Page 588: ...FastIron Ethernet Switch Layer 3 Routing 588 53 1003627 04 ...