Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: rondomzorg on June 10, 2011, 03:48:28 pm
-
Ok guys, it's been hours and i've still haven't found a way i can get the dhcp server working.
This is my situatation
Speedtouch Router (172.16.0.254) <--> Zentyal (172.16.0.1) <-- i configured this as a static IP.
DNS 127.0.0.1 / 172.16.0.254
Gateway 172.16.0.254
DHCP settings are as followed:
Default gateway : Zentyal (i tried 172.16.0.254)
Primary Nameserver : local Zentyal DNS.
Windows Computer (Which should use the DHCP server) is connected to the router at (172.16.0.254).
What am i doing wrong?? It can't reach the DHCP server somehow.
-
Hello rondomzorg,
It must be something like this:
modem <-> (ETH0: Public IP) Zentyal (ETH1: local IP) <-> LAN
So
ETH0 should be your external interface and having the public IP (provided by your ISP - set it to external interface)
ETH1 should be your LAN gateway and set to internal interface with a static IP (let's say 192.168.10.1)
Make sure to configure an IP range for your internal interface (ETH1). -> It should be 192.168.10.0/24 (based on the previous exemple)
** DHCP server won't start if you messed up the configuration...
Best,
Marcus
-
Thank you Marcus for your quick reply. I have an ADSL modem, so i can't connect it directly to the zentyal server (this is because of the RJ12 plug). What i can do is that i put an ethernet cable in the LAN1 and connect it to my zentyal server but then it will have an internal IP.. but i guess that doesn't matter since you assign it to an external port.
And as i understand it correctly the eth2 will be marked as internal and that provides access to the DHCP server.
So you would get the following setup:
MODEM (ETH1) <-- external --> ZENTYAL
ZENTYAL (ETH2) <-- internal --> SWITCH --> CLIENTS
I will try this.
Thanx!
-
Would anyone care to share a working configuration (with screenshots)
Thanx in advance!
-
I'm not sure any screen shot I could supply will prove more helpful that the ones supplied by the documentation:
http://doc.zentyal.org/en/dhcp.html
It might be better if you could post screen shots so we can look for configuration problems.
The typical key to making this work is setting up a DHCP lease range on the internal interface, as Marcus mentioned. Zentyal doesn't automatically allocate any address ranges for DHCP use and will not start the DHCP server until that step is completed. If you've already done that, then we'll need to dig deeper.
-
I don't really see what is the problem. You happen to have an ADSL modem-router, and you want to set up a LAN with a Zentyal server. Since you want the server to be the DHCP server, you will need to disable the DHCP server in the modem, which is probably conflicting with what you are trying to achieve.
After that, you have 2 options:
- Connect the modem to the external line (it will receive the public WAN address) and one of its ports (an internal local network from the modem's point of view) to the server. That server's NIC will become its external connection.Connect another server's NIC (it will be the internal connection) to a switch/hub where everything else will connect. You may disable any firewall in the modem router.
- Have all of your clients and server connect to the modem-router. In this case, you will only use one NIC and it will be classified as internal. You should make sure that the modem router has firewall capabilities and it is well defined.
-
Hello,
Well of course it's murphy's law but i added the 2nd ethernet card to the server and now can't get an IP anymore?
Even when i re-install zentyal it can't build a connection.
I tried to connect it with my laptop ADSL <--> LAPTOP <-- works fine, so it isn't the cable or configuration on the modem.
Does anyone know what is wrong here?
Thanx
-
Hello rondomzorg,
Could you post both NIC configuration screenshots ?
Zentyal >> Core >> Network >> Interface
Also, post your DHCP configuration screenshot
Zentyal >> Infrastructure >> DHCP
That would be a good starting point -
Best,
Marcus
-
Sure will post some screens when system is reinstalled.
I'm installing it with the following settings:
MODEM
Modem adress (GW) : 192.168.0.254
DHCP = ON : RANGE = 192.168.0.200 - 192.168.0.253
NS = 192.168.0.254
Zentyal
eth0
Static IP 192.168.0.1
Netmask 255.255.255.0
GW / DNS 192.168.0.254
eth1 (internal)
Static IP : 172.16.0.1
Don't really know yet what to do with the gateway and such..
In about 30 min i will have some screenshots ready.
Edit" ...Hmm this isn't really working. I'll get back to you guys on this issue later with some screenshots maybe it's just a buggy nic.
-
I'm so sorry guys. I renewed everything and apparntly i got the nics mixed up.
Working now! :D
-
8)
-
Hehe it's not completely solved yet because the clients do not appear in the DHCP lease list and the searchdomain isn't passed trough to the clients. Anyone know why. Will post some screenshots later.
-
Hi there,
Only clients from the range are shown in the DHCP leases list. The fixed addresses are not shown there. The searchdomain is set in DHCP interface as general setting. If the clients are not setting this, then it is probably because the clients are ignoring it.
Best,
-
Okay i've taken the server home, so the configuration changed a little bit.
DCHP is not working now. I've put in the IP address myself, didn't get it from DHCP so i still can reach zentyal
Network
Interface (eth0) = internal. Don't ask me why it's 0 :p
(http://img263.imageshack.us/img263/7406/eth0.jpg)
So i made my internal NIC 192.168.3.1
Interface (eth1) = external. DHCP is still running on my ADSL modem, but i can't shut it down ISP disabled that option (don't know if it matters).
(http://img810.imageshack.us/img810/3165/eth1.jpg)
DNS
DNS pointing to local zentyal domain (127.0.0.1) & ADSL modem (192.168.2.254)
(http://img841.imageshack.us/img841/5110/dns1.jpg)
Gateway
Gateway is pointing to the ADSL modem (192.168.2.254)
(http://img860.imageshack.us/img860/9428/gweth1.jpg)
DHCP
I filled in the search domain and a range.
(http://img135.imageshack.us/img135/9049/dhcp.jpg)
DNS
Used some random domains
(http://img810.imageshack.us/img810/92/dns2.jpg)
So there you have it folks. If anyone could be able to figure the problem it would be great :)
-
Anyone?
-
Hi there,
Is the DHCP module enabled and running? Check the NICs are properly set and check the output of dhclient from Linux.
Is there any other DHCP server in the same LAN? Is the router linked using a switch to the LAN or directly connected to Zentyal?
Best,
-
Strange case, since this _should be_ a rather basic network config.
Can you doublecheck all your settings, check connections and if you are able to reach each device involved by ping/trace on both IP address and name.
Do you have a firewall active? (on clients and/or Zentyal)
-
In reply to both messages above, i have the following setting:
ADSL (with DHCP <- i can't switch it off but that should not be a problem since i use the other nic as DHCP server for internal use). <- it's connected to -> zentyal server.
The modem is connected by a cat5 utp cable from the modem to eth1 and has an ip adresss of 192.168.2.254. I gave zentyal 192.168.2.100 as static and check the external checkbox).
Zentyal (eth0 = 192.168.3.1) this is connected with a cat5 utp cable to my laptop. When i put in a static ip on my laptop it works fine, but if want to use the DHCP it fails.
I guess a zentyal firewall should not make a difference and i only have the windows firewall on my laptop with windows 7 as operating system. Have Ubuntu 11.04 also installed <-- getting nothing from dhclient.
Kind Regards.
-
DHCP requests are broadcasted. If your modem-router receives the requests it will try to answer and conflict with your Zentyal DHCP server.
If you route all traffic through your Zentyal server, you can block all requests to your modem's internal IP on port 67/udp in your firewall, or you could just forward all requests to port 67/udp to your Zentyal server.