---
title: "Dhcpd"
type: "forum-thread"
url: "https://www.webforum.nu/amne/linux-bsd/25384-dhcpd"
topic: "Linux & BSD"
topic_url: "https://www.webforum.nu/amne/linux-bsd"
author: "Per"
published: "2000-09-17T09:23:00.000Z"
updated: "2000-09-17T12:13:00.000Z"
replies: 1
views: 512
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/linux-bsd/25384-dhcpd"
---

# Dhcpd

## #1 — Per, 2000-09-17T09:23Z

Hejsan.

Har installerat dhcpd och när jag startat får jag följande fel.

> /etc/dhcpd.conf line 1: subnet 172.23.2.0: bad subnet number/mask combination.
> subnet 172.23.2.0 netmask 255.255.0.0 
>                                     ^

Min dhcpd.conf ser ut så här:

> subnet 172.23.2.0 netmask 255.255.0.0 {
>   range 172.23.2.100 172.23.2.150;
>   default-lease-time 86400;
>   max-lease-time 172800;
>         option subnet-mask 255.255.0.0;
>         option broadcast-address 172.23.200.255;
>         option domain-name-servers 172.23.2.245;
>         option domain-name "lhlan.local";
> }

Permalänk: https://www.webforum.nu/p/25384

## #2 — FlashX, 2000-09-17T12:13Z

Detta kanske inte har någon inverkan men undrar om det inte istället ska skrivas

> default-lease-time 86400;
> max-lease-time 172800;
> option subnet-mask 255.255.0.0;
> option broadcast-address 172.23.200.255;
> option domain-name-servers 172.23.2.245;
> option domain-name "lhlan.local";
> subnet 172.23.2.0 netmask 255.255.255.0 {
> range 172.23.2.100 172.23.2.150;
> }

Notera placeringen på "måsvingarna" och netmask

Permalänk: https://www.webforum.nu/p/379127

---

Tråden på webben: https://www.webforum.nu/amne/linux-bsd/25384-dhcpd
