Summary: | RFE: systemd-networkd: changing the ip in a .network unit and restarting the networkd service should configure the interface | ||
---|---|---|---|
Product: | systemd | Reporter: | Brian "Redbeard" Harrington <brian.harrington> |
Component: | general | Assignee: | Tom Gundersen <teg> |
Status: | RESOLVED NOTABUG | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | brandon, jonathanboulle |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Brian "Redbeard" Harrington
2014-04-03 17:47:30 UTC
Note: Other changes are propagated. e.g. You'll notice that the static config defined below didn't include a: [Network] DNS= Entry. When the restart occurred this blew away the DHCP configured resolv.conf. Creating this entry and restarting systemd-networkd.service again properly populated the new resolv.conf entry. At the moment, we really only support static setups and dynamic reconfiguration at run-time needs more work. Just realised: could this be a limitation of "ifconfig"? I.e., the situation is currently that networkd will only add adresses, and never tear them down, so in your situation you should actually end up with both the old and the new address (until you reboot, at which point you'll only have the new one). I'm not sure if ifconfig will print all your addresses though... Could you try "ip address show dev ens3"? Tom Gundersen, you are correct. "ip address show dev wlan0" in my case shows both ips. Restarting networkd adds cofig, but does not remove it. This is currently as expected. The problem observed here is ifconfig not able to show all ip addresses (don't use ifconfig, it has lots of issues). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.