[PATCH phosphor-networkd] AddAddress4 not setting the new IP

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Feb 2 11:30:27 AEDT 2016


Just a few changes to make it work...

1) Ensure the .network file is a known name.  It must be
   deleted before the new .network file is added since
   the other file also had the same interface and priority level
2) I got on the systemd channel because restarting the systemd
   service does not change the ip address.  You needed to
   flush the ip instead.

Notes on the networkd subject from the IRC channel...
>From the systemd-networkd manpage... "Network configurations applied
 before networkd is started are not removed"

I also learned from the IRC to use the 'ip addr flush <device>' to
force the network cleanup.  ...

<causten__> danderson, so if I setup a server on one subnet, rebooted, then wanted to change the ip I couldn't do it without rebooting?
<causten__> is there a workaround?  I mean switching ips in a lab to a different subnet is common
<danderson> either that, or manually clean up the interface configuration before restarting networkd
<danderson> i.e. `ip addr del 1.2.3.4 dev eno1` or whatever
<danderson> alternatively, you may want to just use a different network configuration manager (e.g. arch's netctl, or network-manager), if your use case is more complex
<danderson> networkd is by design aimed at one-time configuration on startup, and minor maintenance like keeping DHCP going

https://github.com/openbmc/phosphor-networkd/pull/2

Chris Austen (1):
  AddAddress4 not setting the new IP

 netman.py | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

-- 
2.6.4




More information about the openbmc mailing list