Hello (Joah ?),
First, have you loaded 'dhcpd.lrp' ? (just a sanity check)
Second, there is no /etc/init.d/dhcpd. Either you have the /etc/init.d/dhcp
(no "d") startup-shutdown script linked to tthe run-levels or you have the
'/usr/sbin/dhcpd' daemon's executable. But no '/etc/init.d/dhcpd'...
Can you provide us with the content of your '/etc/network/interfaces' file?
I suspect the problem is there...
Just for info mine is as follows:
#########################
# /etc/network/interfaces -- configuration file for LEAF network
#
# Loopback interface.
auto lo
iface lo inet loopback
#
auto eth0
iface eth0 inet dhcp
#
auto eth1
iface eth1 inet static
address 192.168.1.254
netmask 255.255.255.0
broadcast 192.168.1.255
#######################
Just to explain a bit...
My network can be "described" as follows:
ISP ===== ADSL Modem ===== eth0 = LEAF Box = eth1 ===== 10/100 Switch =====
my local network
eth0 is attached to my ADSL Modem/Bridge and get an IP address via
DHCP-Client from my ISP (I use 'dpchcd.lrp' module as DHCP-Client)
eth1 is attached to a 10/100M Ethernet switch for my local network. A DHCP
Server ('dhcpd.lrp' module) is running on this interface to allocate IP
addresses to my others PCs.
Remark: there is no restart/retry statement in my 'interfaces' file because
using the /etc/init.d/pcmcia & /etc/init.d/pcmcia_eth below, both interfaces
hardware (PCMCIA cards) are fully initialized at the time cardmgr is called.
As a reminder the pcmcia scripts are:
'/etc/init.d/pcmcia' : this is the standard one (from LEAF distrib) but
modified as follow (line #4)
RCDLINKS="S,S38 2,S13 3,S13 4,S13 5,S13 6,K87"
'/etc/init.d/pcmcia_eth' : whose content is =
#!/bin/sh
#
# Copyleft 2002 Erich Titl ([EMAIL PROTECTED])
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# Purpose:
# Wait for PCMCIA Ethernet cards to be ready.
# Executed following pcmcia init script
RCDLINKS="S,S38 2,S13 3,S13 4,S13 5,S13"
WHAT="eth" # what to search for
WHERE="/proc/net/dev" # where to search
HOW_LONG=20 # how long in seconds before aborting
NICS=`grep ${WHAT} /etc/shorewall/interfaces | grep -v ^# | wc -l`
[ ! -r /etc/shorewall/interfaces ] && NICS=2;
count=0
while true
do
count=`expr $count + 1`
# weird, for some reason grep does not return anything sensible
devs=`grep ${WHAT} ${WHERE} | wc -l`
[ $count -eq ${HOW_LONG} -o $devs -eq ${NICS} ] && break;
sleep 1
done
exit 0
###################
That's it!
--
Christian - Grenoble
----- Original Message -----
From: "joah moat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 5:47 AM
Subject: [leaf-user] LEAF on Nootbook part x.
> Okay, where and how can I place dhcpd in /etc/init.d/?
>
> I'm running Bering-uClibc2.1rc1 (should I be)?
>
> Here is the run down on my system:
>
> Address.txt:
>
> 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
>
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>
> inet 127.0.0.1/8 scope host lo
> 2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop
>
> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>
> 3: eth0: <BROADCAST,MULTICAST,NOTRAILERS,UP> mtu 1500 qdisc pfifo_fast
qlen
> 1000
>
> link/ether 00:60:08:8c:68:64 brd ff:ff:ff:ff:ff:ff
>
> inet 68.148.245.3/23 brd 68.148.245.255 scope global eth0
>
> 4: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
>
> link/ether 00:05:5d:37:7f:65 brd ff:ff:ff:ff:ff:ff
>
> inet 192.168.1.254/24 brd 192.168.1.255 scope global eth1
>
>
>
>
> Here be cron.log:
>
>
>
>
>
> Feb 17 20:53:27 firewall /usr/sbin/cron[13888]: (CRON) INFO (pidfile fd =
3)
>
> Feb 17 20:53:27 firewall /usr/sbin/cron[20891]: (CRON) STARTUP (fork ok)
>
> Feb 17 20:53:27 firewall /usr/sbin/cron[20891]: (CRON) INFO (Running
@reboot
> jobs)
>
> Feb 17 21:00:01 firewall /USR/SBIN/CRON[32119]: (root) CMD
> (/etc/multicron-p)
>
>
>
>
> This is my Daemon.log:
>
>
>
> Feb 17 20:53:09 firewall cardmgr[32692]: watching 2 sockets
>
> Feb 17 20:53:09 firewall cardmgr[14712]: socket 0: 3Com 589 Ethernet
>
> Feb 17 20:53:10 firewall cardmgr[14712]: executing: 'insmod
> /lib/modules/2.4.24/pcmcia/3c589_cs.o 2>&1'
>
> Feb 17 20:53:10 firewall cardmgr[14712]: + Using
> /lib/modules/2.4.24/pcmcia/3c589_cs.o
>
> Feb 17 20:53:10 firewall cardmgr[14712]: executing: './network start eth0
> 2>&1'
>
> Feb 17 20:53:10 firewall cardmgr[14712]: + Sample private network setup
>
> Feb 17 20:53:10 firewall cardmgr[14712]: + Sample private network setup
> Feb 17 20:53:10 firewall init: Entering runlevel: 2
>
> Feb 17 20:53:11 firewall inetd[98]: Online and ready (2 sockets)
>
> Feb 17 20:53:15 firewall cardmgr[14712]: + dhcpcd: MAC address =
> 00:60:08:8c:68:64
>
> Feb 17 20:53:15 firewall cardmgr[14712]: + dhcpcd: your IP address =
> 68.148.245.3
>
> Feb 17 20:53:16 firewall cardmgr[14712]: + dhcpcd.exe: interface eth0 has
> been configured with new IP=68.148.245.3
>
> Feb 17 20:53:16 firewall cardmgr[14712]: socket 1: D-Link DFE-670-TXD Fast
> Ethernet
>
> Feb 17 20:53:16 firewall cardmgr[14712]: executing: 'insmod
> /lib/modules/2.4.24/pcmcia/pcnet_cs.o 2>&1'
> Feb 17 20:53:16 firewall cardmgr[14712]: + Using
> /lib/modules/2.4.24/pcmcia/pcnet_cs.o
>
> Feb 17 20:53:17 firewall cardmgr[14712]: executing: './network start eth1
> 2>&1'
>
> Feb 17 20:53:17 firewall cardmgr[14712]: + Sample private network setup
>
> Feb 17 20:53:17 firewall cardmgr[14712]: + Sample private network setup
>
> Feb 17 20:53:17 firewall cardmgr[14712]: + /etc/init.d/dhcpd: No such file
> or directory
>
>
>
>
>
>
>
> This is Messages.txt:
>
>
>
>
> Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
> DETECT_IRQ SERIAL_PCI enabled
>
> Feb 17 20:53:07 firewall kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
>
> Feb 17 20:53:07 firewall kernel: ttyS01 at 0x02f8 (irq = 3) is a 16550A
> Feb 17 20:53:07 firewall kernel: Real Time Clock Driver v1.10e
>
> Feb 17 20:53:07 firewall kernel: Floppy drive(s): fd0 is 1.44M
> Feb 17 20:53:07 firewall kernel: FDC 0 is a National Semiconductor PC87306
>
> Feb 17 20:53:07 firewall kernel: Initializing Cryptographic API
>
> Feb 17 20:53:07 firewall kernel: NET4: Linux TCP/IP 1.0 for NET4.0
>
> Feb 17 20:53:07 firewall kernel: IP Protocols: ICMP, UDP, TCP, IGMP
> Feb 17 20:53:07 firewall kernel: IP: routing cache hash table of 512
> buckets, 4Kbytes
>
> Feb 17 20:53:07 firewall kernel: TCP: Hash tables configured (established
> 2048 bind 2048)
> Feb 17 20:53:07 firewall kernel: NET4: Unix domain sockets 1.0/SMP for
Linux
> NET4.0.
> Feb 17 20:53:07 firewall kernel: RAMDISK: Compressed image found at block
0
>
> Feb 17 20:53:07 firewall kernel: Freeing initrd memory: 282k freed
> Feb 17 20:53:07 firewall kernel: Freeing unused kernel memory: 80k freed
>
> Feb 17 20:53:08 firewall root: modutils module pcnet_cs could not be
loaded
>
> Feb 17 20:53:08 firewall kernel: Software Watchdog Timer: 0.05, timer
> margin: 60 sec
>
> Feb 17 20:53:08 firewall kernel: Linux PCMCIA Card Services 3.2.7
>
> Feb 17 20:53:08 firewall kernel: kernel build: 2.4.24 unknown
>
> Feb 17 20:53:08 firewall kernel: options: [pci] [cardbus] [apm]
> Feb 17 20:53:08 firewall kernel: Intel ISA/PCI/CardBus PCIC probe:
>
> Feb 17 20:53:08 firewall kernel: Vadem VG-468 rev 00 ISA-to-PCMCIA at
port
> 0x3e0 ofs 0x00
>
> Feb 17 20:53:08 firewall kernel: host opts [0]: none
>
> Feb 17 20:53:08 firewall kernel: host opts [1]: none
>
> Feb 17 20:53:09 firewall kernel: ISA irqs (scanned) =
> 3,4,5,7,10,11,12,15 status change on irq 15
>
> Feb 17 20:53:09 firewall kernel: cs: memory probe 0x0d0000-0x0dffff:
clean.
>
> Feb 17 20:53:10 firewall kernel: cs: IO port probe 0x0100-0x04ff:
excluding
> 0x1f0-0x1f7 0x220-0x22f 0x268-0x26f 0x378-0x37f 0x388-0x38f 0x3c0-0x3e7
> 0x3f0-0x4d7 0x4e0-0x4ff
>
> Feb 17 20:53:10 firewall kernel: cs: IO port probe 0x0800-0x08ff:
excluding
> 0x800-0x8d7 0x8e0-0x8ff
>
> Feb 17 20:53:10 firewall kernel: cs: IO port probe 0x0a00-0x0aff:
excluding
> 0xa20-0xa2f 0xa68-0xa6f 0xaf8-0xaff
>
> Feb 17 20:53:10 firewall kernel: cs: IO port probe 0x0c00-0x0cff:
excluding
> 0xc00-0xcd7 0xce0-0xcff
>
> Feb 17 20:53:10 firewall kernel: eth0: 3Com 3c589, io 0x300, irq 3,
hw_addr
> 00:60:08:8C:68:64
>
> Feb 17 20:53:10 firewall kernel: 8K FIFO split 5:3 Rx:Tx, auto xcvr
>
> Feb 17 20:53:11 firewall syslog: premature exit: No hostkeys available
>
> Feb 17 20:53:11 firewall kernel: eth0: flipped to 10baseT
>
> Feb 17 20:53:16 firewall dhcpcd.exe: interface eth0 has been configured
with
> new IP=68.148.245.3
>
> Feb 17 20:53:16 firewall kernel: eth1: NE2000 (DL10022 rev 30): io 0x320,
> irq 5, hw_addr 00:05:5D:37:7F:65
>
> Feb 17 20:53:27 firewall root: Shorewall Started
>
>
> This is ip route show:
>
>
> 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.254
>
> 68.148.244.0/23 dev eth0 proto kernel scope link src 68.148.245.3
>
> default via 68.148.244.1 dev eth0
>
>
> shorewall:
>
>
>
> Feb 17 21:00:00 firewall Shorewall:net2all:DROP: IN=eth0 OUT=
> MAC=00:60:08:8c:68:64:00:e0:0c:c8:7d:f4:08:00 SRC=172.202.243.139
> DST=68.148.245.3 LEN=48 TOS=00 PREC=0x00 TTL=114 ID=40640 CE DF PROTO=TCP
> SPT=4644 DPT=3127 SEQ=1950010076 ACK=0 WINDOW=16384 SYN URGP=0
>
>
>
>
>
>
> ulogd:
>
>
> Tue Feb 17 20:53:11 2004 <3> ulogd.c:479 ulogd Version 1.01 starting
> Tue Feb 17 20:53:11 2004 <5> ulogd.c:696 initialization finished, entering
> main loop
>
>
>
> If I type ifup eth1, I receive:
>
>
> RTNETLINK answers: File exists
> /etc/init.d/dhcpd: No such file or directory
>
>
> I have created and backed up the script that was suggested by Christian
> HOSTELET
>
http://sourceforge.net/mailarchive/forum.php?thread_id=3909824&forum_id=5483
>
> (I was supposed to make a pcmcia_eth with ae and include all the >
right?)
NO > in it !
>
> Anyways, I am able to test ping 64.29.201.21 (www.pcpitstop), but I'm
> getting some long ping times .600 and up. Youch!
>
> All I want now is my winbox to auto detect ipaddress to my router (eth1).
> Or, do I have to manually insert 192.168 etc in the windows network
config.
> If I run a winipcfg and release/renew, shouldn't it pick up the address
from
> LEAF router (eth1)? I don't know.
>
> Anyhow, I hope this message is not too grope for you and if it is, that's
> goot.
>
> Can any offer some insight as to what is happening/not happening? Thanks.
>
> _________________________________________________________________
> Click, drag and drop. My MSN is the simple way to design your homepage.
> http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ------------------------------------------------------------------------
> leaf-user mailing list: [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html