Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello ichrispa,
Thanks for your reply.
First of all i need to about the basic requirements for DHCP server configuration.
1)what ip should ba given for router option in dhcpd.conf?public or private?
2)is it essential to give ddns-update-style?interim or ht-doc?
3)what should given for dns server?
4)i have configured dhcp and the service is started but dhcpclients can't access net? they get ip address of my range.....but i din't find any details in my/var/lib/dhcp/dhcpclient-leases file.........
Please help me to configure this.
Thanks,
Diana.K.
Hi, I can give you answer to your following question.
1)what ip should ba given for router option in dhcpd.conf?public or private?
Ans : The router IP address is nothing but the IP that client machine should use as their Default Gateway. It must be an internal IP address of your router where your local LAN resides.
3)what should given for dns server?
Ans : If your network has the DNS server, then that you have to specify in dns server option. So that client will obtain the Proffered and Alternate DNS servers automatically. If your network does not have one, you dont need to care about dns servers option.
4)i have configured dhcp and the service is started but dhcpclients can't access net? they get ip address of my range.....but i din't find any details in my/var/lib/dhcp/dhcpclient-leases file.........
Ans : the lease file is normally /var/lib/dhcp/dhcpd.leases on your server. If there is no entry about your lease, you may have a look at ipconfig /all command on client. See what is the IP address of the dhcp server who provided the IP.
And about your second question, even I am not sure. I will be glad to know it from anybody else.
First of all I will suppose that you are running ISC dhcpd.
Quote:
2)is it essential to give ddns-update-style?interim or ht-doc?
2) ddns update is a method aimed at dns servers that change their IP's. let's say that you are running a dns server on a different host then that which you dhcp daemon runs on. now let's suppose that this dns server has no static ip, i.e. he gets a new IP at every IP refresh. ddns would inform your clients of that new IP so they can continue to resolve addresses. I suppose that you are using a static dns server or none of your own at all. hence this option should not be necessary ->
ddns-update-style=none
Quote:
3)what should given for dns server?
3) There are two options, depending on your network structure. usually your ISP will be running a couple of static DNS servers. These are the default option if you are running an LAN.
The second option is that your dhcp server is running on a cooperate network which offers its own intranet web services. In that case, there is a dns server present inside your network which you should define. You can also define both as a comma separated list.
This is not a parameter, this is an option, hence the syntax would look like:
option domain-name-servers IP1, IP2, IP3,...;
This is not part of the actual job of the dhcp server (i.e. handing out IPs to clients). consider it a bonus of modern software engineering.
Quote:
4)i have configured dhcp and the service is started but dhcpclients can't access net? they get ip address of my range.....but i din't find any details in my/var/lib/dhcp/dhcpclient-leases file.........
4) This indicates a problem. first of all you will have to find out whether the dhcpd is even running or has quietly shut down. do a "netstat -natup". this will list which programs have associated which address : port locally to which remote address : port using what protocol. You are looking for a program using UDP on port 67, that's dhcpd. If it does not show up, there is no server.
If the server is running execute "dhclient <interface>". this will run the dhcp client in the forground (not as server). it should exit after sending one or several DHCP_DISCOVER, REQUEST and ACCEPTS by displaying the IP. If it continuously sends DISCOVERs it indicates that the dhcps is not answering.
All the client is getting ip from my server but clients can't access net.do you any suspicions on it.
2) Can't my server get the first ip of my specified range dynamically as such in windows? Should i give static ip to my server?
I would highly advise that you assign a static IP to your server (at least the gateway and dns servers, dhcp answers by itself since DHCP_DISCOVER is a UDP broadcast).
In order to assign static IP's to a host, you need to add the following line to your config file:
I suggest you assign 10.0.0.1 to your server. you can get the mac address of your server be doing a "ifconfig -a". Please note that if your server is acting as a router, you have to pick the ethernet or token-ring interface responsible for you ethernet.
All the client is getting ip from my server but clients can't access net.do you any suspicions on it.
2) Can't my server get the first ip of my specified range dynamically as such in windows? Should i give static ip to my server?
Thanks,
Diana.K.
what i am thinking umm..
are you using 2 NIC ?.. if so just change your your option routers x.x.x.x(Ip of the fist ethernet)and it work ..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.