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

Change DHCP to static IP after first boot #187

Closed
Octoate opened this issue Oct 15, 2020 · 1 comment
Closed

Change DHCP to static IP after first boot #187

Octoate opened this issue Oct 15, 2020 · 1 comment

Comments

@Octoate
Copy link

Octoate commented Oct 15, 2020

Hi,
I know that there are already some other issues here (e.g. #183), that are similar to my question, but I want to change the IP address from DHCP assigned to static (and vice versa) after the system was configured during the first boot. Normally I would just change the file in /etc/network/interfaces.d called "50-cloud-init.cfg", but it didn't work. Also changing the addresses in /etc/dhcpcd.conf did't work (it also seems that the service isn't running, if I type in "sudo service --status-all") and finally changing "/boot/network-config" also didn't work. So I am a little bit lost here. Does anybody know how to change the IP address on a running system?

I am using Hypriot v1.12.3 and flash v2.7.1.

@Octoate
Copy link
Author

Octoate commented Oct 15, 2020

Ok, finally got it working. I change the file "/etc/network/interfaces.d/50-cloud-init.cfg" and do a restart afterwards. "sudo service networking restart" was not sufficient. It then works...

@Octoate Octoate closed this as completed Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant