Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

route-map question

Hi

Currently I have the following route-map on my router:

route-map se-to-isp permit 10

match ip address 1

set metric 8000

set local-preference 50

Could someone please explain what the above means and its possible affect on a route propogated via bgp.

Thanks in advance

Dan

1 ACCEPTED SOLUTION

Accepted Solutions

Re: route-map question

Hi Dan,

The local preference attribute is used to prefer an exit point from the local autonomous system (AS). Unlike the weight attribute, the local preference attribute is propagated throughout the local AS. If there are multiple exit points from the AS, the local preference attribute is used to select the exit point for a specific route.

So it all depends on you and your network setup that what value you waan a assign as a local preference in route map for a particular route. Just remember higher local preference value is preferred over lower value and will be used as a deciding factor for a exit point for particular route.

Regards,

Ankur

6 REPLIES
Purple

Re: route-map question

Dan,

The route-map will do the following:

For all routes matched by the access-list number 1, it will:

- set the MED attribute to 8000

- set the LOCAL_PREF attribute to 50

A higher MED makes the route less preferable and so does a lower Local Preference value...

Hope that helps - pls do remember to rate posts that help.

Paresh

Community Member

Re: route-map question

Hi Paresh,

If i use this route-map is it going to affect local preference.

Thanks in advance

Purple

Re: route-map question

Kamlesh,

It certainly will.. it will set it to 50 for all matching routes.

Hope that helps - pls do remember to rate posts that help.

Paresh

Re: route-map question

Hi Dan,

"set metric" command set the metric value for a routing protocol. The match and set route-map configuration commands are useed to define the conditions for redistributing routes from one routing protocol into another.

Have a look at this link

http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124tcr/tirp_r/rtebght2.htm#wp1117503

"set local-preference" command is used to specify a preference value for the autonomous system path.

Have a look at this link

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fiprrp_r/ind_r/1rfindp2.htm#wp1021099

HTH, if yes please rate the post.

Ankur

Community Member

Re: route-map question

Hi

Thanks for the reply. Could you please expand on the "set local-preference" as I don't understand what it means or its effect on the ASN.

Thanks

Dan

Re: route-map question

Hi Dan,

The local preference attribute is used to prefer an exit point from the local autonomous system (AS). Unlike the weight attribute, the local preference attribute is propagated throughout the local AS. If there are multiple exit points from the AS, the local preference attribute is used to select the exit point for a specific route.

So it all depends on you and your network setup that what value you waan a assign as a local preference in route map for a particular route. Just remember higher local preference value is preferred over lower value and will be used as a deciding factor for a exit point for particular route.

Regards,

Ankur

119
Views
0
Helpful
6
Replies
CreatePlease to create content