You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/load-balancer/load-balancer-ipv6-for-linux.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,42 +28,43 @@ This document describes how to enable DHCPv6 so that your Linux virtual machine
28
28
> [!WARNING]
29
29
> 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.
30
30
31
-
## Ubuntu (17.10)
31
+
## Ubuntu (17.10 or higher)
32
32
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:
34
34
35
35
```config
36
36
timeout 10;
37
37
```
38
38
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)**.
40
40
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:
42
42
43
43
```config
44
-
network:
44
+
network:
45
45
version: 2
46
46
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
55
53
```
56
54
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.
58
56
59
-
3. Save the file and reboot.
57
+
4. Use **`ifconfig`** to verify virtual machine received IPv6 address.
60
58
61
-
4. Renew the IPv6 address:
59
+
If **`ifconfig`** isn't installed, run the following commands:
62
60
63
61
```bash
64
-
sudo ifdown eth0 && sudo ifup eth0
62
+
sudo apt update
63
+
sudo apt install net-tools
65
64
```
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
+
67
68
## Debian
68
69
69
70
1. Edit the */etc/dhcp/dhclient6.conf* file, and add the following line:
0 commit comments