Skip to content

Commit 1578d6b

Browse files
authored
Merge pull request #224310 from asudbring/ipv6-linux-dhcp
Fixed Ipv6 DHCP instructions for Ubuntu
2 parents a8a537c + 5b4d63a commit 1578d6b

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

articles/load-balancer/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@
232232
href: move-across-regions-internal-load-balancer-powershell.md
233233
- name: IPv6
234234
items:
235+
- name: Configure DHCPv6 for Linux VMs
236+
href: load-balancer-ipv6-for-linux.md
235237
- name: Public Load Balancer
236238
items:
237239
- name: Standard Public Load Balancer with IPv6 - PowerShell

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

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,42 +28,43 @@ This document describes how to enable DHCPv6 so that your Linux virtual machine
2828
> [!WARNING]
2929
> By improperly editing network configuration files, you can lose network access to your VM. We recommended that you test your configuration changes on non-production systems. The instructions in this article have been tested on the latest versions of the Linux images in the Azure Marketplace. For more detailed instructions, consult the documentation for your own version of Linux.
3030
31-
## Ubuntu (17.10)
31+
## Ubuntu (17.10 or higher)
3232

33-
1. Edit the */etc/dhcp/dhclient6.conf* file, and add the following line:
33+
1. Edit the **`/etc/dhcp/dhclient.conf`** file, and add the following line:
3434

3535
```config
3636
timeout 10;
3737
```
3838
39-
2. Create a new file in the cloud.cfg.d folder that will retain your configuration through reboots. The information in this file will override the default [NETPLAN]( https://netplan.io) config (in YAML configuration files at this location: /{lib,etc,run}/netplan/*.yaml).
39+
2. Create a new file in the cloud.cfg.d folder that will retain your configuration through reboots. **The information in this file will override the default [NETPLAN]( https://netplan.io) config (in YAML configuration files at this location: /etc/netplan/*.yaml)**.
4040
41-
For example, create 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:
41+
Create 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:
4242
4343
```config
44-
network:
44+
network:
4545
version: 2
4646
ethernets:
47-
eth0:
48-
addresses: 172.16.0.30/24
49-
dhcp4: true
50-
dhcp6: true
51-
match:
52-
driver: hv_netvsc
53-
macaddress: 00:00:00:00:00:00
54-
set-name: eth0
47+
eth0:
48+
dhcp4: true
49+
dhcp6: true
50+
match:
51+
driver: hv_netvsc
52+
set-name: eth0
5553
```
5654
57-
The IP address range and MAC address would be specific to your configuration and should be replaced with the appropriate values.
55+
3. Save the file and reboot.
5856
59-
3. Save the file and reboot.
57+
4. Use **`ifconfig`** to verify virtual machine received IPv6 address.
6058
61-
4. Renew the IPv6 address:
59+
If **`ifconfig`** isn't installed, run the following commands:
6260
6361
```bash
64-
sudo ifdown eth0 && sudo ifup eth0
62+
sudo apt update
63+
sudo apt install net-tools
6564
```
66-
65+
66+
:::image type="content" source="./media/load-balancer-ipv6-for-linux/ipv6-ip-address-ifconfig.png" alt-text="Screenshot of ifconfig showing IPv6 IP address.":::
67+
6768
## Debian
6869
6970
1. Edit the */etc/dhcp/dhclient6.conf* file, and add the following line:
146 KB
Loading

articles/virtual-network/ip-services/toc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ items:
167167
- name: Azure PowerShell
168168
href: virtual-networks-static-private-ip-classic-ps.md
169169
- name: Virtual machine scale set with IPv6
170-
href: ipv6-virtual-machine-scale-set.md
170+
href: ipv6-virtual-machine-scale-set.md
171+
- name: Configure DHCPv6 for Linux VMs
172+
href: /azure/load-balancer/load-balancer-ipv6-for-linux?toc=/azure/virtual-network/ip-services/toc.json
171173
- name: Routing preference
172174
items:
173175
- name: Create public IP address

0 commit comments

Comments
 (0)