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

Re: static IP/hostname, everything else from DHCP?



On Sat, Feb 05, 2005 at 03:56:31PM +0000, David Hugh-Jones wrote:
> Hi guys
> 
> I have a D-link DI614+ wireless router, and a desktop computer which
> connects to this. I would like it to receive information from DHCP
> (passed along from the network DHCP server, to the router, to my
> desktop). But I would also like it to have a given hostname - and I
> would like the router to know this address so that I can reach my
> desktop from other computers attached to the router.
> 
> I've tried adding
> send host-name "foo";
> to /etc/dhclient.conf
> but this doesn't get picked up by the router.

I believe you would want something like this for starters:
host myrouter {
  hardware ethernet 0a:06:02:d6:94:72;
  fixed-address 10.4.22.1;
}


see man dhcpd.conf ... you don't want to be messing with the client
for this, you can do this on the server.


-- 
  _   _   _   _   _   _   _   _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ 
( t | i | m | @ | i | t | . | k | p | t | . | c | c )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ 
GPG key fingerprint = 1DEE CD9B 4808 F608 FBBF  DC21 2807 D7D3 09CA 85BF



Reply to: