Cisco Cisco IOS Software Release 12.4(15)T

Página de 18
 
OSPFv2 Local RIB
  Additional References
6
Cisco IOS Release 12.4(15)T
Changing the Administrative Distance for Discard Routes: Example
In the following example, the administrative distance for external and internal discard routes is set to 
25 and 30, respectively.
router ospf 1
router-id 10.0.0.6
log-adjacency-changes
discard-route external 25 internal 30
area 4 range 10.2.0.0 255.255.0.0
summary-address 192.168.130.2 255.255.255.0
redistribute static subnets
network 192.168.129.2 0.255.255.255 area 0
network 192.168.130.12 0.255.255.255 area 0
The output from the show ip route command verifies that the administrative distance for the internal 
route 10.2.0.0/16 is set to 30.
Router# show ip route 10.2.0.0 255.255.0.0
Routing entry for 10.2.0.0/16
Known via "ospf 1", distance 30, metric 1, type intra area
Routing Descriptor Blocks:
* directly connected, via Null0
Route metric is 1, traffic share count is 1
The output from the show ip route command verifies that the administrative distance for the external 
route 192.168.130.2/24 is set to 25.
Router# show ip route 192.168.130.2 255.255.255.0
Routing entry for 192.168.130.2/24
Known via "ospf 1", distance 25, metric 20, type intra area
Routing Descriptor Blocks:
* directly connected, via Null0
Route metric is 20, traffic share count is 1
Additional References
The following sections provide references related to the OSPFv2 Local RIB feature.
Related Documents
Related Topic
Document Title
OSPF commands
“OSPF Commands” chapter of the Cisco IOS IP Routing Protocols 
Command Reference
, Release 12.4T.
OSPF configuration tasks
“Configuring OSPF” chapter in the Cisco IOS IP Routing Protocols 
Configuration Guide
, Release 12.4T.