Linux machine as DHCP server
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 Code:
dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 Here is how i have edited /etc/network/interfaces: Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) Code:
# Code:
Dec 22 22:45:42 spony kernel: 8139too Fast Ethernet driver 0.9.26 Thanks in advance guys, I've been google'ing all day with no succes. :newbie: |
dhcp server
You do not need the dummy device. I like to use webmin to setup me dhcp server it is fast and easy.
|
Yes I've realised the dummy device has nothing to do with a second ethernet controller. Unfortunatly my setup still requires a second ethernet controller and ifconfig still shows I only have one operating even though there are two hardwired into my EPOX motherboard.
At this point I think the problem may be that the kernel was built with only one type of ethernet controller (they are both realtek ethernet controllers) and so it only expects that I have one during setup. So I've tried to follow the steps in the debian.org HOWTO under "Linux Ethernet-Howto" concerning "2.4 Using More than one Ethernet Card per Machine". I've gone as far as compiling a new kernel loading the realtek driver as a modual, but no luck. The other option was telling lilo explicitly that it must look for two ethernet cards. Here are the corrections to "/etc/modules.conf" per the modules solution: Code:
alias eth0 8139too Here are the corrections to "lilo.conf" per the installed in kernel solution: Code:
append="ether=0,0,eth1" Thanks for the pointer about webmin, once i get that far it'll be handy. :newbie: |
Well I've finnaly solved my eth1 problem. Despite what the epox manual says i infact have 2 differant types of ethernet controllers.
lspci gave me this: Code:
spony:/home/spony# lspci The driver is not included with debian so I compiled it from source and installed as a module, corrected /etc/module.conf and it works. ifconfig now gives me this: Code:
spony:/home/spony# ifconfig Started dhcp on eth1 at bootup by editing this file /etc/default/dhcp Code:
# Defaults for dhcp initscript Code:
spony:/etc/default# dhcpd -f Hope this thread helps someone else out - spony |
COOL
Now you can try webmin
|
All times are GMT -5. The time now is 12:41 PM. |