Re: switching to DHCP in a clean manner ...
On Sun, Feb 24, 2008 at 10:04:38PM +0000, Glenn Becker wrote:
>
> Hi all -
>
> I just moved from the NY metro area to the Boston metro area, and in the
> process changed ISPs. My service is now significantly faster and cheaper,
> but my account now assigns IPs dynamically -- previously, I'd had a static
> IP.
>
> I have the /option/ with the new provider to get a static IP but I decided
> to try the DHCP thing since the static is an extra charge ... all I have
> done is add the line "exec dhclient" to /etc/rc.local. Now, this _works_,
> but I don't know that it is the best solution and I suspect I may have
> config files in there with the old IP/gate/and so forth numbers in them.
> It has been so long since I set that networking up that I've kind of
> forgotten the Best Way to Do It ... and the best way to clean it up and
> switch over to something else.
>
> Can someone point me toward a good doc to read on this, or let me know if
> I am going about this in an absurdly inelegant way. Like I say, it works
> but I don't know that it is as good as it could be.
My quick anxiety-reliever in these situations is always grep.
Something like grep -rn 12.34.56.789 /etc/*
using your old IP will find orphaned mentions.
Someone wiser will give you a real answer...
--
richard
Reply to: