BGP

This help contains the following topics:

Introduction

Border Gateway Protocol (BGP) is an exterior gateway protocol (EGP). It is called internal BGP (IBGP) when it runs within an AS and called external BGP (EBGP) when it runs between ASs. As shown in Figure-1, EBGP runs between Router A and Router B, and IBGP runs between Router B and Router C. An AS refers to a group of routers that use the same routing policy and work under the same administration.

Figure-1 Network diagram

The current version in use is BGP-4. It is widely used by Internet Service Providers (ISPs).

Basic concepts

BGP speaker and BGP peer

A router running BGP is a BGP speaker. A BGP speaker establishes peer relationships with other BGP speakers to exchange routing information over TCP connections.

BGP peers include the following types:

MP-BGP

BGP-4 can only advertise IPv4 unicast routing information.

Multiprotocol Extensions for BGP-4 (MP-BGP) can advertise routing information for the following address families:

Controlling BGP route generation

BGP routes can be generated in the following ways:

  1. Inject a local network. Perform this task to inject a network in the local routing table to the BGP routing table, so BGP can advertise the network to BGP peers. The ORIGIN attribute of BGP routes advertised in this way is IGP. You can also use a routing policy to control route advertisement.

    The specified network must be available and active in the local IP routing table.

  2. Redistribute IGP routes: Perform this task to configure route redistribution from an IGP to BGP.

    By default, BGP does not redistribute default IGP routes. You can configure BGP to redistribute default IGP routes into the BGP routing table.

    • The ORIGIN attribute of BGP routes redistributed from IGPs is INCOMPLETE.

    • Only active routes can be redistributed.

vSystem support information

Support of non-default vSystems for this feature depends on the device model. This feature is available on the Web interface only if it is supported.

Restrictions and guidelines

Configure BGP

Analysis

Configure BGP as shown in Figure-2.

Figure-2 BGP configuration procedure

Prerequisites

Complete the following tasks before you configure this feature:

Configure BGP

BGP is a distance vector routing protocol that implements inter-AS route reachability and optimal route selection. It is an exterior gateway protocol and is widely used between ISPs.

Enable BGP

  1. Navigate to the Network > Routing > BGP page.

  2. Select Enable BGP, and then configure other BGP settings as needed.

    Figure-3 BGP configuration

    Table-1 BGP state configuration items

    Item

    Description

    Enable BGP

    Select whether to enable BGP.

    AS Number

    Specify an AS number for AS identification.

    BGP Address Family

    Specify BGP address families as needed. You can then perform address family-specific configuration.

Create a BGP peer

  1. Navigate to the Network > Routing > BGP page.

  2. Click the BGP Peer tab, and then click Create.

  3. Configure the BGP peer settings as needed.

    Figure-4 Creating a BGP peer

    Table-2 BGP peer configuration items

    Item

    Description

    Peer IP Address

    Specify the IPv4 address of the peer.

    AS Number

    Specify the AS number of the peer.

    • If the AS number of the peer is the same as that of the local router, the peer is an IBGP peer.

    • If the AS number of the peer is different from that of the local router, the peer is an EBGP peer.

    MD5 Authentication

    Configure MD5 authentication settings to enhance BGP data security.

  4. Click OK. The BGP Peer page will display the peer if it is created successfully.

Create a BGP network

  1. Navigate to the Network > Routing > BGP page.

  2. Click the BGP Network tab, and then click Create.

  3. Configure BGP network settings as needed.

    Figure-5 Creating a BGP network

    Table-3 BGP network configuration items

    Item

    Description

    Address Family

    Specify a BGP address family view.

    IP Address

    Specify a network address.

    After you specify a network, BGP will add routes destined for the specified network into the BGP routing table and will advertise them to BGP peers.

    The specified network must exist and be active in the local IP routing table.

    Mask/Prefix Length

    Specify the mask or prefix length of the network address.

  4. Click OK. The BGP Network page will display the network if it is created successfully.

Create a BGP route redistribution rule

  1. Navigate to the Network > Routing > BGP page.

  2. Click the BGP Route Redistribution tab, and then click Create.

  3. Configure the following BGP route redistribution settings as needed:

    Figure-6 Creating a BGP route redistribution rule

    Table-4 BGP route redistribution configuration items

    Item

    Description

    Address Family

    Specify a BGP address family view.

    Protocol

    Specify an IGP as needed.

    BGP can then redistribute routes from the specified IGP to the BGP routing table and advertise these routes to peers.

    Process ID

    Specify an IGP process by its ID.

    If the protocol is IS-IS, IPv6 IS-IS, OSPF, OSPFv3, RIP, or RIPng, and you do not specify a process, BGP redistributes routes from process 1.