Skip to content

Commit b07b0da

Browse files
committed
Update howto-enable-micro-bfd.md
1 parent 1c319b3 commit b07b0da

File tree

1 file changed

+130
-31
lines changed

1 file changed

+130
-31
lines changed

articles/operator-nexus/howto-enable-micro-bfd.md

Lines changed: 130 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,63 +11,162 @@ ms.custom: template-how-to, devx-track-azurecli
1111

1212
# Enabling Micro-BFD
1313

14-
Micro-BFD (Bidirectional Forwarding Detection) is a lightweight protocol designed to quickly detect failures between adjacent network devices, such as routers or switches, with minimal overhead. This guide provides step-by-step instructions to enable Micro-BFD on Customer Edge (CE) and Provider Edge (PE) devices.
14+
Micro-BFD (Bidirectional Forwarding Detection) is a lightweight protocol designed to rapidly detect failures between adjacent network devices, such as routers or switches, with minimal overhead. This guide provides step-by-step instructions to enable Micro-BFD on Customer Edge (CE) and Provider Edge (PE) devices.
1515

1616
## Prerequisites
1717

18-
Before enabling Micro-BFD, perform the following steps:
18+
Before enabling Micro-BFD, ensure the following:
1919

20-
- Both CE and PE devices are configured with the required Micro-BFD settings.
20+
- Both CE and PE devices are preconfigured with the required Micro-BFD settings.
2121

2222
- The feature flag `MicroBFDEnabled` is turned off by default.
2323

24-
> [!Note]
24+
>[!Note]
2525
> Contact Microsoft support through a support incident to enable the feature flag.
2626
2727
- It is necessary to [put the device in maintenance mode](.\howto-put-device-in-maintenance-mode.md) to apply below the configuration changes.
2828

29-
## Configuration steps
29+
## Configuration steps for enabling Micro-BFD
3030

31-
### Step 1: Configure CE devices
31+
Follow these steps to enable Micro-BFD, starting with the secondary devices. Once verified, proceed with the primary devices as described below.
32+
33+
### Step 1: Place CE2 in Maintenance Mode
3234

33-
1. Access the CE device and enter the configuration mode.
35+
Run the following Azure CLI command to place the CE2 device in maintenance mode:
3436

35-
2. Add the following configuration to enable Micro-BFD on the CE-PE interface:
37+
```Azure CLI
38+
az networkfabric device update-admin-state --resource-group <resource-group> --resource-name <resource-name> --state UnderMaintenance
39+
```
40+
41+
>[!Note]
42+
> For new deployments, maintenance mode is not required.
43+
44+
### Step 2: Configure Micro-BFD on CE2
45+
46+
Use the following Azure CLI command to configure Micro-BFD under Port-Channel1 on CE2.
47+
48+
```Azure CLI
49+
az networkfabric device run-rw --ids /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/
50+
Microsoft.ManagedNetworkFabric/NetworkDevices/<device>-AggrRack-CE2 --rw-command "interface Port-Channel1
51+
ip address 10.30.0.69/30
52+
mtu 9124
53+
no switchport
54+
bfd neighbor 10.30.0.70
55+
bfd interval 50 min-rx 50 multiplier 3
56+
bfd per-link rfc-7130
57+
!"
58+
```
59+
60+
```Example IP address allocation
61+
NFIPv4Addr: 10.30.0.0/19
62+
CE<->PE MicroBFD: 10.30.0.64/30
63+
CE1: 10.30.0.65/30 & PE1: 10.30.0.66/30
64+
CE2: 10.30.0.69/30 & PE2: 10.30.0.70/30
65+
NFIPv4Addr: 10.30.32.0/19
66+
CE<->PE MicroBFD: 10.30.32.64/30
67+
CE1: 10.30.32.65/30 & PE1: 10.30.32.66/30
68+
CE2: 10.30.32.69/30 & PE2: 10.30.32.70/30
69+
```
3670

37-
```bash
38-
ip address 10.30.0.65/30
39-
bfd interval 50 min-rx 50 multiplier 3
40-
bfd neighbor 10.30.0.66
41-
bfd per-link rfc-7130
42-
```
71+
Confirm the changes by executing below command.
72+
73+
```Example show output after configuring MicroBFD on CE2
74+
CE2#show running-config interfaces pox
75+
interface pox
76+
description "Port pox Connected to PE-02"
77+
mtu 9124
78+
no switchport
79+
ip address 10.30.0.69/30
80+
bfd interval 50 min-rx 50 multiplier 3
81+
bfd neighbor 10.30.0.70
82+
bfd per-link rfc-7130
83+
```
84+
85+
### Step 3: Put device PE2 into maintenance mode
4386

44-
### Step 2: Configure PE devices
87+
Run the following command to place PE2 in maintenance mode:
4588

46-
1. Access the PE device and enter the configuration mode.
89+
```Azure CLI
90+
az networkfabric device update-admin-state --resource-group <resource-group> --resource-name <resource-name> --state UnderMaintenance
91+
```
4792

48-
2. Add the following configuration to enable Micro-BFD on the PE-CE interface:
93+
>[!Note]
94+
> For new deployments, maintenance mode is not required.
4995
50-
```bash
51-
ip address 10.30.0.66/30
52-
bfd interval 50 min-rx 50 multiplier 3
53-
bfd neighbor 10.30.0.65
54-
bfd per-link rfc-7130
55-
```
96+
### Step 4: Configure Micro-BFD on PE2
5697

57-
### Step 3: Enable feature flag
98+
Use the following command to configure PE2 with Micro-BFD: Consider min-links under the PE device for the respective port-channel.
5899

59-
1. Request the DE team to enable the `MicroBFDEnabled` feature flag.
100+
```Azure CLI
101+
az networkfabric device run-rw --ids /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/
102+
Microsoft.ManagedNetworkFabric/NetworkDevices/<device>-AggrRack-PE2 --rw-command "interface Port-Channel1
103+
ip address 10.30.0.70/30
104+
mtu 9124
105+
no switchport
106+
bfd neighbor 10.30.0.69
107+
bfd interval 50 min-rx 50 multiplier 3
108+
bfd per-link rfc-7130
109+
```
60110

61-
2. Verify the configuration by checking the status of Micro-BFD sessions on both CE and PE devices.
111+
Confirm the changes by executing below command.
112+
113+
```Example Show Output After Configuring MicroBFD on PE2
114+
PE2#show running-config interfaces pox
115+
interface pox
116+
description "Port pox Connected to CE-02"
117+
mtu 9124
118+
no switchport
119+
ip address 10.30.0.70/30
120+
bfd interval 50 min-rx 50 multiplier 3
121+
bfd neighbor 10.30.0.69
122+
bfd per-link rfc-7130
123+
```
62124

63-
### Step 4: Validate configuration
125+
### Step 5: Move device CE2 and PE2 into enabled state
64126

65-
Use the following command to check the status of Micro-BFD sessions on the PE device:
127+
Run the following command to enable the devices:
66128

67-
```bash
68-
show bfd status dest-ip 10.30.0.65 detail
129+
```Azure CLI
130+
az networkfabric device update-admin-state --resource-group <resource-group> --resource-name <resource-name> --state Enable
69131
```
70-
Ensure that the Micro-BFD sessions are established and operational.
132+
133+
>[!Note]
134+
> For new deployments, this step is not required.
135+
136+
### Step 6: Verify BFD Details
137+
138+
Check BFD peer details using the following command:
139+
140+
```Bash
141+
CE2#show bfd peers dest-ip <dest-bfd-peer-ip> detail
142+
```
143+
144+
>[!NOTE]
145+
> After verifying the configuration on secondary devices, repeat steps 1 to 6 for primary devices (CE1 and PE1).
146+
147+
### Step 7: Ensure Connectivity and BGP Sessions
148+
149+
Ensure connectivity between CE and PE devices is stable, and BGP sessions are established with the appropriate routes.
150+
151+
### Step 8: Enable Micro-BFD Flag
152+
153+
**Contact Microsoft support through a support incident to enable the Micro-BFD feature flag** and this will require a full reconcile with base configuration along with the property of NPB set to true.
154+
155+
### Step 9: Verify Connectivity and BGP Sessions
156+
157+
After enabling the feature flag, confirm that connectivity and BGP sessions remain stable.
158+
159+
### Step 10: Remove configuration from RW config
160+
161+
After the BFD sessions are up, run the following Azure CLI command to remove BFD configurations. This ensures that every full reconcile request does not push the configurations again to the devices.
162+
163+
```Azure CLI
164+
az networkfabric device run-rw --ids /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ManagedNetworkFabric/NetworkDevices/<device-name>-AggrRack-CE1\PE1\CE2\PE2 --rw-command " "
165+
```
166+
167+
### Step 11: Ensure devices are not disturbed
168+
169+
Ensure that devices are not disturbed for Micro-BFD configuration.
71170

72171
## Recovery steps if Micro-BFD is misconfigured
73172

0 commit comments

Comments
 (0)