Jump to content

Recommended Posts

Posted

I've got a computer thats picking up an ip address OK from a Linux DHCP server (Ubuntu 5.1) but ipconfig syas the subnet mask is 255.255.0.0 instead of 255.255.255.0 :roll:

 

This is my DHCP.conf file

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers 212.219.82.4, 212.219.83.4;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;



 subnet 10.81.132.0 netmask 255.255.255.0 {
 range 10.81.132.100 10.81.132.180;
 option domain-name-servers 212.219.82.4, 212.219.83.4;
 option routers 10.81.132.1;
 option broadcast-address 10.81.132.255;
 default-lease-time 691200;
 max-lease-time 691200;
}

 

Can anyone see anything wrong in there or should I be looking elsewhere

 

regards

 

Simon

Posted
I have option subnet-mask in my /etc/dhcpd.conf file. Did you make a change to the /etc/dhcpd.conf and forget to restart the dhcpd daemon?
Posted

Don't know what DHCP it is - just using the one that came with Ubuntu 5.1.

 

Not at that school now :(

 

Like the idea of just using a subnet mask option - will try next time I'm there.

 

Spooky how it seems to be just affecting one computer .

 

Could you post your .conf here?

 

I've been running this server for about 6 months and done nothing to it for about 3months (played with logon screen setup)

 

regards

 

Simon

Posted
I usually use dnsmasq in these sorts of situations. Its simpler to get ddns to work than using ISC dhcpd and bind.

 

And in English please :p

 

regards

Simon

Posted
Could you post your .conf here?

 

Here is the important bit of ours

default-lease-time            21600;
max-lease-time                21600;
ddns-update-style none;
allow booting;
allow bootp;

option subnet-mask            255.255.255.0;
option broadcast-address      192.168.0.255;
option routers                192.168.0.8;
option domain-name-servers    192.168.0.8;
option domain-name            "ltsp";
option root-path              "192.168.0.8:/opt/ltsp/i386";
option option-128 code 128 = string;
option option-129 code 129 = text;

shared-network WORKSTATIONS {
 subnet 192.168.0.0 netmask 255.255.255.0 {
    range dynamic-bootp 192.168.0.50 192.168.0.253;
    use-host-decl-names       on;
    option log-servers        192.168.0.8;

Posted

Well stranger and stranger.

Bit of history

I used to use a static DHPC server than runs on Win98 before switching to trying out using Linux/Samba as my file server.

 

So when I finally switched off the old Win98 machine - i just picked a differnet range of ip address for the DHCP server on the Linux server.

 

When I came in today, I noticed that one of the suite machines had an ip address in the old Win98 assigned DHCP range and even spookier - the lease had been assigned at 9am this morning - ipconfig even gave me 10.81.132.2 as the DHCP server address which was the IP address of the old Win98 machine.

 

But the machine is dead

It is switched off.

It is no more

Its a dead parrot

 

(the sound of spooky music wafts through the IT suite)

 

I disabled the net interface on my client mahcine - re-enabled it and it picked up a lease from my Linux DHPC server (DHCP3 BTW)

 

(And the original machine that was faulty last week now is working fine)

 

So anyway, I've added the global option subnet mask setting as suggested and just downed the lease times to the default 600/7200.

 

Lets see what happens next !!

 

regards

 

Simon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...