Skip to content

Commit 3ba6a42

Browse files
authored
Merge pull request #88553 from anhvoms/patch-10
Adding some sample configuration to exclude mlx interfaces
2 parents 6a3cad4 + 05236fd commit 3ba6a42

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

articles/virtual-network/accelerated-networking-overview.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,31 @@ az vm list-skus \
8585

8686
If you're using a custom image and your image supports Accelerated Networking, make sure that you have the required drivers to work with Mellanox ConnectX-3, ConnectX-4 Lx, and ConnectX-5 NICs on Azure. Also, Accelerated Networking requires network configurations that exempt the configuration of the virtual functions (mlx4_en and mlx5_core drivers). In images that have cloud-init >=19.4, networking is correctly configured to support Accelerated Networking during provisioning.
8787

88+
89+
Sample configuration drop-in for NetworkManager (RHEL, CentOS):
90+
```
91+
sudo mkdir -p /etc/NetworkManager/conf.d
92+
sudo cat /etc/NetworkManager/conf.d/99-azure-unmanaged-devices.conf <<EOF
93+
# Ignore SR-IOV interface on Azure, since it'll be transparently bonded
94+
# to the synthetic interface
95+
[keyfile]
96+
unmanaged-devices=driver:mlx4_core;driver:mlx5_core
97+
EOF
98+
```
99+
100+
Sample configuration drop-in for networkd (Ubuntu, Debian, Flatcar):
101+
```
102+
sudo mkdir -p /etc/systemd/network
103+
sudo cat /etc/systemd/network/99-azure-unmanaged-devices.network <<EOF
104+
# Ignore SR-IOV interface on Azure, since it'll be transparently bonded
105+
# to the synthetic interface
106+
[Match]
107+
Driver=mlx4_en mlx5_en mlx4_core mlx5_core
108+
[Link]
109+
Unmanaged=yes
110+
EOF
111+
```
112+
88113
### Regions
89114

90115
Accelerated networking is available in all global Azure regions and Azure Government Cloud.

0 commit comments

Comments
 (0)