Hello,
As told in a previous message, I'm not available this end of week (going to
Paris) but to help you more,
here are my config files (those modified to fit my config) for dhcpd.lrp
(Server).
For the dhcpcd.lrp (Client) I've used the original .lrp
Remember: my LEAF box is assigned address 192.168.1.254 on eth1 via
/etc/network/interfaces file.
/etc/dhcp.conf
---------------------
default-lease-time 1728000;
max-lease-time 3456000;
allow unknown-clients;
allow bootp;
allow booting;
option routers 192.168.1.254;
option domain-name "maison.mrs";
option domain-name-servers 192.168.1.254;
option ntp-servers 192.168.1.254;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.1 192.168.1.200;
}
group {
use-host-decl-names on;
host chh01 { hardware ethernet 00:50:bf:27:b6:c6; }
host sim01 { hardware ethernet 00:00:21:2c:c2:61; }
}
-- end /etc/dhcpd.conf -- do no put in the file
The two host declarations (chh01 and sim01) are specific to my network, do
not use them.
/etc/default/dhcp
------------------------
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp by the maintainer scripts
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"
That's all
--
Christian - Grenoble
----- Original Message -----
From: "joah moat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 2:01 AM
Subject: [leaf-user] Here be my interfaces file and daemon.log
> Hello again, okay, here is my /etc/network/interfaces:
>
> # /etc/network/interfaces -- configuration file for LEAF network
> #
> # Loopback interface.
> auto lo
> iface lo inet loopback
>
> # Step 1: configure external interface
> # uncomment/adjust one of the following 4 options
> # Option 1.1 (default): eth0 / dynamic IP from pump/dhclient
> auto eth0
> iface eth0 inet dhcp
> #
> # Option 1.2: eth0 / Fixed IP (assumed to be 1.2.3.4).
> # (broadcast/gateway optional)
> #auto eth0
> #iface eth0 inet static
> # address 1.2.3.4
> # netmask 255.255.255.0
> # broadcast 1.2.3.255
> # gateway 1.2.3.1
> #
> # Option 1.3: PPP/PPPOE (modem connected to eth0)
> #auto ppp0
> #iface ppp0 inet ppp
> # pre-up ip link set eth0 up
> # provider dsl-provider eth0
> #
> # Option 1.4: PPP modem
> #auto ppp0
> #iface ppp0 inet ppp
> # provider provider
>
> # Step 2: configure internal interface
> # Default: eth1 / fixed IP = 192.168.1.254
> auto eth1
> iface eth1 inet static
> address 192.168.1.254
> netmask 255.255.255.0
> broadcast 192.168.1.255
>
> # Step 3 (optional): configure DMZ
> # Default: eth2 / fixed IP = 192.168.1.100
> #auto eth2
> #iface eth2 inet static
> # address 192.168.1.100
> # netmask 255.255.255.0
> # broadcast 192.168.1.255
>
> # Step 4 (optional): configure a bridge
> #auto br0
> #iface br0 inet static
> # address 192.168.1.254
> # netmask 255.255.255.0
> # broadcast 192.168.1.255
> # bridge_ports all
>
> # Step 5 (optional): configure ipv6
> #iface eth1 inet6 static
> # address fec0:2::1
> # netmask 64
>
> # Step 6 (optional): configure v4tunnel
> #auto tun6to4
> #iface tun6to4 inet6 v4tunnel
> # address 3ffe:8280:0:2001::2
> # netmask 64
> # gateway 3ffe:8280:0:2001::1
> # endpoint 202.143.23.6
> # ttl 254
>
>
>
>
>
>
> here is my daemon.log: (note the dhcp errors) sigh
>
>
>
> Feb 18 17:29:45 firewall cardmgr[28088]: watching 2 sockets
> Feb 18 17:29:45 firewall cardmgr[25566]: socket 0: 3Com 589 Ethernet
> Feb 18 17:29:45 firewall cardmgr[25566]: executing: 'insmod
> /lib/modules/2.4.24/pcmcia/3c589_cs.o 2>&1'
> Feb 18 17:29:45 firewall cardmgr[25566]: + Using
> /lib/modules/2.4.24/pcmcia/3c589_cs.o
> Feb 18 17:29:46 firewall cardmgr[25566]: executing: './network start eth0
> 2>&1'
> Feb 18 17:29:46 firewall cardmgr[25566]: + Sample private network setup
> Feb 18 17:29:46 firewall cardmgr[25566]: + Sample private network setup
> Feb 18 17:29:46 firewall init: Entering runlevel: 2
> Feb 18 17:29:47 firewall dhcpd: No subnet declaration for eth1 (0.0.0.0).
> Feb 18 17:29:47 firewall dhcpd: Please write a subnet declaration in your
> dhcpd.conf file for the
> Feb 18 17:29:47 firewall dhcpd: network segment to which interface eth1 is
> attached.
> Feb 18 17:29:47 firewall dhcpd: exiting.
> Feb 18 17:29:49 firewall inetd[30296]: Online and ready (2 sockets)
> Feb 18 17:29:54 firewall cardmgr[25566]: + dhcpcd: MAC address =
> 00:60:08:8c:68:64
> Feb 18 17:29:54 firewall cardmgr[25566]: + dhcpcd: your IP address =
> 68.148.245.3
> Feb 18 17:29:54 firewall cardmgr[25566]: + dhcpcd.exe: interface eth0 has
> been configured with new IP=68.148.245.3
> Feb 18 17:29:54 firewall cardmgr[25566]: socket 1: D-Link DFE-670-TXD Fast
> Ethernet
> Feb 18 17:29:54 firewall cardmgr[25566]: executing: 'insmod
> /lib/modules/2.4.24/pcmcia/pcnet_cs.o 2>&1'
> Feb 18 17:29:54 firewall cardmgr[25566]: + Using
> /lib/modules/2.4.24/pcmcia/pcnet_cs.o
> Feb 18 17:29:55 firewall cardmgr[25566]: executing: './network start eth1
> 2>&1'
> Feb 18 17:29:55 firewall cardmgr[25566]: + Sample private network setup
> Feb 18 17:29:55 firewall cardmgr[25566]: + Sample private network setup
> Feb 18 17:30:43 firewall dhcpd: Internet Software Consortium DHCP Server
> 2.0pl5
> Feb 18 17:30:43 firewall dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
> Internet Software Consortium.
> Feb 18 17:30:43 firewall dhcpd: All rights reserved.
> Feb 18 17:30:43 firewall dhcpd:
> Feb 18 17:30:43 firewall dhcpd: Please contribute if you find this
software
> useful.
> Feb 18 17:30:43 firewall dhcpd: For info, please visit
> http://www.isc.org/dhcp-contrib.html
> Feb 18 17:30:43 firewall dhcpd:
> Feb 18 17:30:43 firewall dhcpd: Listening on
> LPF/eth1/00:05:5d:37:7f:65/192.168.1.0
> Feb 18 17:30:43 firewall dhcpd: Sending on
> LPF/eth1/00:05:5d:37:7f:65/192.168.1.0
> Feb 18 17:30:43 firewall dhcpd: No subnet declaration for eth0
> (68.148.245.3).
> Feb 18 17:30:43 firewall dhcpd: Please write a subnet declaration in your
> dhcpd.conf file for the
> Feb 18 17:30:43 firewall dhcpd: network segment to which interface eth0 is
> attached.
> Feb 18 17:30:43 firewall dhcpd: exiting.
> Feb 18 17:32:31 firewall dhcpd: Internet Software Consortium DHCP Server
> 2.0pl5
> Feb 18 17:32:31 firewall dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The
> Internet Software Consortium.
> Feb 18 17:32:31 firewall dhcpd: All rights reserved.
> Feb 18 17:32:31 firewall dhcpd:
> Feb 18 17:32:31 firewall dhcpd: Please contribute if you find this
software
> useful.
> Feb 18 17:32:31 firewall dhcpd: For info, please visit
> http://www.isc.org/dhcp-contrib.html
> Feb 18 17:32:31 firewall dhcpd:
> Feb 18 17:32:31 firewall dhcpd: Listening on
> LPF/eth1/00:05:5d:37:7f:65/192.168.1.0
> Feb 18 17:32:31 firewall dhcpd: Sending on
> LPF/eth1/00:05:5d:37:7f:65/192.168.1.0
> Feb 18 17:32:31 firewall dhcpd: No subnet declaration for eth0
> (68.148.245.3).
> Feb 18 17:32:31 firewall dhcpd: Please write a subnet declaration in your
> dhcpd.conf file for the
> Feb 18 17:32:31 firewall dhcpd: network segment to which interface eth0 is
> attached.
> Feb 18 17:32:31 firewall dhcpd: exiting.
>
>
> Why should I need to declare dhcpd for eth0? I just want my eth1 to
> broadcast a private network address to my network.
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>
> -------------------------------------------------------
> 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