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

Re: [Sheflug] Am I Misunderstanding This?



On Sun, 2001-12-16 at 13:58, Alistair Williamson wrote:
> dhcpd starts ok - but no host is issued with an IP address (I can now ping 
> into and out of the server).

Which client are you using? I personally use pump; although it's
supposed to be problematic for some people. 

> I don't have any routing tables or a DNS set up - would this have an effect? 

Not necessarily. Depending on your version of Linux, you _may_ need to
set up the all-ones and all-zeros addresses, however, if it's vaguely
recent this shouldn't be necessary. Can you ping 255.255.255.255?

> I don't see how I can translate names to addresses when the adresses are 
> dynamic.

Depends how you do it. If you associate names with IP addresses, then a
simple $GENERATE statement in your zone file will do the trick -
however, clients may end up with different hostnames. If that bothers
you, you can get the dhcp server to take the hostname that the client
supplies and update the DNS server when it hands out an IP address. You
need dynamic DNS for this, but it's covered well in the HOWTOs ;)

> All the domains are set to 'localhost' - although we do have a FQDN 
> (estfeld.doncaster.sch.uk) it is administered by an ISP and I understand if I 
> include this in the domain name - trouble will ensue!

Yep, that's right :)

> Can anyone see what I'm doing wrong?

Not really. This is my dhcp.conf:

# dhcpd.conf

option domain-name "alexworld";
option domain-name-servers 192.168.178.1;

option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;

subnet 192.168.178.0 netmask 255.255.255.0 {
  range 192.168.178.10 192.168.178.200;
  option routers 192.168.178.1;
  host lapland {
	hardware ethernet 00:D0:B7:AD:16:3C;
	fixed-address 192.168.178.10;
  }
}

(Pretty short, huh? ;)

I use fixed addressing to make sure I know what IP address my laptop
gets, since I use static DNS. What's the point of dhcp then? Well, I use
it because my laptop goes into work, and it needs to work in both
environments - essentially, it's an easy way of configuring it to work
right on all networks it gets plugged into.

Cheers,

Alex.




PGP signature