can't get clients connected - dhcp not functioning

Robert Lefebvre robert.r.lefebvre at gmail.com
Sun Jan 6 20:38:47 UTC 2013


I've been struggling to get a new install up and running and just can't
seem to find the problem with the dhcp not sending. From the syslog it
looks like it is shutting down (see below) but from ifconfig AND lshw it
seems like all is in order. I repeatedly tried starting and restarting
isc-dhcp-server which, according to syslog, does start but then shuts down
for lack of finding subnet declaration which is, indeed, there in the
etc/ltsp/dhcpd.conf file. After a reboot syslog shows eth1 starting and
stopping on its own 6-8 times.

What am I doing wrong? Please, can someone help me?

edubuntu 12.04

The error reported in syslog is
"No subnet declaration for 1 (no IPv4 addresses).
Jan  6 14:14:06 brightlearning dhcpd: ** Ignoring requests on 1.  If this
is not what
Jan  6 14:14:06 brightlearning dhcpd:    you want, please write a subnet
declaration
Jan  6 14:14:06 brightlearning dhcpd:    in your dhcpd.conf file for the
network segment
Jan  6 14:14:06 brightlearning dhcpd:    to which interface 1 is attached.
**

but in that dhcpd.conf file (from etc/ltsp/dhcpd.conf) I have this in which
I also tried 192.168.0.254 to match the nic card address:

#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.20 192.168.0.250;
    option domain-name "brightlearning.org";
 #   option domain-name-servers 192.168.0.1;
    option broadcast-address 192.168.0.255;
#    option routers 192.168.0.254;
#    next-server 192.168.0.1;
#    get-lease-hostnames true;
    option subnet-mask 255.255.255.0;
    option root-path "/opt/ltsp/i386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "/ltsp/i386/pxelinux.0";
    } else {
        filename "/ltsp/i386/nbi.img";
    }
}


XXXXXXXXX ifconfig  XXXXXXXXXXXXXXXXXXXXXXXXXXX

eth0      Link encap:Ethernet  HWaddr 90:2b:34:a3:81:d2
          inet addr:24.73.154.245  Bcast:24.73.154.255  Mask:255.255.255.0
          inet6 addr: fe80::922b:34ff:fea3:81d2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:163 errors:0 dropped:0 overruns:0 frame:0
          TX packets:191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28022 (28.0 KB)  TX bytes:17854 (17.8 KB)
          Interrupt:42 Base address:0xc000

eth1      Link encap:Ethernet  HWaddr 00:0a:cd:1f:bb:95
          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20a:cdff:fe1f:bb95/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:225 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:66622 (66.6 KB)  TX bytes:8054 (8.0 KB)
          Interrupt:41 Base address:0xa000

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:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:79 (79.0 B)  TX bytes:79 (79.0 B)

lxcbr0    Link encap:Ethernet  HWaddr 4a:7c:35:8f:d3:6b
          inet addr:10.0.3.1  Bcast:10.0.3.255  Mask:255.255.255.0
          inet6 addr: fe80::487c:35ff:fe8f:d36b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:11484 (11.4 KB)


XXXXXXXXX   AND THE SAME FROM LSHW  XXXXXXXXXXXXX
 *-network
                description: Ethernet interface
                product: RTL8111/8168B PCI Express Gigabit Ethernet
controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci at 0000:03:00.0
                logical name: eth0
                version: 06
                serial: 90:2b:34:a3:81:d2
                size: 1Gbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master
cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt
1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes
driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4
03/27/12 ip=24.73.154.245 latency=0 link=yes multicast=yes port=MII
speed=1Gbit/s
                resources: irq:42 ioport:ce00(size=256)
memory:fdcff000-fdcfffff memory:fdcf8000-fdcfbfff

*-network
                description: Ethernet interface
                product: RTL8111/8168B PCI Express Gigabit Ethernet
controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci at 0000:02:00.0
                logical name: eth1
                version: 03
                serial: 00:0a:cd:1f:bb:95
                size: 1Gbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master
cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt
1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes
driver=r8169 driverversion=2.3LK-NAPI duplex=full
firmware=rtl_nic/rtl8168d-2.fw ip=192.168.0.254 latency=0 link=yes
multicast=yes port=MII speed=1Gbit/s
                resources: irq:41 ioport:de00(size=256)
memory:fd7ff000-fd7fffff memory:fdefc000-fdefffff memory:fde00000-fde1ffff


XXXXXXXXXXXXXXXXXX  result of checking isc-dhcp-server status

shalom at bright-learning:~$ sudo /etc/init.d/isc-dhcp-server status
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service isc-dhcp-server status

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status
isc-dhcp-server
isc-dhcp-server stop/waiting
shalom at bright-learning:~$

XXXXXXXXXXXXXX   and starting  XXXXXXXXXXXX

sudo /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start networking
networking stop/waiting

shalom at bright-learning:~$ sudo /etc/init.d/isc-dhcp-server start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service isc-dhcp-server start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start
isc-dhcp-server
isc-dhcp-server start/running, process 2667
shalom at bright-learning:~$


XXXXXXXXXX   AND SYSLOG HERE   XXXXXXXXXXX

Jan  6 14:14:06 brightlearning kernel: [ 1825.858900] init: isc-dhcp-server
main process (2723) terminated with status 1
Jan  6 14:14:06 brightlearning kernel: [ 1825.858959] init: isc-dhcp-server
main process ended, respawning
Jan  6 14:14:06 brightlearning dhcpd: Wrote 1 leases to leases file.
Jan  6 14:14:06 brightlearning dhcpd:
Jan  6 14:14:06 brightlearning dhcpd: No subnet declaration for 1 (no IPv4
addresses).
Jan  6 14:14:06 brightlearning dhcpd: ** Ignoring requests on 1.  If this
is not what
Jan  6 14:14:06 brightlearning dhcpd:    you want, please write a subnet
declaration
Jan  6 14:14:06 brightlearning dhcpd:    in your dhcpd.conf file for the
network segment
Jan  6 14:14:06 brightlearning dhcpd:    to which interface 1 is attached.
**
Jan  6 14:14:06 brightlearning dhcpd:
Jan  6 14:14:06 brightlearning dhcpd:
Jan  6 14:14:06 brightlearning dhcpd: Not configured to listen on any
interfaces!
Jan  6 14:14:06 brightlearning kernel: [ 1825.942485] init: isc-dhcp-server
main process (2730) terminated with status 1
Jan  6 14:14:06 brightlearning kernel: [ 1825.942545] init: isc-dhcp-server
main process ended, respawning
Jan  6 14:14:06 brightlearning dhcpd: Wrote 1 leases to leases file.
Jan  6 14:14:06 brightlearning dhcpd:
Jan  6 14:14:06 brightlearning dhcpd: No subnet declaration for 1 (no IPv4
addresses).
Jan  6 14:14:06 brightlearning dhcpd: ** Ignoring requests on 1.  If this
is not what
Jan  6 14:14:06 brightlearning dhcpd:    you want, please write a subnet
declaration
Jan  6 14:14:06 brightlearning dhcpd:    in your dhcpd.conf file for the
network segment
Jan  6 14:14:06 brightlearning dhcpd:    to which interface 1 is attached.
**
Jan  6 14:14:06 brightlearning dhcpd:
Jan  6 14:14:06 brightlearning dhcpd:
Jan  6 14:14:06 brightlearning dhcpd: Not configured to listen on any
interfaces!
Jan  6 14:14:06 brightlearning kernel: [ 1826.026094] init: isc-dhcp-server
main process (2737) terminated with status 1
Jan  6 14:14:06 brightlearning kernel: [ 1826.026150] init: isc-dhcp-server
respawning too fast, stopped





-- 
BungeeBones.com - A B2B Link Exchange - Free Links in limited locations -
human edited and reviewed - Networked online advertising business
opportunities available through our free, distributed web directory script
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/edubuntu-users/attachments/20130106/166207eb/attachment.html>


More information about the edubuntu-users mailing list