:: home : bio : blog
A storm in the distance, hopefully receding.
November
Sun Mon Tue Wed Thu Fri Sat
     
12
   

Contact


 

Archives

Recent Posts

Sun, 12 Nov 2023
WILL: Release an IP Address
# 06:54 in ./tech

If you use DHCP anywhere, you know that the server sends network configuration to you, the client, to set up things like your IP address, gateway, DNS server etc. An essential service today for most devices. What if you change something in the server and need to refresh these settings?

On Linux when using the NetworkManager program to deal with networking, you can easily release and refresh the configured settings using the NM command line tool nmcli. See what network conections are present :

nmcli connection show

Identify the network you want to refresh ("NAME") and switch it off ("down") :

nmcli connection down id "NAME"
Replace "NAME" with the name of the conection (you will need quotes if there are any spaces in the name of the connection).

Turn it back on ("up") :

nmcli connection up id "NAME"

This should refresh your network configuration to reflect the server change you have made.

References:

Putting my "What I learned Today" efforts in the shade is Josh Branchaud's "Today I Learned" (TIL) repository of useful knowledge. He's been adding to this for quite a few years and it's a very impressive collection. It's on Github.


© Alastair Sherringham 2023
Powered by Blosxom.
Still going after all these years.