bgp address-family

This command enters address family mode and configures Address Family Indicator (AFI) and Subsequent Address Family Indicator (SAFI) modes for BGP peers.

Syntax

bgp address-family [ipv4 | ipv6] [unicast | multicast | both | bgp-mpls-vpn]
no address-family {ipv4 | ipv6} {unicast | multicast | both | bgp-mpls-vpn}

Parameters

ipv4 (Optional) Specifies that the AFI mode is configured for IPv4 for this address family (default).
ipv6 (Optional) Specifies that the AFI mode is configured for IPv6 for this address family.
unicast | multicast (Optional) Specifies that the SAFI mode is configured for either unicast or multicast for this address family. The default value is unicast.
both Configures the SAFI mode for both unicast and multicast.
bgp-mpls-vpn Configures the SAFI mode for BGP-MPLS-VPN.

Defaults

If no option is specified, the AFI mode is IPv4 unicast.

Mode

BGP Router Configuration.

Usage

By default BGP peers are enabled for carrying ipv4 unicast routes. For all other AFI/SAFI‘s a given peer must be “activated” for carrying routes of that type.

Use this command to enter the address family configuration mode for IPv4 unicast, IPv6 unicast, IPv4 multicast, or IPv6 multicast. Within the appropriate mode:

Before configuring an IPv4 or IPv6 multicast address family, a multicast toplogy for that address family must be configured in the global configuration address family using topology. Enter the IPv4 or IPv6 multicast address family in global configuration mode using bgp address-family, and configure the address family context with a topology before attempting to configure a BGP IPv4 or IPv6 multicast address family.

To disable a peer from carrying ipv4/unicast routes a BGP route-map is required.

The no address-family removes the configuration for the specified address family context.

Example

The following example enters the address family configuration mode for AFI/SAFI mode IPv6 unicast:

System(su-config-bgp)->address-family ipv6 unicast
System(su-config-bgp-af)->

The following example removes all address-family configuration for IPv6 unicast:

System(su-config-bgp)->no address-family ipv6 unicast
System(su-config-bgp)->

The following example configures an IPv4 multicast address family topology named MultiIPv4 and enters the IPv4 BGP multicast address family configuration mode:

System(su-config)->address-family ipv4 multicast
System(su-config-af)->topology MultiIPv4
System(su-config-af)->exit
System(su-config)->router bgp 1
System(su-config-bgp)->address-family ipv4 multicast
System(su-config-bgp-af)->