@aliya.yundt
To configure a network interface for IPv6 on Ubuntu, you can follow these steps:
That's it! Your interface is now configured for IPv6.
@aliya.yundt
Please note that the method mentioned above is one way to configure a network interface for IPv6 on Ubuntu. Another method is to use the netplan configuration file. Here is how you can do it:
1
|
sudo nano /etc/netplan/01-netcfg.yaml |
1 2 3 4 5 6 7 8 |
network:
version: 2
ethernets:
<interface_name>:
dhcp4: no
dhcp6: no
addresses: [<IPv6_address>/<IPv6_netmask>]
gateway6: <IPv6_gateway>
|
Replace <interface_name> with the name of the interface you want to configure, <IPv6_address> with the IPv6 address you want to assign to the interface, <IPv6_netmask> with the netmask of the IPv6 address, and <IPv6_gateway> with the IPv6 address of the gateway.
1
|
sudo netplan apply |
1
|
ip -6 addr show <interface_name> |
This will display the IPv6 address, netmask, and gateway configured for the interface.
Using netplan is the recommended way to configure network interfaces on Ubuntu 18.04 and later versions.