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

Cannot setup static IP address with NetworkManager #12284

Open
alicavus opened this issue Aug 25, 2023 · 0 comments
Open

Cannot setup static IP address with NetworkManager #12284

alicavus opened this issue Aug 25, 2023 · 0 comments

Comments

@alicavus
Copy link

The system does not obey manual IPv4 setup in NetworkManager. Somehow dhcpcd requests dynamic IP address', which leads to nasty behavior as obtaining wrong IP address.
I can't brose web sites and can't perform update with pisi. I can ping the main router or try to access it's web interface with the browser, but can't resolve any website.
If I switch on/off via the NM applet I have very slow connection which is dying after few seconds.

$ sudo nmcli connection show "Wired connection 1":

ipv4.method:                            manual
ipv4.dns:                               208.67.222.222,192.168.2.1
ipv4.addresses:                         192.168.2.21/24
ipv4.gateway:                           192.168.2.1

If I configure static IP address' in /etc/dhcpcd.conf:

interface p3p1
    static ip_address=192.168.2.21/24
    static routers=192.168.2.1
    static domain_name_servers=192.168.2.1

or directly call dhcpcd itself:

$ sudo dhcpcd -S ip_address=192.168.2.21/24 -S routers=192.168.2.1 -S domain_name_servers=192.168.2.1 -s 192.168.2.21/24  p3p1

then everything is fine.

I don't messed with service dhcpcd, it's unchanged since I installed the system.

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