A BGP peer group can contain both IPv4 and IPv6 peers.
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor p1 peer-group
device(config-bgp-router)# neighbor p1 remote-as 11
device(config-bgp-router)# neighbor 2001:2018:8192::124 peer-group p1
device(config-bgp-router)# neighbor 10.0.0.1 peer-group p1
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor p1 activate
The following example summarizes the commands in this procedure.
device# configure terminal device(config)# router bgp device(config-bgp-router)# neighbor p1 peer-group device(config-bgp-router)# neighbor p1 remote-as 11 device(config-bgp-router)# neighbor 2001:2018:8192::124 peer-group p1 device(config-bgp-router)# neighbor 10.0.0.1 peer-group p1 device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor p1 activate