[Techtalk] DHCP question maybe dns

Hamster hamster at hamsternet.org
Tue Apr 9 18:10:18 EST 2002


> Hi all.
> 
> I realise this is a dumb question, well it may be.  I just set up dhcp on my
> server for the laptop, for pcs when they run windows and for laptops that
> belong to people who drop by (usually it's to use the printer), but I
> realised that this may not be the most practical thing to do as the computer
> that has the colour printer on it is my roommates Win95 PC.  Is there any
> way to have the DHCP server only give that computer one address, or
> conversely tell the other computers on the network what its IP is when it
> they need to access the printer.
> 
Yes !! Its a very easy thing to do. What you need to do is set up a client reservation.

There are a couple of steps.
1. Find the MAC address of the win95 pc. To do this, at a command prompt run winipcfg. click on "more info" and the field called adaptor address is the one youre looking for. write that number down.

2. In your dhcpd.conf file, you will need to add an entry something like this:

host win95 {
   hardware ethernet 00:E0:29:08:EA:60;
   fixed-address 192.168.100.100;
}

Obviously change the address and hardware ethernet address to the numbers for your situation!!

THis way now, the win95 machine will always get the same ip.

One last thing is to make sure the fixed-address is not part of the pool of addresses that dhcp hands out. My range looks like the line below, and you can see doesnt inlcude the .100 address.

 range 192.168.100.101 192.168.100.200;

ANymore questions, or if i havent been clear, ask!!

Hamster




More information about the Techtalk mailing list