cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2292
Views
5
Helpful
1
Replies

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

kszarkowicz
Level 1
Level 1

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

Deniz AYDIN
Level 1
Level 1

Hi,

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

 

 

View solution in original post

1 Reply 1

Deniz AYDIN
Level 1
Level 1

Hi,

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