Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I'm trying to run a dhcp server on eth1, but I keep getting the error "bad subnet number/mask combination." Can anyone help? Here is my dhcpd.conf file: default-lease-time 86400; ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    5

    dhcp subnet/netmask combination


    Hi,

    I'm trying to run a dhcp server on eth1, but I keep getting the error "bad subnet number/mask combination."

    Can anyone help?

    Here is my dhcpd.conf file:

    default-lease-time 86400;
    max-lease-time 172800;
    log-facility local7;
    ddns-update-style ad-hoc;

    #Basic subnet declaration
    subnet 192.168.1.1 netmask 255.255.255.0 {
    range 192.168.1.10 192.168.1.15;
    }
    What is wrong with this combination and how can I find the right one?

    Thanks,
    Ewan

  2. #2
    Linux Newbie
    Join Date
    Sep 2004
    Location
    UK
    Posts
    161
    Try changing the subnet to 192.168.1.0
    In a world without walls and fences, who needs Windows and Gates?

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    5
    Got it working, thanks!

Posting Permissions

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