You can only change the distance on external route's in OSPF if I remember correctly.
On Jun 20, 2010, at 3:04 PM, Mustafa Yadav wrote:
> Hi,
> 
> As you see below I have changed ospf distance to 115 and then some routes
> have been deleted and then added again.But finally in the routing table the
> AD for ospf routes are the same as ospf usual AD 110.Did I do something
> wrong?
> 
> 
> 
> r3#
> r3#conf t
> Enter configuration commands, one per line.  End with CNTL/Z.
> r3(config)#router ospf 1
> r3(config-router)#distance 115 10.1.34.3 0.0.0.0 11
> r3(config-router)#end
> r3#
> *Mar  1 02:41:33.255: RT: delete route to 10.1.46.0/24
> *Mar  1 02:41:33.255: RT: NET-RED 10.1.46.0/24
> *Mar  1 02:41:33.255: RT: delete route to 10.1.56.0/24
> *Mar  1 02:41:33.255: RT: NET-RED 10.1.56.0/24
> *Mar  1 02:41:33.283: RT: add 10.1.56.0/24 via 10.1.34.4, ospf metric
> [110/30]
> *Mar  1 02:41:33.283: RT: NET-RED 10.1.56.0/24
> *Mar  1 02:41:33.283: RT: add 10.1.46.0/24 via 10.1.34.4, ospf metric
> [110/20]
> *Mar  1 02:41:33.287: RT: NET-RED 10.1.46.0/24
> *Mar  1 02:41:34.351: %SYS-5-CONFIG_I: Configured from console by console
> r3#
> r3#
> r3#
> r3#sh ip ro
> r3#sh ip route
> Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
>       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
>       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
>       E1 - OSPF external type 1, E2 - OSPF external type 2
>       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
>       ia - IS-IS inter area, * - candidate default, U - per-user static
> route
>       o - ODR, P - periodic downloaded static route
> 
> Gateway of last resort is not set
> 
>     2.0.0.0/24 is subnetted, 1 subnets
> R       2.2.2.0 [120/1] via 10.1.35.5, 00:00:20, Serial0/0
>     33.0.0.0/24 is subnetted, 1 subnets
> C       33.33.33.0 is directly connected, Loopback1
>     3.0.0.0/24 is subnetted, 1 subnets
> C       3.3.3.0 is directly connected, Loopback0
>     5.0.0.0/24 is subnetted, 1 subnets
> R       5.5.5.0 [120/1] via 10.1.35.5, 00:00:20, Serial0/0
>     22.0.0.0/24 is subnetted, 1 subnets
> R       22.22.22.0 [120/1] via 10.1.35.5, 00:00:20, Serial0/0
>     10.0.0.0/24 is subnetted, 6 subnets
> R       10.1.12.0 [120/1] via 10.1.35.5, 00:00:20, Serial0/0
> C       10.1.23.0 is directly connected, FastEthernet0/1
> O       10.1.46.0 [110/20] via 10.1.34.4, 00:00:18, FastEthernet0/0
> C       10.1.35.0 is directly connected, Serial0/0
> C       10.1.34.0 is directly connected, FastEthernet0/0
> O       10.1.56.0 [110/30] via 10.1.34.4, 00:00:19
> 
> 
> Blogs and organic groups at http://www.ccie.net
> 
> _______________________________________________________________________
> Subscription information may be found at: 
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Sun Jun 20 2010 - 15:19:33 ART
This archive was generated by hypermail 2.2.0 : Sun Aug 01 2010 - 09:11:37 ART