BGP route map question

Unanswered Question
Nov 3rd, 2005
User Badges:


I came across a route-map statement on the config. of router A peering through EBGP to router B.


neighbor <router B's IP> route-map



route-map PREF permit 10

match community 10

set local-preference 110


route-map PREF permit 20

match community 20

set local-preference 120


route-map PREF permit 30


My question concerns the need for the last permit statement. What is the default action in route maps when no match and/or set actions are specified?



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
rwiesmann Thu, 11/03/2005 - 06:37
User Badges:
  • Bronze, 100 points or more


the third statement will assign a local pref of 100 (default) to all prefixes which will not have a community set to 10 or 20.

Default local pref see:

If you do not have the last permit statement it would simply ignore all prefixes without a community of either 10 or 20.

Hope that helps


rajesh444 Thu, 11/03/2005 - 07:36
User Badges:


Thanks. Without the last permit statement, would

all other prefixes be dropped or simply ignored and

passed through?

Assuming router A is running IBGP with other

routers in its AS, wouldn't it advertise EBGP

learned prefixes to IBGP peers with default

local-pref value of 100 anyway?


rwiesmann Thu, 11/03/2005 - 07:50
User Badges:
  • Bronze, 100 points or more

Hi Rajesh,

without the last permit statement the prefixes will be ignored/dropped and not passed through.

so in the sample you give the answer is no....the router would not accept it and because of this not advertise this prefixes.




This Discussion