Re: howto keep always ipv4ll address
Okay, it was not as easy as just killing avahi-autoipd service when up (or any dhcp) event took place in dispatcher. This approach led to new ipv4ll address because, when avahi-autoipd re-started some other party reported "conflict" with that old address and avahi-autoipd selected new one. This was not what I wanted. So, instead of killing avahi-autoipd, I just executed /etc/avahi/avahi-autoipd.action script with BIND mode provided that avahi-autoipd was found from ps list bound to valid address. Other-vice I restarted avahi-autoipd like the original plan was. -Matti 2016-04-15 20:33 GMT+03:00 matti kaasinen : > > 2016-04-15 19:22 GMT+03:00 Thomas Haller : > >> Also, "eth0:avahi" sounds more like an interface-alias. That is not a >> separate (real) interface, just one address that is show by ifconfig >> tool as a separate interface (but it isn't). See `ip addr show`. >> > > > Interface alias is goodenough for me as along as it responds to both > addresses as it does by my experience. > ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: howto keep always ipv4ll address
2016-04-15 19:22 GMT+03:00 Thomas Haller : > Also, "eth0:avahi" sounds more like an interface-alias. That is not a > separate (real) interface, just one address that is show by ifconfig > tool as a separate interface (but it isn't). See `ip addr show`. > Interface alias is goodenough for me as along as it responds to both addresses as it does by my experience. ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: howto keep always ipv4ll address
2016-04-15 19:28 GMT+03:00 Dan Williams : > To clarify, not possible on NM 0.9.8. NM 0.9.10 and later make large > efforts to preserve configuration made outside NM. > > Unfortunately I have to cope with this version for a while. Arago project just started to work on Yocto version 2.1 that has much newer NM - takes several months to get stabile release. > > But I think it could be handled with dispatcher scripts too that would > spawn avahi-autoipd --force-bind on the interface that has just been > upped by NM. > OK. Actually this command is what I used as avahi-autoipd start command. I suppose it is enough just to kill avahi-autoipd as systemd service unit starting avahi-autoipd has Restart property. However, it is not quite clear for me, which evet I should hook this kill command. ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: howto keep always ipv4ll address
On Fri, 2016-04-15 at 18:22 +0200, Thomas Haller wrote: > On Fri, 2016-04-15 at 13:36 +0300, matti kaasinen wrote: > > > > Hi! > > > > Is there way to tell NM (v.0.9.8.10) not to drop ipv4ll address = > > eth0:avahi interface. > I don't think that is possible. To clarify, not possible on NM 0.9.8. NM 0.9.10 and later make large efforts to preserve configuration made outside NM. > > > > > It seems that this dropping happens immediately when dhcp lease is > > gained. What harm it would do just preserving this interface alias? > When NetworkManager manages a device, it deletes other addresses on > that interface because it doesn't know why they are there. > > > On newer versions of NetworkManager, if you add an address (link- > local > or not), after NetworkManager activated the device, it would keep it. > But also there is a race involved, in that the address must not be > added before NetworkManager starts configuring the interface > initially. This actually sounds like the RFEs we've had for a while to allow multiple addressing schemes. eg instead of "link-local only" allow both "auto" and link-local in parallel. Maybe? But I think it could be handled with dispatcher scripts too that would spawn avahi-autoipd --force-bind on the interface that has just been upped by NM. Dan ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: howto keep always ipv4ll address
On Fri, 2016-04-15 at 13:36 +0300, matti kaasinen wrote: > Hi! > > Is there way to tell NM (v.0.9.8.10) not to drop ipv4ll address = > eth0:avahi interface. I don't think that is possible. > It seems that this dropping happens immediately when dhcp lease is > gained. What harm it would do just preserving this interface alias? When NetworkManager manages a device, it deletes other addresses on that interface because it doesn't know why they are there. On newer versions of NetworkManager, if you add an address (link-local or not), after NetworkManager activated the device, it would keep it. But also there is a race involved, in that the address must not be added before NetworkManager starts configuring the interface initially. Basically, NM doesn't know, what to do with this address and deletes it. Also, "eth0:avahi" sounds more like an interface-alias. That is not a separate (real) interface, just one address that is show by ifconfig tool as a separate interface (but it isn't). See `ip addr show`. Thomas signature.asc Description: This is a digitally signed message part ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list