From: Engelhard M. Labiro (engelhard@xxxxxxxxxxxxxx)
Date: Mon Mar 25 2002 - 09:49:17 GMT-3
Hi Atul,
What kind of command do you refer to policy routing ?
Is it "ip policy route-map" command under interface configuration
mode, referring to a route-map ?
Or is it "redistribute blah route-map" command ? Or some other
command ?
In case of the first, I don`t think you can use "ip policy route-map"
to grab a network advertised by the OSPF peer, and change its
cost using "route-map" command, since the packets exchange
between those peers are using protocol 89, the network database
is inside the encapsulated protocol 89, and you can not match it with
an access-list or any other matching command, CMIIW.
I can only think the other way to change a route`s cost, is by
tagging a route when you redistribute it, and match the tag
and set its cost by using a route-map.
Any other suggestion ?
> Hi
> That solved my problem many thanks for that. But I am trying to do
> it by nother method. I tried to use policy routing but no luck. How
> can achieve the same result using a differnet method?
> Cheers
> Atul
>
>
> >From: "Engelhard M. Labiro" <engelhard@netmarks.co.jp>
> >Reply-To: "Engelhard M. Labiro" <engelhard@netmarks.co.jp>
> >To: <ccielab@groupstudy.com>
> >Subject: Re: ospf problem
> >Date: Sun, 24 Mar 2002 20:32:13 +0900
> >
> >Hi Atul,
> >You should assign the cost on an interface where it
> >first receives a route to the network that you want to influence
> >its path cost.
> >As in your scenario, r1`s path to 153.1.43.0/25 is through interface
> >Ethernet 0 , so to change the cost learned by r3, assign it on
> >r1`s Ethernet 0 interface, not on r1`s Serial 0.
> >
> >
> >----- Original Message -----
> >From: "atul pawar" <atulpawar@hotmail.com>
> >To: <ccielab@groupstudy.com>
> >Sent: Sunday, March 24, 2002 8:03 AM
> >Subject: ospf problem
> >
> >
> > > Hi Guyes
> > > I my scenario I have two equal cost OSPF paths to the network
> >153.1.43.0/25
> > > on r3 via r1 and r2 . I am trying to force OSPF to choose one of them
as
> > > preferred route. To influence the path selection I am using "ip ospf
> >cost
> > > 71" on one router i.e r1 . As per my understanding this should make
this
> > > router less preferable but somehow this is not working and on the
> >router
> >r3
> > > I can still see two routes i.e form r1 and r2 . I am posting the
config
> >and
> > > routing table. Please le me know if I am missing something simple. Any
> >help
> > > would be appreciated.
> > > Cheers
> > > Atul
> > >
> > > r1#sh run
> > > Building configuration...
> > >
> > > Current configuration:
> > > !
> > > version 11.2
> > > no service password-encryption
> > > no service udp-small-servers
> > > no service tcp-small-servers
> > > !
> > > hostname r1
> > > !
> > > !
> > > no ip domain-lookup
> > > !
> > > interface Loopback1
> > > ip address 153.1.101.1 255.255.255.0
> > > !
> > > interface Loopback10
> > > ip address 12.2.3.2 255.255.0.0
> > > !
> > > interface Ethernet0
> > > ip address 153.1.43.33 255.255.255.128
> > > bridge-group 1
> > > !
> > > interface Serial0
> > > ip address 153.1.200.3 255.255.255.0
> > > encapsulation frame-relay
> > > ip ospf cost 71
> > > ip ospf priority 0
> > > bandwidth 64000
> > > frame-relay map bridge 103 broadcast
> > > frame-relay map ip 153.1.200.1 103 broadcast
> > > frame-relay map ip 153.1.200.2 103 broadcast
> > > frame-relay map ip 153.1.200.4 103 broadcast
> > > bridge-group 1
> > > !
> > > interface Serial1
> > > ip address 153.1.53.67 255.255.255.224
> > > clockrate 64000
> > > !
> > > router ospf 100
> > > network 153.1.200.3 0.0.0.0 area 0
> > > network 153.1.101.1 0.0.0.0 area 0
> > > network 153.1.43.33 0.0.0.0 area 1
> > > network 153.1.53.67 0.0.0.0 area 51
> > > !
> > > no ip classless
> > > !
> > > bridge 1 protocol ieee
> > > !
> > > line con 0
> > > exec-timeout 0 0
> > > logging synchronous
> > > line aux 0
> > > line vty 0 4
> > > login
> > > !
> > > end
> > >
> > > r3#sh ip rou
> > > Codes: C - connected, S - static, I - IGRP, 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, E - EGP
> > > i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
candidate
> > > default
> > > U - per-user static route, o - ODR
> > >
> > > Gateway of last resort is not set
> > >
> > > 153.1.0.0/16 is variably subnetted, 7 subnets, 4 masks
> > > C 153.1.200.0/24 is directly connected, Serial0
> > > O IA 153.1.43.0/25 [110/74] via 153.1.200.3, 00:18:42, Serial0
> > > [110/74] via 153.1.200.4, 00:18:42, Serial0
> > > O IA 153.1.53.64/27 [110/128] via 153.1.200.3, 00:18:42, Serial0
> > > O 153.1.105.5/32 [110/65] via 153.1.200.1, 00:18:42, Serial0
> > > O 153.1.102.2/32 [110/65] via 153.1.200.4, 00:18:42, Serial0
> > > O 153.1.101.1/32 [110/65] via 153.1.200.3, 00:18:42, Serial0
> > > C 153.1.103.0/24 is directly connected, Loopback1
> > > 186.1.0.0/24 is subnetted, 1 subnets
> > > O IA 186.1.1.0 [110/74] via 153.1.200.1, 00:18:42, Serial0
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:21 GMT-3