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

Static IP configuration does not work on raspbian #24

Open
f34rdotcom opened this issue Dec 12, 2017 · 3 comments
Open

Static IP configuration does not work on raspbian #24

f34rdotcom opened this issue Dec 12, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@f34rdotcom
Copy link
Contributor

After setting a static ip address multiple lines of configuration are written to /etc/network/interfaces file but the /etc/dhcpcd.conf is not touched on raspbian. This results in no change in network configuration.

This is what is needed at the end of /etc/dhcpcd.conf
interface eth0
static ip_address=1.2.3.4/24
static routers=1.2.3.4
static domain_name_servers=1.2.3.4

@ghost
Copy link

ghost commented Dec 31, 2018

This is frustrating as clearly Raspbian and other Debian linux derivatives are no longer using the /etc/network/interfaces file to configure static IPs rather they are using the /etc/dhcpcd.conf file but the WebApp is definitely trying to edit the former interfaces file. I am rather surprised that this has been reported a year ago and yet is still not resolved.

@f34rdotcom f34rdotcom self-assigned this Dec 31, 2018
@f34rdotcom f34rdotcom added this to the Code review milestone Dec 31, 2018
@f34rdotcom
Copy link
Contributor Author

I wish they would simply add the ability to edit this file on a fat partition like they did with wpa_supplicant.conf on the root partition.

From https://www.raspberrypi.org/blog/another-update-raspbian/
"If a wpa_supplicant.conf file is placed into the /boot/ directory, this will be moved to the /etc/wpa_supplicant/ directory the next time the system is booted, overwriting the network settings; this allows a Wifi configuration to be preloaded onto a card from a Windows or other machine that can only see the boot partition."

@f34rdotcom
Copy link
Contributor Author

TODO: Switch to using nmcli to set static or dynamic ip and other network settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants