Border Gateway Protocol (BGP) makes core routing decisions. It includes a table of IP networks or prefixes, which designate network reachability among multiple autonomous systems.

About this task

An underlying connection between two BGP speakers is established before any routing information is exchanged. Keepalive messages are sent by the BGP speakers in order to keep this relationship alive. After the connection is established, the BGP speakers exchange routes and synchronize their tables.

Procedure

  1. Log in to the vSphere Web Client.
  2. Click Networking & Security and then click NSX Edges.
  3. Double-click an NSX Edge.
  4. Click Routing and then click BGP.
  5. Click Edit.
  6. In the Edit BGP Configuration dialog box, click Enable BGP.
  7. Click Enable Graceful Restart for packet forwarding to be un-interrupted during restart of BGP services.
  8. Click Enable Default Originate to allow NSX Edge to advertise itself as a default gateway to its peers.
  9. Type the router ID in Local AS. Type the Local AS. This is advertised when BGP peers with routers in other autonomous systems (AS). The path of ASs that a route traverses is used as one metric when selecting the best path to a destination.
  10. Click OK.
  11. In Neighbors, click the Add icon.
  12. Type the IP address of the neighbor.

    When you configure BGP peering between an edge services gateway (ESG) and a logical router, use the logical router's protocol IP address as the ESG's BGP neighbor address.

  13. (On a logical router only) Type the forwarding address.

    The forwarding address is the IP address that you assigned to the distributed logical router's interface facing its BGP neighbor (its uplink interface).

  14. (On a logical router only) Type the protocol address.

    The protocol address is the IP address that the logical router uses to form a BGP neighbor relationship. It can be any IP address in the same subnet as the forwarding address (as long as it is not used anywhere else). When you configure BGP peering between an edge services gateway (ESG) and a logical router, use the logical router's protocol IP address as the ESG neighbor's IP address.

  15. Type the remote AS.
  16. Edit the default weight for the neighbor connection if required.
  17. Hold Down Timer displays interval (180 seconds) after not receiving a keep alive message that the software declares a peer dead. Edit if required.
  18. Keep Alive Timer displays the default frequency (60 seconds) with which the software sends keepalive messages to its peer. Edit if required.
  19. If authentication is required, type the authentication password. Each segment sent on the connection between the neighbors is verified. MD5 authentication must be configured with the same password on both BGP neighbors, otherwise, the connection between them will not be made.
  20. To specify route filtering from a neighbor, click the Add icon in the BGP Filters area.
    Caution:

    A "block all" rule is enforced at the end of the filters.

  21. Select the direction to indicate whether you are filtering traffic to or from the neighbor.
  22. Select the action to indicate whether you are allowing or denying traffic.
  23. Type the network in CIDR format that you want to filter to or from the neighbor.
  24. Type the IP prefixes that are to be filtered and click OK.
  25. Click Publish Changes.

Configure BGP Between an ESG and a Logical Router

In this topology, the ESG is in AS 64511. The logical router (DLR) is in AS 64512.

The logical router's forwarding address is 192.168.10.2. This is the address configured on the logical router's uplink interface. The logical router's protocol address is 192.168.10.3. This is the address that the ESG will use to form its BGP peering relationship with the logical router.

On the logical router, configure BGP as shown:

On the ESG, configure BGP as shown:

The ESG's neighbor address is 192.168.10.3, which is the logical router's protocol address.

Run the show ip bgp neighbors command on the logical router, and make sure the BGP state is Established.

Run the show ip bgp neighbors command on the ESG, and make sure the BGP state is Established.