[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DHCP hostname...



Greetings;


My Setup: 

I have several machines on my LAN, one OpenBSD box that serves as a
SQUID proxy server, Samba & NFS file server, and DHCP server, which
services my two Solaris boxes, single Linux workstation, and single
Winblows 98 box.  I have another OpenBSD box that acts as a gateway for
my LAN, it also provides SMTP, IMAP, NAT, and HTTP services for my the
various domains I run.  

On the gateway, I have two NICs, one is an NE2000, the other is a 3C509;
the 3C509 is configured as the "public" address and uses DHCP to get an
IP lease from my ISP (who recently bailed from the @home fall-out.)



The Problem:

When I originally setup the gateway (an OpenBSD 3.0 box), I was doing
this with a friend of mine, who provided me with his account # for our
ISP because I couldn't remember my own account number.  NOW, whenever
the gateway box reboots, it re-leases an IP address under the friend's
account number and sets my hostname accordingly (i.e. *his* account
number.)  The PROBLEM is, at this point, I'm dependant on my friend's
continued cable service, or my lease will no longer work, because my
hostname is set to his account number.

I've tried to reset the hostname for my lease via the /etc/hostname.*
files, as well as by manually setting the hostname with /bin/hostname;
neither seems to be effective in communicating the change in accounts
with the ISP... I presume this is because the ISP has a lease existing
for my friend's account number, and thus whenever my gateway box
requests a lease, the ISP associates my MAC w/ his account.



The Question:

How can I trick my ISP in to relinquishing the lease for my MAC on my
friend's account without: a) relinquishing my current IP, and b) having
to go through my ISP?




I have looked at the man pages for hostname(1), hostname.if(5), and
numerous others... this doesn't seem to be something I can set locally
short of releasing my DHCP lease and renewing with my account # as the
hostname -- which I don't want to do because of the interruption of
service I would experience on my email account in addition to the
availability of my domains.




Anywhoo, I've had too much to drink and its late, so... anyone who wants
to answer, post to the list... (`flames | /dev/null`)
 
yeah, so, good day.

-C
-- 
csteele@sodaphish.com | http://sodaphish.com
icq: 1151157, msn: mou5hou@hotmail.com, yahoo: coreyjsteele

"We're the most privileged generation in the history of 
Western Civilization, and we're pissed about it."