Bug #172
Make sure IPv6 is working on a clean ubuntu 18.04 install
Status: | Feedback | Start: | 2018-11-13 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned to: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
Votes: | 0 |
Description
Ubuntu switched to netplan for network configuration as of 18.04. This seems to write a netplan configuration file /etc/netplan/01-netcfg.yaml containing network settings from the installer environment, but only for IPv4. The result is a VPS that is only configured for IPv4, leaving the user to configure IPv6.
Debian guests are still using ifupdown as configured by /etc/network/interfaces and there, IPv6 is expected to work immediately from install.
The Ubuntu installer should be fixed to make IPv6 work, either by configuring netplan or reverting to ifupdown.
History
Updated by admin over 6 years ago
Am not getting any feedback on which way I should go with this. Despite me saying I would not personally recommend netplan (or systemd-networkd) for servers, I'm hedging towards having Ubuntu 18.04+ be configured that way because that is what Ubuntu wants to do.
I have to think about what a novice would expect, and generally they would expect an operating system to behave how it would on a bare metal install. Any deviation from the default setup needs to be carefully considered as it will inevitably be a source of confusion. I have a lot of personal views on how things should differ from default configuration but it is not for me to enforce those.
Customers on earlier Ubuntu releases who are using ifupdown (/etc/network/interfaces) may be surprised that 18.04 and beyond change to netplan, but at least that is the documented behaviour for Ubuntu, so when they have a problem and search around they should find consistent answers. They can then decide if they want to remove netplan and go back to ifupdown.
If the self-install sticks with netplan then aside from fixing it so it sets up IPv6 and any IPv4 additional addresses, I will also need to update the wiki documentation at https://tools.bitfolk.com/wiki/IPv6 for the different Ubuntu instructions.
Updated by admin over 6 years ago
- Status changed from New to Feedback
The post-install script of the Ubuntu installer now generates a working netplan config for IPv4 and IPv6. Package netplan.io is installed by default on a new Ubuntu installer, and ifupdown is not present.
The generated /etc/netplan/01-netcfg.yaml configures all IPv4 addresses and the ::2/64 IPv6 address. It doesn't add anything for any additional /56 that customers may have.