Skip to content

Commit 4c7dfab

Browse files
authored
Merge pull request #220211 from mbender-ms/lb-dhcpv6
Load Balancer - Update for Ubuntu config for DHCPv6
2 parents fa5ed3b + 6eafa57 commit 4c7dfab

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

articles/load-balancer/load-balancer-ipv6-for-linux.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ author: mbender-ms
88
keywords: ipv6, azure load balancer, dual stack, public ip, native ipv6, mobile, iot
99
ms.service: load-balancer
1010
ms.topic: article
11-
ms.custom: seodec18
11+
ms.custom: FY23 content-maintenance
1212
ms.tgt_pltfrm: na
1313
ms.workload: infrastructure-services
14-
ms.date: 03/22/2019
14+
ms.date: 12/02/2022
1515
ms.author: mbender
1616
---
1717

1818
# Configure DHCPv6 for Linux VMs
1919

2020

21-
Some of the Linux virtual-machine images in the Azure Marketplace do not have Dynamic Host Configuration Protocol version 6 (DHCPv6) configured by default. To support IPv6, DHCPv6 must be configured in the Linux OS distribution that you are using. The various Linux distributions configure DHCPv6 in a variety of ways because they use different packages.
21+
Some of the Linux virtual-machine images in the Azure Marketplace don't have Dynamic Host Configuration Protocol version 6 (DHCPv6) configured by default. To support IPv6, DHCPv6 must be configured in the Linux OS distribution that you're using. The various Linux distributions configure DHCPv6 in various ways because they use different packages.
2222

2323
> [!NOTE]
2424
> Recent SUSE Linux and CoreOS images in the Azure Marketplace have been pre-configured with DHCPv6. No additional changes are required when you use these images.
@@ -36,26 +36,35 @@ This document describes how to enable DHCPv6 so that your Linux virtual machine
3636
timeout 10;
3737
```
3838
39-
2. Edit the network configuration for the eth0 interface with the following configuration:
39+
1. Edit the network configuration for the eth0 interface with the following configuration:
4040
4141
* On **Ubuntu 12.04 and 14.04**, edit the */etc/network/interfaces.d/eth0.cfg* file.
42-
* On **Ubuntu 16.04**, edit the */etc/network/interfaces.d/50-cloud-init.cfg* file.
42+
* On **Ubuntu 16.04**, create a new override file in the cloud.cfg.d folder that will retain your configuration, for example a */etc/cloud/cloud.config.d/91-azure-network.cfg* file. Ensure that "dhcp6: true" is reflected under the required interface, as shown by the sample below:
4343
4444
```config
4545
iface eth0 inet6 auto
4646
up sleep 5
4747
up dhclient -1 -6 -cf /etc/dhcp/dhclient6.conf -lf /var/lib/dhcp/dhclient6.eth0.leases -v eth0 || true
48+
49+
network:
50+
ethernets:
51+
eth0:
52+
addresses: 172.16.0.30/24
53+
dhcp4: true
54+
dhcp6: true
4855
```
4956
50-
3. Renew the IPv6 address:
57+
1. Save the file and reboot.
58+
59+
1. Renew the IPv6 address:
5160
5261
```bash
5362
sudo ifdown eth0 && sudo ifup eth0
5463
```
5564
5665
Beginning with Ubuntu 17.10, the default network configuration mechanism is [NETPLAN]( https://netplan.io). At install/instantiation time, NETPLAN reads network configuration from YAML configuration files at this location: /{lib,etc,run}/netplan/*.yaml.
5766
58-
Please include a *dhcp6:true* statement for each ethernet interface in your configuration. For example:
67+
Include a *dhcp6:true* statement for each ethernet interface in your configuration. For example:
5968
6069
```config
6170
network:
@@ -76,15 +85,15 @@ For reference information about NETPLAN, see https://netplan.io/reference.
7685
timeout 10;
7786
```
7887
79-
2. Edit the */etc/network/interfaces* file, and add the following configuration:
88+
1. Edit the */etc/network/interfaces* file, and add the following configuration:
8089
8190
```config
8291
iface eth0 inet6 auto
8392
up sleep 5
8493
up dhclient -1 -6 -cf /etc/dhcp/dhclient6.conf -lf /var/lib/dhcp/dhclient6.eth0.leases -v eth0 || true
8594
```
8695
87-
3. Renew the IPv6 address:
96+
1. Renew the IPv6 address:
8897
8998
```bash
9099
sudo ifdown eth0 && sudo ifup eth0
@@ -98,66 +107,66 @@ For reference information about NETPLAN, see https://netplan.io/reference.
98107
NETWORKING_IPV6=yes
99108
```
100109
101-
2. Edit the */etc/sysconfig/network-scripts/ifcfg-eth0* file, and add the following two parameters:
110+
1. Edit the */etc/sysconfig/network-scripts/ifcfg-eth0* file, and add the following two parameters:
102111
103112
```config
104113
IPV6INIT=yes
105114
DHCPV6C=yes
106115
```
107116
108-
3. Renew the IPv6 address:
117+
1. Renew the IPv6 address:
109118
110119
```bash
111120
sudo ifdown eth0 && sudo ifup eth0
112121
```
113122
114123
## SLES 11 and openSUSE 13
115124
116-
Recent SUSE Linux Enterprise Server (SLES) and openSUSE images in Azure have been pre-configured with DHCPv6. No additional changes are required when you use these images. If you have a VM that's based on an older or custom SUSE image, do the following:
125+
Recent SUSE Linux Enterprise Server (SLES) and openSUSE images in Azure have been pre-configured with DHCPv6. No other changes are required when you use these images. If you have a VM that's based on an older or custom SUSE image, follow the steps below:
117126
118127
1. Install the `dhcp-client` package, if needed:
119128
120129
```bash
121130
sudo zypper install dhcp-client
122131
```
123132
124-
2. Edit the */etc/sysconfig/network/ifcfg-eth0* file, and add the following parameter:
133+
1. Edit the */etc/sysconfig/network/ifcfg-eth0* file, and add the following parameter:
125134
126135
```config
127136
DHCLIENT6_MODE='managed'
128137
129138
130-
3. Renew the IPv6 address:
139+
1. Renew the IPv6 address:
131140
132141
```bash
133142
sudo ifdown eth0 && sudo ifup eth0
134143
```
135144
136145
## SLES 12 and openSUSE Leap
137146
138-
Recent SLES and openSUSE images in Azure have been pre-configured with DHCPv6. No additional changes are required when you use these images. If you have a VM that's based on an older or custom SUSE image, do the following:
147+
Recent SLES and openSUSE images in Azure have been pre-configured with DHCPv6. No other changes are required when you use these images. If you have a VM that's based on an older or custom SUSE image, follow the steps below:
139148
140149
1. Edit the */etc/sysconfig/network/ifcfg-eth0* file, and replace the `#BOOTPROTO='dhcp4'` parameter with the following value:
141150
142151
```config
143152
BOOTPROTO='dhcp'
144153
```
145154
146-
2. To the */etc/sysconfig/network/ifcfg-eth0* file, add the following parameter:
155+
1. To the */etc/sysconfig/network/ifcfg-eth0* file, add the following parameter:
147156
148157
```config
149158
DHCLIENT6_MODE='managed'
150159
```
151160
152-
3. Renew the IPv6 address:
161+
1. Renew the IPv6 address:
153162
154163
```bash
155164
sudo ifdown eth0 && sudo ifup eth0
156165
```
157166
158167
## CoreOS
159168
160-
Recent CoreOS images in Azure have been pre-configured with DHCPv6. No additional changes are required when you use these images. If you have a VM based on an older or custom CoreOS image, do the following:
169+
Recent CoreOS images in Azure have been pre-configured with DHCPv6. No other changes are required when you use these images. If you have a VM based on an older or custom CoreOS image, follow the steps below:
161170
162171
1. Edit the */etc/systemd/network/10_dhcp.network* file:
163172
@@ -169,7 +178,7 @@ Recent CoreOS images in Azure have been pre-configured with DHCPv6. No additiona
169178
DHCP=ipv6
170179
```
171180
172-
2. Renew the IPv6 address:
181+
1. Renew the IPv6 address:
173182
174183
```bash
175184
sudo systemctl restart systemd-networkd

0 commit comments

Comments
 (0)