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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

route-policy on BGP neighbor with VPN-IPv4 address family

Hi,

During testing, I try following policy:

route-policy PL-BGP-DOWN-VPN-TEST
  if destination in (0.0.0.0/0) then
    if protocol is static then
      done
    endif
  endif
  drop
end-policy
!

After applying that policy to VPNv4 BGP neighbor, I get following commit error:


!!% Policy [PL-BGP-DOWN-VPN-TEST] uses the 'protocol' attribute. There is no 'protocol' attribute at the bgp neighbor-out-dflt attach point.


Then, I tried another policy:

route-policy PL-BGP-DOWN-VPN-EXP
  if tag is 41202 then
    done
  endif
  drop
end-policy

But again, got commit error

Could not find entry in list: Policy [PL-BGP-DOWN-VPN-EXP] uses the 'tag' attribute. There is no 'tag' attribute at the bgp neighbor-out-dflt attach point.


As visible, neither is working (I get constatntly commit errors). What I wnat to implement is following:

 

a) I have couple of static routes inside my VRF

b) Those static routes are marked with some tag (e.g. tag=41202)

c) from my PE, I have couple of BGP sessions with address-family vpnv4 enabled

d) I would like to send those static routes from my VRF only to one vpnv4 BGP neighbor

 

How should I write policy to achieve that?

 

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Hi,Add different RT on those

Hi,

Add different RT on those route with rt export map, and use this RT as a filter on vpn4 neighbor.

 

 

1 REPLY
New Member

Hi,Add different RT on those

Hi,

Add different RT on those route with rt export map, and use this RT as a filter on vpn4 neighbor.

 

 

460
Views
0
Helpful
1
Replies
CreatePlease to create content