Configuration Overview

The following procedure configures a basic BGP topology:
  1. Configure the interfaces that will connect to BGP neighbors. For each interface, do the following:
    1. Create a VLAN.
    2. Assign one or more ports to the VLAN.
    3. Configure a VLAN IP address.
    4. Enable IP forwarding on the VLAN.
      For more information on configuring VLANs, see VLANs
  2. Configure the BGP router ID using the following command:
  3. Configure the AS number to which the router should belong using the following command:
    configure bgp AS-number number
  4. Configure the BGP neighbor retry timer using the following command:
    configure bgp neighbor [all | remoteaddr] connect-retry seconds
  5. To configure the BGP retry timer to a specified peer group, use the following command:
    configure bgp peer-group peer-group-name connect-retry seconds
  6. To add one or more IBGP neighbors, use the following command and specify the AS number to which the router belongs:
    create bgp neighbor remoteaddr remote-AS-number as-number {multi-hop}
  7. To add one or more EBGP neighbors, use the following command and specify the AS number of the remote AS (which is different from the AS to which the router belongs):
    create bgp neighbor remoteaddr remote-AS-number as-number {multi-hop}
  8. If you want to simultaneously configure BGP options for multiple neighbors, create and configure peer groups as described in Configuring BGP Peer Groups.
  9. If the BGP network will support IPv4 traffic, you can skip this step. You can also skip this step, if for an IPv6 BGP neighbor, you only want ipv6-unicast, which is automatically enabled when you create the peer. If the BGP network will support any other address family, you must enable support for that address family on BGP neighbors with either of the following commands:
    enable bgp neighbor [all |remoteaddr] capability [ipv4-unicast | ipv4-multicast | ipv6-unicast | ipv6-multicast | vpnv4 | route-refresh | ipv4-vxlan | l2vpn-evpn]
    enable bgp peer-group peer-group-name capability [ipv4-unicast | ipv4-multicast | ipv6-unicast | ipv6-multicast | vpnv4 | route-refresh]
  10. To configure additional BGP neighbor options, see Configuring BGP Neighbors.
  11. For instructions on configuring additional BGP features, see the list under Configuring BGP.
  12. Enable BGP neighbors using the following command:
    enable bgp neighbor [remoteaddr | all]
  13. Enable BGP using the following command:
    enable bgp

For instructions on displaying BGP information, see Displaying BGP Information.