ospf distance

From: Imran Ali <immrccie_at_gmail.com>
Date: Mon, 15 Apr 2013 10:55:31 +0300

i am trying to use ospf distance command to selectivly increase the
distance of ospf route.

i am not sure why it is not working ,. 192.10.1.0 needs to get ad of 200

SW1#show ip route
     155.1.0.0/24 is subnetted, 9 subnets
O IA 155.1.23.0 [110/65] via 155.1.37.3, 00:00:03, FastEthernet1/3
O IA 155.1.13.0 [110/65] via 155.1.37.3, 00:00:03, FastEthernet1/3
O IA 155.1.0.0 [110/65] via 155.1.37.3, 00:00:03, FastEthernet1/3
O IA 155.1.58.0 [110/22] via 155.1.67.6, 00:00:03, FastEthernet1/6
O IA 155.1.45.0 [110/12] via 155.1.67.6, 00:00:03, FastEthernet1/6
C 155.1.37.0 is directly connected, FastEthernet1/3
C 155.1.79.0 is directly connected, FastEthernet0/0
C 155.1.67.0 is directly connected, FastEthernet1/6
O IA 155.1.108.0 [110/32] via 155.1.67.6, 00:00:03, FastEthernet1/6
O* IA 192.10.1.0/24 *[110/75] via 155.1.37.3, 00:00:03, FastEthernet1/3
     150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 150.1.7.0/24 is directly connected, Loopback0
O IA 150.1.8.8/32
O IA 150.1.6.6/32 [110/2] via 155.1.67.6, 00:11:27, FastEthernet1/6
O IA 150.1.3.3/32 [110/2] via 155.1.37.3, 00:11:27, FastEthernet1/3
O IA 150.1.2.2/32 [110/66] via 155.1.37.3, 00:11:27, FastEthernet1/3

SW1(config)#access-list 19 permit 192.10.1.0
SW1(config)#router os 1

SW1(config-router)#distance 200 155.1.37.3 0.0.0.0 19
SW1(config-router)#exit
SW1(config)#exit

SW1#clear ip route *

SW1#show ip route

Gateway of last resort is not set
     155.1.0.0/24 is subnetted, 9 subnets
O IA 155.1.23.0 [110/65] via 155.1.37.3, 00:00:07, FastEthernet1/3
O IA 155.1.13.0 [110/65] via 155.1.37.3, 00:00:07, FastEthernet1/3
O IA 155.1.0.0 [110/65] via 155.1.37.3, 00:00:07, FastEthernet1/3
O IA 155.1.58.0 [110/22] via 155.1.67.6, 00:00:07, FastEthernet1/6
O IA 155.1.45.0 [110/12] via 155.1.67.6, 00:00:07, FastEthernet1/6
C 155.1.37.0 is directly connected, FastEthernet1/3
C 155.1.79.0 is directly connected, FastEthernet0/0
C 155.1.67.0 is directly connected, FastEthernet1/6
O IA 155.1.108.0 [110/32] via 155.1.67.6, 00:00:07, FastEthernet1/6
O* IA 192.10.1.0/24 [110/75]* via 155.1.37.3, 00:00:07, FastEthernet1/3
     150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 150.1.7.0/24 is directly connected, Loopback0
O IA 150.1.8.8/32 [110/23] via 155.1.67.6, 00:00:15, FastEthernet1/6
O IA 150.1.6.6/32 [110/2] via 155.1.67.6, 00:00:15, FastEthernet1/6
O IA 150.1.3.3/32 [110/2] via 155.1.37.3, 00:00:15, FastEthernet1/3
O IA 150.1.2.2/32 [110/66] via 155.1.37.3, 00:00:15, FastEthernet1/3

Reset ALL OSPF processes? [no]: yes
SW1#
*Mar 2 02:45:57.029: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.3.3 on
FastEthernet1/3 from FULL to DOWN, Neighbor Down: Interface down or detached
*Mar 2 02:45:57.033: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.6.6 on
FastEthernet1/6 from FULL to DOWN, Neighbor Down: Interface down or detached
*Mar 2 02:45:57.037: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.9.9 on
FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Mar 2 02:45:57.485: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.3.3 on
FastEthernet1/3 from LOADING to FULL, Loading Done
*Mar 2 02:45:57.485: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.6.6 on
FastEthernet1/6 from LOADING to FULL, Loading Done
*Mar 2 02:45:57.509: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.9.9 on
FastEthernet0/0 from LOADING to FULL, Loading Done

SW1#show ip route

Gateway of last resort is not set
     155.1.0.0/24 is subnetted, 9 subnets
O IA 155.1.23.0 [110/65] via 155.1.37.3, 00:00:03, FastEthernet1/3
O IA 155.1.13.0 [110/65] via 155.1.37.3, 00:00:03, FastEthernet1/3
O IA 155.1.0.0 [110/65] via 155.1.37.3, 00:00:03, FastEthernet1/3
O IA 155.1.58.0 [110/22] via 155.1.67.6, 00:00:03, FastEthernet1/6
O IA 155.1.45.0 [110/12] via 155.1.67.6, 00:00:03, FastEthernet1/6
C 155.1.37.0 is directly connected, FastEthernet1/3
C 155.1.79.0 is directly connected, FastEthernet0/0
C 155.1.67.0 is directly connected, FastEthernet1/6
O IA 155.1.108.0 [110/32] via 155.1.67.6, 00:00:03, FastEthernet1/6
O* IA 192.10.1.0/24 [110/*75] via 155.1.37.3, 00:00:03, FastEthernet1/3
     150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 150.1.7.0/24 is directly connected, Loopback0
O IA 150.1.8.8/32 [110/23] via 155.1.67.6, 00:00:04, FastEthernet1/6
O IA 150.1.6.6/32 [110/2] via 155.1.67.6, 00:00:04, FastEthernet1/6
O IA 150.1.3.3/32 [110/2] via 155.1.37.3, 00:00:04, FastEthernet1/3
O IA 150.1.2.2/32 [110/66] via 155.1.37.3, 00:00:04, FastEthernet1/3
still 110 :(

Blogs and organic groups at http://www.ccie.net
Received on Mon Apr 15 2013 - 10:55:31 ART

This archive was generated by hypermail 2.2.0 : Wed May 01 2013 - 06:47:40 ART