Koozali.org: home of the SME Server

SME, 2 local networks => dhcpd error "unknown network segment"

Offline pietdejong

  • *
  • 8
  • +0/-0
SME, 2 local networks => dhcpd error "unknown network segment"
« on: January 22, 2008, 04:52:36 PM »
I have an existing network on 172.16.1.0/255
I have added a second network 172.16.3.0/255 in "local networks"

In "Hostnames and addressess"  I have added static assignements for mapping hostnames to Ip addresses.

When the client tries to query for an IP address I see the following messages in /var/log/messages:

Jan 22 17:09:14 meserver dhcpd: DHCPDISCOVER from 00:15:60:b1:79:a8 via 172.16.3.1: unknown network segment



I have only one entry for a subnet in dhcpd.conf:
subnet 172.16.1.0 netmask 255.255.255.0

the host names are expanded correctly, ie.:

host host000.myhost.com {
    hardware ethernet 00:0d:56:0b:36:52;
    fixed-address 172.16.3.100;
}

To me I would imagine I would need a section "subnet XXXXXX" in dhcpd.conf ??
Is the template ok ?

Many thanks
Piet



Offline idp_qbn

  • *****
  • 347
  • +0/-0
Re: SME, 2 local networks => dhcpd error "unknown network segment"
« Reply #1 on: January 22, 2008, 05:52:03 PM »
I think you should try:
172.16.1.0/24

The /24 is the number of Bits of the subnet mask that are set to "1", starting from the Most Significant Bit (MSB) - in this case, the first 24 bits = 255.255.255.0 or 11111111111111111111111100000000

In this notation (shorthand for the 255.255.255.0 ) there is no place for "255"

Cheers
Ian
___________________
Sydney, NSW, Australia

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME, 2 local networks => dhcpd error "unknown network segment"
« Reply #2 on: January 22, 2008, 08:24:37 PM »
I have an existing network on 172.16.1.0/255
I have added a second network 172.16.3.0/255 in "local networks"

In "Hostnames and addressess"  I have added static assignements for mapping hostnames to Ip addresses.

SME server doesn't currently have support for DHCP management of more than one subnet/network segment. It's actually a bug therefore that the server manager allowed you to configure an address outside the local network range.

Please open a bug report for that issue, and a new feature request to add support for relayed DHCP requests from additional network segments.

Am I right in guessing that you have a router at 172.16.3.1 which includes a DHCP relay agent?

Offline pietdejong

  • *
  • 8
  • +0/-0
Re: SME, 2 local networks => dhcpd error "unknown network segment"
« Reply #3 on: January 23, 2008, 06:02:31 AM »
Correct I have a Cisco PIX 515.