Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5244

Networking and servers • Re: Pi5 eth0 receiving external (Read Wan IP) address when router restarts

$
0
0
One other tip, you can push NM to renew the DHCP lease with the following (substitute your NM connection name). It doesn't seem to need to be taken down first, just doing "up" on an already up interface seems to be sufficient to trigger a DHCP refresh/renew.

Code:

sudo nmcli connection up "Wired connection 1"
As a sort of bsnd aid i used nmcli to set a static ip and low and behold it played nice. Never lost the ip and consequently didnt receive the external one.

Thanks for pointing the way.

Statistics: Posted by Lordjohn68 — Fri Oct 11, 2024 11:33 pm



Viewing all articles
Browse latest Browse all 5244

Trending Articles