Enable BGP4 in a Non-default VRF

When BGP4 is enabled in a non-default VRF instance, the device enters BGP address-family IPv4 unicast VRF configuration mode. From there, you can access several commands that allow the configuration of BGP4 for the non-default VRF instance.

Before you begin

Before performing this task, ensure that a non-default VRF instance is configured.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Specify the VRF name and enter BGP address-family IPv4 unicast VRF configuration mode.
    device(config-bgp-router)# address-family ipv4 unicast vrf red
    device(config-bgp-ipv4u-vrf)#
    This example shows the address-family ipv4 unicast command, the vrf keyword, and the VRF name (red).

Example

The following example summarizes the commands in this procedure.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast vrf red
device(config-bgp-ipv4u-vrf)#