On Mon, 2018-12-24 at 08:03 +0000, Usyskin, Alexander via
networkmanager-list wrote:
> Hi
> 
> I'm trying to force DHCP lease renew for specific interface.
> Basically replicate in Linux IpRenewAddress function from Win32 API.
> Without NetworkManager it's fairly simple, like "dhclient -r eth4 &&
> dhclient -1 eth4".
> But NetworkManager manages dhclient in different way, so that lead to
> an unexpected consequences.
> 
> I can't find a way to ask NetworkManager to forcefully renew the
> lease. Neither through DBus API, nor from command line.
> Is there any way to do such thing?
> If not, how can I file an enhancement request?
> 
> Please CC me on reply, I'm not subscribed to this list.
> 
Hi,


$ nmcli device reapply $IFNAME

(or, on D-Bus, via Device's Reapply() method).


(or, fully reactivate the profile, like)

  nmcli connection up "$PROFILE"


best,
Thomas

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to