RE: changing ospf AD per route via ACL

From: Niksa Tomulic (ccie@otokrab.net)
Date: Fri Apr 18 2003 - 04:19:53 GMT-3


Distance command in conjunction with ACL is one of the most interesting
ones in the whole IOS
It is not well documented, and it behaves different for every routing
protocol. Since I haven't found anything properly documented, this is my
experience from lab-tests. They might be related to the IOS I am using,
since it's from 11.3 - 12.2 in my lab, depends how much luck with
hardware I had :(

EIGRP
You CAN'T change distance for specific routes with ACL which are
external in EIGRP
You can change general distance for ALL EIGRP external routes

OSPF
It works both for external and internal, no problems. But, what is
"150.100.2.2 0.0.0.0" in OSPF?
Router ID. That means you need to match exactly router who originated
the route you want to change distance. Be careful if you use your own
router Ids. Or mark all OSPF routers with 0.0.0.0 255.255.255.255

I let you play with all other protocols, you'll be surprised how much
fun is it. But it's the best way to learn and remember.

And - even though ? Help system says it's subnet mask after IP address,
it is wildcard.

Enjoy
niksa

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
tan
Sent: Friday, April 18, 2003 3:27 AM
To: Ccielab (E-mail)
Subject: changing ospf AD per route via ACL

I have been using this command with varying degrees of success to have
external eigrp route preferred. RTA has eigrp link to down to RTB on
right,
and ospf link down to RTC on left. B and C have ospf link.

RTA at top
router ospf 66
distance 171 150.100.2.2 0.0.0.0 10 <--RID of RTB on bottom right
sending
route natively in ospf.
exit
acc permit 150.100.2.0 0.0.0.255 <--route to adjust, which is loopback,
and
RID as well

Sometime it works, but most of the time the route is not adjusted. I
have
tried different masks on the statement, different loopback masks (/32 or
/24), with and without ip ospf network point-to-point on loopback. None
of
this should seem to matter, but the route will not adjust. The first
time I
did this it worked smooth but now I cannot seem to find the right
combination. Can somebody provide pointers.

Thanks,
Marc



This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:35:57 GMT-3