I'm trying to install a DHCP Server (DHCPd) on my debian linux machine (kernel 2.4.22). My setup is a cable internet connection fed into one ethernet port (eth0) on my linux machine, a cross-cable from my second ethernet port (dummy0, called it this during linux installation i think) to a mac.
When I try to start the Server i get the following:
Code:
spony:/# dhcpd dummy0
Internet Software Consortium DHCP Server 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit ... (Don't have 5 points)
No subnet declaration for dummy0 (0.0.0.0).
Please write a subnet declaration in your dhcpd.conf file for the
network segment to which interface dummy0 is attached.
exiting.
But the wierd thing is, ifconfig says this:
Code:
dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.1.5 Bcast:192.168.254.255 Mask:255.255.255.0
UP BROADCAST RUNNING NOARP MTU:1500 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)
eth0 Link encap:Ethernet HWaddr 00:04:61:4E:3F:63
inet addr:62.107.12.251 Bcast:62.107.31.255 Mask:255.255.224.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12140 errors:0 dropped:0 overruns:0 frame:0
TX packets:687 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1048163 (1023.5 KiB) TX bytes:103222 (100.8 KiB)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3640 (3.5 KiB) TX bytes:3640 (3.5 KiB)
Which according to the documentation means that both dummy0 and eth0 are active and running. Also I think it's rather strange that the hardware address on dummy0 is: "HWaddr 00:00:00:00:00:00". Both these ethernet ports are integrated into the motherboard so they should have the same hardware address?
Here is how i have edited /etc/network/interfaces:
Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
# Second network card - assign static ip to enable local dhcp server
auto dummy0
iface dummy0 inet static
address 192.168.1.5
netmask 255.255.255.0
broadcast 192.168.254.255
gateway 192.168.254.255
Likewise here is my /etc/dhcpd.conf:
Code:
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.4.2.2 2002/07/10 03:50:33 peloy Exp $
#
# option definitions common to all supported networks...
option domain-name "spony.net";
option domain-name-servers 192.168.1.1;
default-lease-time 36000;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
}
subnet 192.168.36.0 netmask 255.255.255.0 {
deny booting;
}
These 2 files should be correct in my opinion, but i'm a newbie so maybe not. This might also be of interest, I see this in /var/log/syslog:
Code:
Dec 22 22:45:42 spony kernel: 8139too Fast Ethernet driver 0.9.26
Dec 22 22:45:42 spony kernel: eth0: RealTek RTL8139 Fast Ethernet at 0xe0800000, 00:04:61:4e:3f:63, IRQ 11
Dec 22 22:45:42 spony kernel: eth0: Identified 8139 chip type 'RTL-8139C'
But no mention of dummy0.
Thanks in advance guys, I've been google'ing all day with no succes.