+ Post New Thread
Results 1 to 9 of 9
*nix Thread, DHCP Server in Technical; I've got a computer thats picking up an ip address OK from a Linux DHCP server (Ubuntu 5.1) but ipconfig ...
  1. #1

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 594 Times in 446 Posts
    Rep Power
    169

    DHCP Server

    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

    This is my DHCP.conf file
    Code:
    # 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

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,414
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: DHCP Server

    What if you add this within your other options:

    option subnet-mask 255.255.255.0;

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,842
    Thank Post
    110
    Thanked 592 Times in 513 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: DHCP Server

    Which DHCP server are you using?

  4. #4

    Join Date
    Sep 2005
    Location
    Handsworth Grammar School
    Posts
    147
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    19

    Re: DHCP Server

    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?

  5. #5

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 594 Times in 446 Posts
    Rep Power
    169

    Re: DHCP Server

    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

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,842
    Thank Post
    110
    Thanked 592 Times in 513 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: DHCP Server

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

  7. #7

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 594 Times in 446 Posts
    Rep Power
    169

    Re: DHCP Server

    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

  8. #8

    Join Date
    Sep 2005
    Location
    Handsworth Grammar School
    Posts
    147
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    19

    Re: DHCP Server

    Quote Originally Posted by SimpleSi
    Could you post your .conf here?
    Here is the important bit of ours
    Code:
    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;

  9. #9

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 594 Times in 446 Posts
    Rep Power
    169

    Re: DHCP Server

    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



SHARE:
+ Post New Thread

Similar Threads

  1. Secondary DHCP server
    By timbo343 in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 12th October 2007, 01:45 PM
  2. DHCP on Server 2003
    By laserblazer in forum Windows
    Replies: 5
    Last Post: 30th September 2007, 10:16 PM
  3. Changing DHCP server IP label
    By NetworkGeezer in forum Wireless Networks
    Replies: 0
    Last Post: 23rd March 2007, 02:44 PM
  4. Add additional dhcp server
    By Uraken in forum Wireless Networks
    Replies: 2
    Last Post: 21st February 2007, 12:25 AM
  5. Downsides to passing tftp server via 2003 DHCP server?
    By pete in forum Wireless Networks
    Replies: 7
    Last Post: 11th July 2006, 11:07 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •