address-family

Use this command to enter the BGP IPv4 or IPv6 L3 VPN address family configuration mode.

Syntax

address-family {vpnv4 | vpnv6}

Parameters

vpnv4 Enters the BGP IPv4 L3 VPN address family configuration mode.
vpnv6 Enters the BGP IPv6 L3 VPN address family configuration mode.

Defaults

None.

Mode

BGP Router Configuration.

Usage

Within the IPv4 or IPv6 L3 VPN address family mode, you can enable the L3 VPN address family using enable.

IPv4 unicast BGP peers are activated by default in a non-L3 VPN context. BGP peers within either the IPv4 or IPv6 L3 VPN address family must be administratively activated using neighbor activate.

BGP routes associated with the neighbor must be redistributed to the customer edge router on the VRF that will use the L3 VPN.

Note

Note

To redistribute routes assoicated with the neighbor, enter the BGP global configuration address family using address-family, specifying the VRF option, and use the appropriate redistribute command.

Examples

This example shows how to:

  • Configure BGP neighbor 159.1.1.50 and set the neighbor source to the BGP router ID
  • Enter the L3 VPN IPv4 address family
  • Enable the L3 VPN IPv4 address family
  • Activate the peer for the IPv4 L3 VPN address family
  • Enter the BGP global configuration IPv4 address family for the vr1 VRF
  • Redistribute the IPv4 static routes for VRF vr1
    System(rw)->
    System(su-config)->router bgp 65151
    System(su-config-bgp)->bgp router-id 159.1.1.9
    System(su-config-bgp)->neighbor 159.1.1.50 remote-as 65151
    System(su-config-bgp)->neighbor 159.1.1.50 update-source 159.1.1.9
    System(su-config-bgp)->address-family vpnv4
    System(su-config-bgp-af-vpn)->enable
    System(su-config-bgp-af-vpn)->159.1.1.50 neighbor activate
    System(su-config-bgp-af-vpn)->exit
    System(su-config-bgp)->address-family ipv4 vrf vr1
    System(su-config-bgp-af-vrf)->redistribute static
    System(su-config-bgp-af-vrf)->exit
    System(su-config-bgp)->

This example shows how to:

  • Configure BGP neighbor 4000:1::5 and set the neighbor source to the BGP router ID
  • Enter the L3 VPN IPv6 address family
  • Enable the L3 VPN IPv6 address family
  • Activate the peer for the IPv6 L3 VPN address family
  • Enter the BGP global configuration IPv6 address family for the vr1 VRF
  • Redistribute the IPv6 static routes for VRF vr1
    System(rw)->
    System(su-config)->router bgp 65151
    System(su-config-bgp)->bgp router-id 4000:1::a
    System(su-config-bgp)->neighbor 4000:1::5 remote-as 65151
    System(su-config-bgp)->neighbor 4000:1::5 update-source 4000:1::a
    System(su-config-bgp)->address-family vpnv6
    System(su-config-bgp-af-vpn)->enable
    System(su-config-bgp-af-vpn)->4000:1::5 neighbor activate
    System(su-config-bgp-af-vpn)->exit
    System(su-config-bgp)->address-family ipv6 vrf vr1
    System(su-config-bgp-af-vrf)->redistribute static
    System(su-config-bgp-af-vrf)->exit
    System(su-config-bgp)->exit
    System(rw-config)->