bgp - multiple match command

Unanswered Question
Oct 23rd, 2007
User Badges:

Can I use a match in a single route-map like this?

route-map prefmyroute permit 5

match as-path 7

match ip address 2

set local-preference 200

ip as-path access-list 7 permit ^200$

access-list 2 permit

I want to match ip address comming from as 200 and stamp it with local preference of 200. Is this the command to do it?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
royalblues Tue, 10/23/2007 - 10:43
User Badges:
  • Green, 3000 points or more

Yes you can do that.

Action will be taken only when it satisfies both the match statements

The above command will try to match the prefix and assign a Local pref value of 200 if the AS path only has 200 and nothing else

If you want to match the prefix if the as path includes 200 then the as-path access-list should be something like

ip as-path access-list 7 permit ^200_




This Discussion