Page 1 of 1

Forcing a new IP address from a provider

Posted: Tue May 26, 2020 6:49 pm
by stuartbh
Gargoyle users,

In many instances (certainly in the case of my ISP) they issue you an IP address via DHCP from their router. So long as you keep renewing the lease you keep getting the same IP address. However, if you want to change your IP address the easiest way to do this is as follows hereupon (and can be scripted and executed via cron):

ifconfig eth1.2 hw ether DE:FD:AD:BA:DC:AB
/etc/init.d/network restart

I am not sure if a network restart would do too, but you could also add to the script this:

/etc/init.d/ddns_gargoyle restart


This apparently resets your MAC address back to your factory MAC address and then requests a new IP address.

Interesting!

Re: Forcing a new IP address from a provider

Posted: Wed May 27, 2020 1:37 am
by ispyisail
+1