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

MED

ateeqs.net
Level 1
Level 1

Dear Expert,

 

Using BGP MED, Can i influence a single subnet?

We have multiple subnet which is advertising to our ISP,

168.165.89.X

168.165.56.X

168.165.122.X

We have in plan to configure metric to specific route 168.165.89.X which will traverse through our secondary link.

But when i am using prefix-list or access list in example below, it is denying all other route except  168.165.89.X.

ip prefix-list MED_Secondary permit 168.165.89.X

 

route-map MED_Sec permit

match ip address prefix-list MED_Secondary

set metric 1000

 

Any help would be greatly appreciated. thanks.

1 Accepted Solution

Accepted Solutions

Akash Agrawal
Cisco Employee
Cisco Employee

Hi,

 

route-map by default has implicit deny at last. I mean if you have applied route-map for route filtering/attribute manipulation on a bgp neighbor, all routes which are not being matched under sequence defined will be denied at last. Please add one more seq to permit all. A blank permit statement is permit all. same applicable for blank deny statement

 

route-map MED_Sec permit 10

match ip address prefix-list MED_Secondary

set metric 1000

route-map MED_Sec permit 20

 

-- Pls dont forget to rate helpful posts --

Regards,

Akash

View solution in original post

2 Replies 2

Akash Agrawal
Cisco Employee
Cisco Employee

Hi,

 

route-map by default has implicit deny at last. I mean if you have applied route-map for route filtering/attribute manipulation on a bgp neighbor, all routes which are not being matched under sequence defined will be denied at last. Please add one more seq to permit all. A blank permit statement is permit all. same applicable for blank deny statement

 

route-map MED_Sec permit 10

match ip address prefix-list MED_Secondary

set metric 1000

route-map MED_Sec permit 20

 

-- Pls dont forget to rate helpful posts --

Regards,

Akash

Thanks Akash.

 

Appreciate you for notifying my mistake, i have made changes and it works as expected.

Review Cisco Networking for a $25 gift card