# BGP IPv6 over IPv4

**URL:** <https://legacy-community.ine.com/t/bgp-ipv6-over-ipv4/3511>\
**Category:** CCNP Enterprise\
**Tags:** networking\
**Created:** [March 15, 2023, 2:43am UTC](https://legacy-community.ine.com/t/bgp-ipv6-over-ipv4/3511 "2023-03-15T02:43:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [March 15, 2023, 2:43am UTC](https://legacy-community.ine.com/t/bgp-ipv6-over-ipv4/3511/1 "2023-03-15T02:43:24Z")

</div>

Hi @Network_Eric

router bgp 1  
bgp router-id 1.1.1.1  
bgp log-neighbor-changes  
neighbor 2.2.2.2 remote-as 2  
R7(config-router)#address-family ipv6 unicast  
R7(config-router-af)#neighbor 2.2.2.2 activate

what does the neighbor 2.2.2.2 activate under the ipv6 address family is used for ?

---

<div class="post-metadata">

**Author:** ![Network\_Eric](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Network\_Eric](https://legacy-community.ine.com/u/Network_Eric)\
**Post date:** [March 15, 2023, 3:20pm UTC](https://legacy-community.ine.com/t/bgp-ipv6-over-ipv4/3511/2 "2023-03-15T15:20:04Z")

</div>

Hey Major,

Multi Protocol BGP can carry multiple different protocols over an underlying connection. This is how we use it with MPLS and things like IPv6. In MP BGP we have to activate an address family if we want that address family to be used as part of the BGP exchange. IPv4 is activated by default, though can be deactivated. When you activate IPv6 you are telling BGP you want it to be able to send IPv6 information.

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [March 15, 2023, 7:03pm UTC](https://legacy-community.ine.com/t/bgp-ipv6-over-ipv4/3511/3 "2023-03-15T19:03:50Z")

</div>

@Network_Eric  
R7(config-router)#address-family ipv6 unicast  
R7(config-router-af)#neighbor 2.2.2.2 activate  
what does this command meaning ? i don`t understand . how could we have ipv4 neighbor under the ipv6 address family ? if we have ipv4 address family we need ipv4 neighbor and if we have ipv6 address family we need ipv6 neighbor. but the opposite is something i don`t understand at all

---

<div class="post-metadata">

**Author:** ![Network\_Eric](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Network\_Eric](https://legacy-community.ine.com/u/Network_Eric)\
**Post date:** [March 16, 2023, 3:29pm UTC](https://legacy-community.ine.com/t/bgp-ipv6-over-ipv4/3511/4 "2023-03-16T15:29:46Z")

</div>

Hey Major,

Multi Protocol BGP is a really big topic to cover, but for our purposes here I’ll try to sum up an answer for your question. BGP allows you to exchange multiple protocols across a single peer relationship. So, instead of needing, as you proposed, an IPv4 and IPv6 peering, you can run it all over an IPv4 connection. This includes Unicast and Multicast traffic (which can be modified separately), or even to exchange MPLS VPN information.

So, there are some issues that happen when you deploy an IPv4 neighbor with IPv6 information, you have to do things like modify next hop information with a routemap, but it it allows a great deal of flexibility.
