Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I'm running Sl-6 and tried using the default sample configuration for /etc/dhcp/dhcpd.conf that comes with the distro, no luck. Tried using a configuration that I found on an online howto and still no luck. Ran "chmod -R 777 /etc/dhcp/dhcpd.conf" and still no good. Tried both "service dhcpd restart" and "/etc/init.d/dhcpd restart" and both commands failed. Also tried rebooting. What am I missing? Any help would be greatly appreciated! CB
I'm running Sl-6 and tried using the default sample configuration for /etc/dhcp/dhcpd.conf that comes with the distro, no luck. Tried using a configuration that I found on an online howto and still no luck. Ran "chmod -R 777 /etc/dhcp/dhcpd.conf" and still no good. Tried both "service dhcpd restart" and "/etc/init.d/dhcpd restart" and both commands failed. Also tried rebooting. What am I missing? Any help would be greatly appreciated! CB
Paste in your dhcpd.conf. Also, tell us what you expect your DHCP server to be doing, or how you know that it is failing.
option domain-name "lab.com"; option domain-name-servers 8.8.8.8, 8.8.4.4; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.101 192.168.1.254; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.100; option domain-name-servers home; } default-lease-time 600; max-lease-time 7200; authoritative
# the above is total content of /etc/dhcp/dhcpd.conf. When I issue "service dhcpd start" or /etc/init.d/dhcpd start" I get [FAILED]. Also, I want the server to provide networking info for vm's I want to install using Kickstart. The Kickstart thing is a whole nother ball of wax. The installs hang at the language selection screen so that the installs are not "fully automated". But thats for another thread. Thanks for responding. CB
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Put your config file contents in [.CODE]...[./CODE] tags. Use the hash mark in the toolbar above the edit window.
What is the IP address of your network.
Please be aware that in order for other members to be able to help you, the challenge is to put as much information as possible. This is not a game to see what is the minimum amount of information you can look up and post and see how many members try to guess a solution.
The broadcast address is 192.168.1.255. I did look at /var/log/messages but am not sure what I should looking for. Also, jlinkels, I'm not sure what you mean by "Put your config file contents in [.CODE]...[./CODE] tags. Use the hash mark in the toolbar above the edit window." I don't get that, please explain. CB
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by cbider
The broadcast address is 192.168.1.255.
Is it too much effort to write down the IP address and netmask as listed by ifconfig?
Quote:
Originally Posted by cbider
I did look at /var/log/messages but am not sure what I should looking for.
Maybe any messages mentioning DHCP? It is the DHCP server that give you trouble, isn't it? Do you have a /var/log/syslog file? Not all systems have it, but in case you have one, look into it. Yes, for any messages mentioning DHCP.
Quote:
Originally Posted by cbider
Also, jlinkels, I'm not sure what you mean by "Put your config file contents in [.CODE]...[./CODE] tags. Use the hash mark in the toolbar above the edit window." I don't get that, please explain. CB
Maybe one of the other members can point you to a guide how to use the editor window. I'd like to do it but I can't currently find one here on LQ. If no one answers, try to remember editor window, toolbar above it, hash mark. A hash mark is a character which looks like '#'. Compare it with all symbols on the toolbar.
Type [code] paste your configuration into following space. Then type [/ code](without the extra space. That will keep the formatting of your configuration file.
Look in /var/log/messages for anything pertaining to dhcp. Paste it here. We'll help you. If you don't do that, we can't help.
First, Thanks to all who replied. In case I was not clear, the issue was being unable to start the dhcp server. Intense googling revealed that I needed to insert a semicolon after the the "authoritative" declaration. Problem solved, dhcp server is now started. CB
I'm running Sl-6 and tried using the default sample configuration for /etc/dhcp/dhcpd.conf that comes with the distro, no luck. Tried using a configuration that I found on an online howto and still no luck. Ran "chmod -R 777 /etc/dhcp/dhcpd.conf" and still no good. Tried both "service dhcpd restart" and "/etc/init.d/dhcpd restart" and both commands failed. Also tried rebooting. What am I missing? Any help would be greatly appreciated! CB
Nowhere here do I see "I tried to start it and it gave me '[FAILED]'"
So next time, state everything you can think of that pertains to the problem.
To wit:
"I am doing XYZ and when I do THIS, THIS happens, instead of THAT.
Here is what I've tried to do to resolve the issue:
1
2
3
4
5
**NOTE: you did this step well**
Here are the relevant config files:
Code:
Put your config files in CODE tags
Here are some of the log examples from /var/log/LOGNAME:
Blah. Blah. Blah."
Then we can do our best to try to help you out, rather than poking around in the dark. We might have seen a missing punctuation if we weren't staring at a blob of text, instead of a config file on a code block.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.