Forcing a new IP address from a provider

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
stuartbh
Posts: 76
Joined: Sun Oct 20, 2019 4:18 pm

Forcing a new IP address from a provider

Post 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!
Very Respectfully,

Stuart, N3GWG
Computer Scientist

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Forcing a new IP address from a provider

Post by ispyisail »

+1

Post Reply