Configuring a peer group with IPv4 and IPv6 peers
A peer group that contains both IPv4 and IPv6 peers can be configured.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
router bgpcommand to enable BGP routing. - Enter the
local-ascommand to configure the autonomous system number (ASN) in which your device resides. - Enter the
neighbor peer-groupcommand, specifying a peer group, to create a peer group. - Enter the
neighbor remote-ascommand to specify the ASN of the peer group. - Enter the
neighbor peer-groupcommand, specifying an IPv6 address, to associate a neighbor with the peer group. - Enter the
neighbor peer-groupcommand, specifying a different IPv6 address, to associate another neighbor with the peer group. - Enter the
address-family ipv6 unicastcommand to enter IPv6 address family configuration mode. - Enter the
neighbor activatecommand to establish an IPv6 BGP session with the peer group.
The following example creates a peer group with both IPv6 and IPv4 peers and activates the peer group in the IPv6 address family.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 1000 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