cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
409
Views
0
Helpful
2
Replies

Route-maps: should I use "in" or "out" in this case

news2010a
Level 3
Level 3

Hi there,

Can you help me clarify this on route-maps:

Please find attached a diagram and the following config for "RouterC":

RouterC(config)#router bgp 100

RouterC(config-router)#neig 192.168.5.2 route-map LOCAL in

RouterC(config)#router-map LOCAL permit 10

RouterC(config)#set local-preference 300

Question:

Imagine I want to force traffic to use the "CD" link to

reach the 192.168.10.0/24 and 192.168.11.0/24 networks.

I can't understand why on "neig 192.168.5.2 route-map LOCAL"

line, it is being used "in". Why not "out" ?

Can you clarify what's the logic used to determine

whether I should use "in" or "out" in this case ?

2 Accepted Solutions

Accepted Solutions

Hi,

Local preference is a BGP attribute used to influence path selection when multiple paths are available to get to a specific network. Higher local preference is preferrred. Default value is 100. The local preference value stays local to the AS and isn't carried over in updates to another AS.

You need to apply the route map inbound because you want to set the local-pref to 300 for any routes learnt from RouterC as you want it to be the preferred path to get to networks 192.168.10.0/24 and 192.168.11.0/24. If you are learning the same two networks from RouterA then they would have the default local-pref value of 100, which is lower, and wouldn't be preferred.

HTH

Sundar

View solution in original post

tdrais
Level 7
Level 7

You want to apply it inbound.

In the case of local preference you cannot really send it outbound to a EBGP neighbor. This parameter is only used within a AS.

A more generic explination is that if you want to affect outbound TRAFFIC you set the attributes on the ROUTES as they enter the router. To affect inbound TRAFFIC you set the attributes on the ROUTES as they leave the router.

View solution in original post

2 Replies 2

Hi,

Local preference is a BGP attribute used to influence path selection when multiple paths are available to get to a specific network. Higher local preference is preferrred. Default value is 100. The local preference value stays local to the AS and isn't carried over in updates to another AS.

You need to apply the route map inbound because you want to set the local-pref to 300 for any routes learnt from RouterC as you want it to be the preferred path to get to networks 192.168.10.0/24 and 192.168.11.0/24. If you are learning the same two networks from RouterA then they would have the default local-pref value of 100, which is lower, and wouldn't be preferred.

HTH

Sundar

tdrais
Level 7
Level 7

You want to apply it inbound.

In the case of local preference you cannot really send it outbound to a EBGP neighbor. This parameter is only used within a AS.

A more generic explination is that if you want to affect outbound TRAFFIC you set the attributes on the ROUTES as they enter the router. To affect inbound TRAFFIC you set the attributes on the ROUTES as they leave the router.

Review Cisco Networking products for a $25 gift card