You are not logged in.

#1 2010-09-08 04:54:43

poopship21
Member
Registered: 2009-05-13
Posts: 177

dhcpd wont start, cant use icmp protocol?

i am trying to boot a 32bit kernel on a laptop with no hard drive and everything has preceded as per the wiki until i throw up the host dhcpd.  this is taking place on a network with a dedicated dhcp server handing out addresses on 192.168.1.0/24.  i assume this is fine since, as you can see below this one is going to be handing them out on 192.168.0.1/24.

this is my dhcpd.conf (created as per the wiki on PXE booting:

# /etc/dhcpd.conf
option domain-name-servers 208.67.222.222, 208.67.220.220;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
 range 192.168.0.10 192.168.0.49;
 filename "pxelinux.0";        # the PXELinux boot agent
 option subnet-mask 255.255.255.0;
 option broadcast-address 192.168.0.255;
 option routers 192.168.0.1;
}

at first i was getting errors from dhcpd that it needed /var/state/dhcp/dhcpd.leases so i created it (and made it wide open just to be sure):

[au@arroyo1 ~]$ sudo touch /var/state/dhcp/dhcpd.leases
[au@arroyo1 ~]$ sudo chown root:root /var/state/dhcp/dhcpd.leases
[au@arroyo1 ~]$ sudo chmod ugoa+rwx /var/state/dhcp/dhcpd.leases
[au@arroyo1 ~]$ /usr/sbin/dhcpd -d

but i still get errors when i run dhcpd as follows:

[au@arroyo1 ~]$ /usr/sbin/dhcpd -d
Internet Systems Consortium DHCP Server 4.2.0
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
unable to create icmp socket: Operation not permitted
Can't create new lease file: Permission denied

No subnet declaration for br0 (192.168.1.116).
** Ignoring requests on br0.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface br0 is attached. **


Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.

all i know about icmp is that its the communication protocol used by ping and although the above error looked initially like a permissions issue, the use of ping by an unpriveleaged user indicates that icmp is not very restrictive:

[au@arroyo1 ~]$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.399 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.336 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.332 ms
^C
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.332/0.355/0.399/0.037 ms

searching the arch forums for "unable to create icmp socket: Operation not permitted" brought back zero hits and this error is not addressed in the comments of the wiki so sorry if this sounds naive and TIA as always. 

also if anybody has a good novice-level link to some online documentation of ICMP and its role in bringing hosts online during the PXE boot process i would love to consult it.  thanks again

Offline

#2 2010-09-08 21:55:57

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: dhcpd wont start, cant use icmp protocol?

I don't know about the ICMP issue, but try these two things:

  • run dhcpd as root (and start it with the /etc/rc.d/dhcpd script)

  • your only configured network interface, br0 (192.168.1.116), is not in the same subnet as your subnet declaration (192.168.0.0). That means dhcpd won't listen on br0 for DHCP request.

Offline

#3 2010-09-09 01:09:50

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: dhcpd wont start, cant use icmp protocol?

thanks hexanol.  im ashamed to say that the thought of connecting the server to the network media never occurred to me last night.  following your advice i threw up another NIC and presto:

[root@arroyo1 au]# ifconfig eth1 192.168.0.1 netmask 255.255.255.0 up
[root@arroyo1 au]# ifconfig
br0       Link encap:Ethernet  HWaddr 6C:F0:49:0D:8F:EB  
          inet addr:192.168.1.116  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6ef0:49ff:fe0d:8feb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17114182 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11516146 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:20239948183 (19302.3 Mb)  TX bytes:1258934506 (1200.6 Mb)

eth0      Link encap:Ethernet  HWaddr 6C:F0:49:0D:8F:EB  
          inet6 addr: fe80::6ef0:49ff:fe0d:8feb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17114747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11517503 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:20482559700 (19533.6 Mb)  TX bytes:1259022916 (1200.6 Mb)
          Interrupt:43 Base address:0xe000 

eth1      Link encap:Ethernet  HWaddr 00:14:D1:13:82:19  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::214:d1ff:fe13:8219/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:328 (328.0 b)
          Interrupt:21 Base address:0xc000 

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:276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:276 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:19204 (18.7 Kb)  TX bytes:19204 (18.7 Kb)

[root@arroyo1 au]# /etc/rc.d/dhcpd start
:: Starting DHCP Server                                                                                                                                                      [DONE] 
[root@arroyo1 au]# exit

edit: next i fired up the client and got the /arch/setup graphics in 10 seconds flat smile

Last edited by poopship21 (2010-09-09 01:12:36)

Offline

Board footer

Powered by FluxBB