Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling IPv6 #522

Open
matteoiacovitti opened this issue Jun 5, 2020 · 4 comments
Open

Disabling IPv6 #522

matteoiacovitti opened this issue Jun 5, 2020 · 4 comments

Comments

@matteoiacovitti
Copy link

Hello,

Is there a way to disable IPv6 at bootup? I have tried using /etc/sysctl.d conf files and NetworkManager connections files but none seem to work.

I saw that you could modify the GRUB to include ipv6.disable=1 but I'm not sure if you can do that with the ignition.

What would be the appropriate and most efficient method to achieve this?

@matteoiacovitti matteoiacovitti changed the title Disabling IPv6 Disabling IPv6 in Fedora CoreOS 31 Jun 5, 2020
@jlebon
Copy link
Member

jlebon commented Jun 15, 2020

Is there a way to disable IPv6 at bootup? I have tried using /etc/sysctl.d conf files and NetworkManager connections files but none seem to work.

That should work normally. What you're probably hitting up against is that Ignition itself needs networking on first boot and by default will try to DHCP over IPv6. We're working on dropping that requirement when possible (#443) so that you can boot without starting networking at all until Ignition has written out files.

What platform are you on?

I saw that you could modify the GRUB to include ipv6.disable=1 but I'm not sure if you can do that with the ignition.

Not yet, but it's on the roadmap. :) The current way to do this for now is a systemd service with ConditionFirstBoot=true which runs rpm-ostree kargs --reboot ....

@cgwalters
Copy link
Member

You can also use the Live ISO.

@matteoiacovitti
Copy link
Author

You can also use the Live ISO.

What do you mean?

@cgwalters
Copy link
Member

A lot of related discussion in

openshift/enhancements#210
coreos/ignition#979
openshift/enhancements#291

We still need to distill some of the core bits down into https://docs.fedoraproject.org/en-US/fedora-coreos/bare-metal/#_installing_from_live_iso but basically you use coreos-installer iso embed to write an Ignition config which runs coreos-installer which can in turn configure networking how you want via propagating networking.

@bgilbert bgilbert changed the title Disabling IPv6 in Fedora CoreOS 31 Disabling IPv6 Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants