I use this
http://www.isc.org/index.pl?/sw/dhcp/
[edit:gorn]fixed link[/edit]
What's good free software for a linux dhcp server?
I use this
http://www.isc.org/index.pl?/sw/dhcp/
[edit:gorn]fixed link[/edit]
I use ISC for DHCP too. No complaints, but I'm not sure how secure it is. If anyone knows of a very secure DHCP server, let me know.
Being the linux newbie that I am, I'm having trouble setting up this DHCP server. It seems the client is getting info from the server, because an IP is being assigned, but I'm not geting a connection to the 'net. I can't even ping the DHCP server, but I know it's getting a connection because when I check the client's /etc/dhcpc/dhcpcd-eth0.info it has all the configurations from my server. The interface that the server is listening on is eth1, eth0 is a connection to a lan. Should I be setting up a gateway? If so, how?
This is from ifconfig eth1
Is there anything wrong here?
This is from eth0Code:eth1 Link encap:Ethernet HWaddr 00:05:5D:26:FB:B9 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST MULTICAST 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:10 Base address:0x6000
can they both have the same netmask?Code:eth0 Link encap:Ethernet HWaddr 00:90:27:5D:DB:FC inet addr:192.168.123.198 Bcast:192.168.123.255 Mask:255.255.255.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:135827 errors:0 dropped:0 overruns:0 frame:0 TX packets:145548 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15095147 (14.3 Mb) TX bytes:101956687 (97.2 Mb) Interrupt:11 Base address:0x6000
And if I'm way off, please tell me.
countach44,
You say that the server is listening on eth1 but, eth0 is connected to the LAN. Shouldn't the DHCP server be listening the LAN interface where the rest of the clients are and have them use your eth0 interface ( 192.168.123.198) as their gateway? Once they have an IP they should be able to ping the eth0 interface if they are given the right subnet mask.
And yes, they should have the same subnet mask.
You might want to take a look at you dhcpd logs.
You might want to look at your dhcpd.conf file. There are global and there are subnet options. Here are some things
that I specify in mine.
# A slightly different configuration for an internal subnet.
subnet 192.168.4.0 netmask 255.255.255.0 {
option routers 192.168.4.254;
option broadcast-address 192.168.4.255;
option netbios-name-servers 192.168.4.29;
option netbios-node-type 8;
option ntp-servers 192.168.4.1;
interface eth0;
default-lease-time 600;
max-lease-time 7200;
ignore unknown-clients;
}
HTH
I guess I'm trying to make a VPN type deal. When I'm connecting a computer to eth1, I don't even get lights on either NIC...
Here's my config
ThanksCode:ddns-update-style interim; default-lease-time 600000; max-lease-time 9999999; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.1; option routers 192.168.1.254; option domain-name-servers 206.141.192.60, 206.141.196.13; option domain-name "gotslack.mine.nu"; subnet 192.168.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; interface eth1; option broadcast-address 192.168.1.1; option routers 192.168.1.254; option domain-name-servers 206.141.192.60, 206.141.196.13; range dynamic-bootp 192.168.1.2 192.168.1.100; }
You need to change the broadcast address to 192.168.1.255
If you are not seeing any lights then there is no connection. make sure the nics are installed correctly and that the cable is ok.
VPN? Do you mean router? NAT server?
If you are still stuck maybe you should just try to get everything to work without DHCP. Give the clients static IP information then try to get your setup running. If you are trying to share your connection with other machines on your network then you should look into getting some type of firewall package. I found this one but, you might want to ask around for others.
http://firegate.sourceforge.net/
Yeah, I'm basically trying to turn it into a router.
Ok,
That is actually not that hard.
Forget about dhcp. you need to set up the router first.
Get both interfaces working.
set one of them up with the internet connection.
then read up on how to use firegate and make your machine into a router.
The hardest part is setting up the router only because you have to read through all the REAME's to figure out how to set it up.
What I think you want to do is make a gateway that also does DHCP, right?
Okay, try this for size and get back to us.
Look at this PET on net sharing.
Then setup the DHCP. Have it plug in your gateway and DNS too (thats what I have -- I have my own DNS server for ease of LAN adminning, but you wont need that).
I can post my DHCP file in a little while or so (I aint home now)
Bookmarks