To enable fail-over from availability zone 1 to availability zone 2, you configure BGP neighbors on the tier-0 gateway in the management or workload domain to be stretched. You add route filters to configure localpref
on incoming traffic and prepend of AS
on outgoing traffic.
You configure two BGP neighbors with route filters for the uplink interfaces in availability zone 2.
Setting |
BGP Neighbor 1 |
BGP Neighbor 2 |
---|---|---|
IP address |
ip_bgp_neighbor1 |
ip_bgp_neighbor2 |
BFD |
Deactivated |
Deactivated |
Remote AS |
asn_bgp_neighbor1 |
asn_bgp_neighbor2 |
Hold downtime |
12 |
12 |
Keep alive time |
4 |
4 |
Password |
bgp_password |
bgp_password |
Setting |
BGP Neighbor 1 |
BGP Neighbor 2 |
---|---|---|
IP Address Family |
IPV4 |
IPV4 |
Activated |
Activated |
Activated |
Out Filter |
rm-out-az2 |
rm-out-az2 |
In Filter |
rm-in-az2 |
rm-in-az2 |
Maximum Routes |
- |
- |
Procedure
- On the NSX Manager main navigation bar, click Networking.
- In the navigation pane, click Tier-0 gateways.
- Select the gateway and from the ellipsis menu, click Edit.
- Add the uplink interfaces to the NSX Edge nodes.
- Expand BGP and in the BGP neighbors section, click 2.
- In the Set BGP neighbors dialog box, click Add BGP neighbor and configure the following settings.
Setting
Value
IP address
ip_bgp_neighbor1
BFD
Deactivated
Note:Activate BFD only if the network supports and is configured for BFD.
Remote AS
asn_bgp_neighbor1
Source addresses Select AZ2 interfaces Hold downtime
12
Keep alive time
4
Password
bgp_password
- In the Route filter section, click Set.
- In the Set route filter dialog box, click Add route filter and configure the following settings.
Setting
Value
IP Address Family
IPV4
Enabled
Activated
Out Filter
rm-out-az2
In Filter
rm-in-az2
Maximum Routes
-
- Click Add and then click Apply.
- Repeat step 4 to configure BGP neighbor ip_bgp_neighbor2and the corresponding route filter.
- On the Tier-0 gateway page, click Close editing.