Skip to content

Commit 05236fd

Browse files
authored
Adding some sample configuration to exclude mlx interfaces
1 parent ed2669b commit 05236fd

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
@@ -73,6 +73,31 @@ Support for Accelerated Networking can be found in the individual [virtual machi
7373

7474
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.
7575

76+
77+
Sample configuration drop-in for NetworkManager (RHEL, CentOS):
78+
```
79+
sudo mkdir -p /etc/NetworkManager/conf.d
80+
sudo cat /etc/NetworkManager/conf.d/99-azure-unmanaged-devices.conf <<EOF
81+
# Ignore SR-IOV interface on Azure, since it'll be transparently bonded
82+
# to the synthetic interface
83+
[keyfile]
84+
unmanaged-devices=driver:mlx4_core;driver:mlx5_core
85+
EOF
86+
```
87+
88+
Sample configuration drop-in for networkd (Ubuntu, Debian, Flatcar):
89+
```
90+
sudo mkdir -p /etc/systemd/network
91+
sudo cat /etc/systemd/network/99-azure-unmanaged-devices.network <<EOF
92+
# Ignore SR-IOV interface on Azure, since it'll be transparently bonded
93+
# to the synthetic interface
94+
[Match]
95+
Driver=mlx4_en mlx5_en mlx4_core mlx5_core
96+
[Link]
97+
Unmanaged=yes
98+
EOF
99+
```
100+
76101
### Regions
77102

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

0 commit comments

Comments
 (0)