SV: SV: dhcp on p-t-p interface

Anders Rosendal anders at rosendal.nu
Wed Sep 24 20:06:02 UTC 2008


I do have that declariation, but it does not work. I inclined to think that the “venet0:0: unknown hardware address type 65535”, is the cause to the problem.

Does anyone have an idea?

 

Sep 24 22:08:33 hera dhcpd: venet0:0: unknown hardware address type 65535

Sep 24 22:08:33 hera dhcpd: 

Sep 24 22:08:33 hera dhcpd: No subnet declaration for venet0:0 (0.0.0.0).

Sep 24 22:08:33 hera dhcpd: ** Ignoring requests on venet0:0.  If this is not what

Sep 24 22:08:33 hera dhcpd:    you want, please write a subnet declaration

 

Regards Anders Rosendal

 

Från: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] För Blake Hudson
Skickat: den 23 september 2008 18:28
Till: dhcp-users at isc.org
Ämne: Re: SV: dhcp on p-t-p interface

 

your log states: "Sep 20 07:58:33 hera dhcpd: No subnet declaration for venet0:0 (0.0.0.0)."

Define one...

       subnet x.x.x.x netmask x.x.x.x
        {       
                authoritative;
        }

DHCP will listen on any interface it's told to listen on...


-------- Original Message  --------
Subject: SV: dhcp on p-t-p interface
From: Anders Rosendal <anders at rosendal.nu> <mailto:anders at rosendal.nu> 
To: dhcp-users at isc.org
Date: Saturday, September 20, 2008 1:01:00 AM



Hi

Thanks Blake.

I do use ”-q” when starting dhcpd. Could you describe more what you mean with “dummy unathorative”?

 

I also saw that I had missed one interesting line in the syslog output in my last message (the unknown address type).

My guess is that the problem is that the broadcast is 0.0.0.0.

Is it possible to make dhcpd not listen to broadcast, and only open udp port 67 and listen for packets that are addressed to the server?

 

Regards Anders R

 

Sep 20 07:58:33 hera dhcpd: Internet Systems Consortium DHCP Server V3.0.6

Sep 20 07:58:33 hera dhcpd: Copyright 2004-2007 Internet Systems Consortium.

Sep 20 07:58:33 hera dhcpd: All rights reserved.

Sep 20 07:58:33 hera dhcpd: For info, please visit http://www.isc.org/sw/dhcp/

Sep 20 07:58:33 hera dhcpd: Wrote 0 leases to leases file.

Sep 20 07:58:33 hera dhcpd: venet0:0: unknown hardware address type 65535

Sep 20 07:58:33 hera dhcpd: 

Sep 20 07:58:33 hera dhcpd: No subnet declaration for venet0:0 (0.0.0.0).

Sep 20 07:58:33 hera dhcpd: ** Ignoring requests on venet0:0.  If this is not what

Sep 20 07:58:33 hera dhcpd:    you want, please write a subnet declaration

Sep 20 07:58:33 hera dhcpd:    in your dhcpd.conf file for the network segment

Sep 20 07:58:33 hera dhcpd:    to which interface venet0:0 is attached. **

Sep 20 07:58:33 hera dhcpd: 

Sep 20 07:58:33 hera dhcpd: 

Sep 20 07:58:33 hera dhcpd: Not configured to listen on any interfaces!

 

Från: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] För Blake Hudson
Skickat: den 20 september 2008 00:05
Till: dhcp-users at isc.org
Ämne: Re: dhcp on p-t-p interface

 

Start DHCPD with '-q venet0:0' or similar or put in 79.99.1.114 as a dummy unauthoritative subnet that does not have any pools.

--Blake

-------- Original Message  --------
Subject: dhcp on p-t-p interface
From: Anders Rosendal <anders at rosendal.nu> <mailto:anders at rosendal.nu> 
To: dhcp-users at isc.org
Date: Friday, September 19, 2008 3:41:35 PM




 

Hi
I'm having one server at local LAN that I'm serving with IP's. I'm now trying out a a virtual server from a hosting provider, and aiming to use that as a redundant dhcp-server. When installing dhcpd on it I ran into problems. The public network interface of the server is a p-t-p one, with a broadcast set to 0.0.0.0.
I guess that the hosting supplier is using XEN or similar to provide the service.
This is what I've got:

A Ubuntu 8.04 LTS server with isc-dhcpd-V3.0.6.

rosendal at hera:~$ cat /etc/network/interfaces
# This configuration file is auto-generated.
# WARNING: Do not edit this file, otherwise your changes will be lost.
# Please edit template /etc/network/interfaces.template instead.


# Auto generated interfaces
auto lo
iface lo inet loopback

auto venet0
iface venet0 inet static
        address 127.0.0.1
        netmask 255.255.255.255
        broadcast 0.0.0.0
        up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
        up route add default gw 192.0.2.1

iface venet0 inet6 static
        address ::1
        netmask 128

auto venet0:0
iface venet0:0 inet static
        address 79.99.1.114
        netmask 255.255.255.255
        broadcast 0.0.0.0

rosendal at hera:~$ ifconfig -a
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: ::1/128 Scope:Host
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:452 errors:0 dropped:0 overruns:0 frame:0
          TX packets:339 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:49704 (48.5 KB)  TX bytes:56924 (55.5 KB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:79.99.1.114  P-t-P:79.99.1.114  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

rosendal at hera:~$

The dhcpd.conf file is copied from the working server and I have added:

subnet 79.99.1.114 netmask 255.255.255.255 {
}


but when restarting dhcpd I get the following message in dhcpd I get the following message:

Sep 19 22:30:04 hera dhcpd: No subnet declaration for venet0:0 (0.0.0.0).
Sep 19 22:30:04 hera dhcpd: ** Ignoring requests on venet0:0.  If this is not what
Sep 19 22:30:04 hera dhcpd:    you want, please write a subnet declaration
Sep 19 22:30:04 hera dhcpd:    in your dhcpd.conf file for the network segment
Sep 19 22:30:04 hera dhcpd:    to which interface venet0:0 is attached. **
Sep 19 22:30:04 hera dhcpd:
Sep 19 22:30:04 hera dhcpd:
Sep 19 22:30:04 hera dhcpd: Not configured to listen on any interfaces!



Does anyone has suggestion how I should configure to get the server to listen to the venet0:0 interface?
The router on my main network is configured to forward dhcp-requests to my "redundant" server, so this is not a problem.


Thanks in advance.

Regards Anders R 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/>  at 
mars.rosendal.nu, and is believed to be clean. 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/>  at 
mars.rosendal.nu, and is believed to be clean. 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/>  at 
mars.rosendal.nu, and is believed to be clean. 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/>  at 
mars.rosendal.nu, and is believed to be clean. 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner on mars.rosendal.nu,
and is believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20080924/5cc04e3a/attachment.html>


More information about the dhcp-users mailing list