Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 have been trying to install my DHCP server. I am seeing this error message after I typed:
systemctl status -l dhcpd
active: failed
The error messages followed after that. And I get this "bad subnet number/mask combination" error message.
My IP is 192.168.1.138 and netmask is 255.255.255.0 (I acquired these addresses after I typed ifconfig).
Then I set my network setting to these addresses.
And the error says there is an indication that the last "0" is the bad choice. I have also tried /30, and still didn't work.
And now this system is not even connected to the internet (server not found), although the connection is good. Nothing wrong with router, or the modem.
But if I typed 192.168.1.138, my Apache server is up.
We would need to know more to understand your issue. But...
mask 255.255.255.0 would match the format /24 not /30.
What is at 192.168.1.138? Is that your DHCP server address, or your workstation node (dhcp client) address?
Is that also your router and so your default gateway, or is that another node?
WHERE are you seeing this error message, at the server, the client, or elsewhere? And under what conditions or in what file?
Could you provide more information about the what you have done? The exact text of the relevant portions of configuration files would likely be most helpful; be sure to surround them with "code" tags, which become available when you click the "Go Advanced" button beneath the "compose post" window.
192.168.1.138 is the IP address for this DHCP server AND the for the network setting. My dhcp client is on another machine.
This DHCP server is connected to a router.
I am seeing this message after I typed:
systemctl status -l dhcpd
active: failed
and the error messages followed after that.
Thanks again,
Denny
Quote:
Originally Posted by wpeckham
We would need to know more to understand your issue. But...
mask 255.255.255.0 would match the format /24 not /30.
What is at 192.168.1.138? Is that your DHCP server address, or your workstation node (dhcp client) address?
Is that also your router and so your default gateway, or is that another node?
WHERE are you seeing this error message, at the server, the client, or elsewhere? And under what conditions or in what file?
The range can be anything within 192.168.1.1 - 1.192.168.254 but it can not include the router and the IP address of the DHCP server itself. You can also have multiple ranges. The DHCP server does have a static IP address?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.