Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Oct 2017 19:58:16 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        Mike <the.lists@mgm51.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: forcing new dynamic ip address
Message-ID:  <59DABB98.6040009@gmail.com>
In-Reply-To: <259de481-2286-589f-ae18-8922d473813e@mgm51.com>
References:  <59DA19E8.5000602@gmail.com> <259de481-2286-589f-ae18-8922d473813e@mgm51.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike wrote:
> On 10/8/2017 8:28 AM, Ernie Luzar wrote:
>> Hello List;
>>
>> I have a "home service" account from my ISP. The ISP issues an dynamic 
>> ip address which has not changed in 12 years.
>>
>> My host has 2 NICs, one which is not used. I know if I plug the internet 
>> cable into the un-used NIC and make the appropriate config changes and 
>> reboot I will get a different dynamic ip address.
>>
>> Is there a simpler way to expire the lease to force the ISP dhcp to 
>> refresh with a different dynamic ip address?
>>
>> The goal is to have a cron job that gets a different dynamic ip address 
>> assigned to my host's front door every a week.
>>
>> Just another level of security to make it very hard for the script 
>> kiddies from finding any open ports I may have.
>>
>> Thanks for the help.
> 
> 
> I have a few old NICs that i keep, not because I need to use them, but
> because i want to be able to use their MAC address.
> 
> Then I use one of the MAC addresses in rc.conf, e.g.,
> 
> ifconfig_em0="DHCP lladdr yo:ur:MA:C:ad:dr:es"
> 
> My ISP assigns a new IP address when the DHCP server sees a new MAC address.
> 
>

Thank you. This is the solution I was looking for. I tested it and it 
works. But I have to first cycle the cable modem's power off/on to 
signal the isp network that new hardware is being used and prepare to do 
  dhcp function.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59DABB98.6040009>