cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
231
Views
10
Helpful
2
Replies
Highlighted
Engager

Apply same BGP policy/route-map for IPv4 and IPv6 Address Family

hi,

i got a BGP WAN with dual stack IPv4 and IPv6 address. 

can i configure the same BGP policy/route-map (local pref) applied on IPv4 AF to IPv6?

router bgp 65000
bgp router-id 1.2.3.4
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 2001:1111::1 remote-as 65001
neighbor 2001:1111::1 update-source GigabitEthernet0/0/1
neighbor 200.1.1.1 remote-as 65001
neighbor 200.1.1.1 update-source GigabitEthernet0/0/1
neighbor 200.1.1.1 version 4
!
address-family ipv4
network 1.2.3.0 mask 255.255.255.0
neighbor 200.1.1.1 activate
neighbor 200.1.1.1 send-community
neighbor 200.1.1.1 soft-reconfiguration inbound
neighbor 200.1.1.1 route-map RM_LOC_PREF in
exit-address-family
!
address-family ipv6
network 2001:1111::/48
neighbor 2001:1111::1 activate
neighbor 2001:1111::1 route-map RM_LOC_PREF in
exit-address-family

2 REPLIES 2
Highlighted
Hall of Fame Master

Re: Apply same BGP policy/route-map for IPv4 and IPv6 Address Family

Hello @johnlloyd_13 ,

this depends on how the route-map is configured

if there is no match command likely the answer is yes

 

I mean

route-map RM_LOC_PREF permit 10

set local-preference 200

 

this is portable to different address families, but if you invoke an IPv4 prefix-list for example with a

match ip address prefix SOMEROUTES

 

I am afraid in this case you need a separate route-map to be used for AF IPv6 unicast.

 

Hope to help

Giuseppe

 

 

Highlighted
Engager

Re: Apply same BGP policy/route-map for IPv4 and IPv6 Address Family

hi giuseppe,

thanks for the response! i only have 2 BGP route-map policies: local pref (inbound) and AS path prepend (outbound).

can these be applied on both IPv4 and IPv6 AF?