[Bug 2070434] Re: Configurate a IPv6 only and IPv4 disabled networking by netplan
Lukas Märdian
2070434 at bugs.launchpad.net
Mon Jul 8 14:34:37 UTC 2024
I'm closing this ticket in favour of the support request (question)
linked from the comment above.
** Changed in: netplan.io (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2070434
Title:
Configurate a IPv6 only and IPv4 disabled networking by netplan
Status in netplan.io package in Ubuntu:
Invalid
Bug description:
Hi all,
We want to set up an IPv6-only network in a lab, and some Ubuntu ( release >=18.04) needs to be configured according to the networking requirements. I found a Netplan doc about disabling ipv6 by editing the Netplan YAML file:
https://github.com/canonical/netplan/blob/main/doc/netplan-tutorial.md#editing-netplan-yaml-files-to-disable-ipv6
===
When you finish, the whole configuration in second-interface.yaml should look like this:
network:
version: 2
ethernets:
enp6s0:
dhcp4: true
accept-ra: false
link-local: []
===
can I use the same way to disable IPv4? e.g.
network:
version: 2
ethernets:
eth0:
dhcp4: false
dhcp6: true
accept-ra: false
link-local: [ipv6]
Or are there other ways to disable ipv4 on Ubuntu?
In addition, Ubuntu 18.04 uses ifupdown with /etc/network/interfaces to configure the networking
e.g.
===
iface lo inet loopback
auto lo
auto eth0
iface eth0 inet manual
iface eth0 inet6 dhcp
netmask 16
accept_ra 1
autoconf 1
===
Can I add 'iface eth0 inet manual' in this file to disable IPv4?
Thanks,
Thanks,
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2070434/+subscriptions
More information about the foundations-bugs
mailing list