Renew IP Address from Command LIne?


Recommended Posts

  • 3 years later...
  • 3 weeks later...

I wasn't able to figure out how to do it from the command line but you can trigger unraid to refresh the DHCP lease by going to network settings and then changing a setting and then just changing it back and then, finally, hitting apply. The big downside to that is you have to stop(or disable?) docker and VMs in order to have it let you do it.

 

  • Thanks 1
Link to comment
  • 6 months later...
  • 4 months later...
  • 5 months later...
  • 6 months later...

 

On 4/1/2021 at 2:32 PM, crenn said:

I apologise for the necro, but came across this thread when I was trying to do the same. This command worked for me on 6.9.0:

 

ifconfig br0 down && ifconfig br0 up

 

I also noted there is /sbin/dhcpcd. So that could also be used but haven't tried it.

 

I wanted to share this command runs fine in my situation. However, unRaid still did not take the new IP address I told pi-hole to give it. unRaid is still using a random one it got yesterday.

Edit: I wish a saw the save button in the pi-hole interface sooner. THIS COMMAND WORKS!!!!

Edited by johnny5
addition
Link to comment
  • 9 months later...
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.