Basic eBGP configuration
In this section, you configure eBGP on the routers labeled R1 and R4 in the reference network diagram. Router R1 is peering with an eBGP neighbor that is configured to be in AS 200 and router R4 is peering with an eBGP neighbor in AS 300.
In this example, the eBGP peering connections are established between eBGP neighbors using the physical interface IP addresses. This is a common configuration for eBGP peers. If the link between the peers goes down, the peering relationship should also go down since there is no redundancy.
After the basic eBGP configuration has been completed, the network should look as shown in the following figure.
This example assumes the following:
- The configuration in the preceding example has already been performed.
- The eBGP peers connecting to R1 and R4 have been properly configured for BGP.
To create a basic eBGP configuration, perform the following steps in configuration mode.
Router | Step | Commands |
---|---|---|
R1 | Create an eBGP peer for R1. The peer is an eBGP peer because it resides in a different AS than this router. |
|
R1 | Activate the neighbor for the IPv4 unicast address family to enable the exchange IPv4 unicast routes. |
|
R1 | Commit the configuration. |
|
R1 | Display the configuration. |
|
R4 | Create an eBGP peer for R4. The peer is an eBGP peer because it resides in a different AS than this router. |
|
R4 | Activate the neighbor for the IPv4 unicast address family to enable the exchange IPv4 unicast routes. |
|
R4 | Commit the configuration. |
|
R4 | Commit the configuration. |
|