LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2021, 09:53 AM   #1
dima_ikar
LQ Newbie
 
Registered: Aug 2021
Posts: 10

Rep: Reputation: Disabled
Linux network does not work DHCP


Here is my mistake

/etc/dhcp/dhcpd.conf line 1437: subnet 10.100.179.254 netmask 255.255.254.0: bad subnet number/mask combination.
Aug 02 10:33:02 localhost.localdomain dhcpd[10131]: subnet 10.100.179.254 netmask 255.255.254.0

my network 10.100.178.0/23
L2

help me please

Last edited by dima_ikar; 08-02-2021 at 09:55 AM.
 
Old 08-02-2021, 10:09 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,638

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dima_ikar View Post
Here is my mistake

/etc/dhcp/dhcpd.conf line 1437: subnet 10.100.179.254 netmask 255.255.254.0: bad subnet number/mask combination.
Aug 02 10:33:02 localhost.localdomain dhcpd[10131]: subnet 10.100.179.254 netmask 255.255.254.0

my network 10.100.178.0/23
L2

help me please
Not sure what to help you with; you don't give us any details about your system or what you're trying to do, set up, etc. Not even version/distro of Linux. The error is clear; you've put in a bad subnet number/mask combination. Fix it, in accordance with your network, so talk to your network admins.

And there are loads of netmask calculators you can find online...try putting your subnet into one and look at the netmask.
 
Old 08-02-2021, 12:51 PM   #3
baldur_1
Member
 
Registered: Sep 2010
Posts: 275

Rep: Reputation: 28
i would start with that subnet you have...
 
Old 08-02-2021, 02:28 PM   #4
tdsan
LQ Newbie
 
Registered: Aug 2011
Posts: 26

Rep: Reputation: Disabled
Per the last response, I would change the ip range and subnet

For example:

Existing
Code:
Range 10.100.178.254 subnet 255.255.254.0 (/23)
Change to
Code:
Range 10.100.178.0 subnet 255.255.254.0 (/23)
Gives you the range of 10.100.178.1 - 10.100.179.254

Last edited by tdsan; 08-02-2021 at 02:31 PM.
 
Old 08-02-2021, 03:34 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,638

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tdsan View Post
For example:
Existing
Code:
Range 10.100.178.254 subnet 255.255.254.0 (/23)
Change to
Code:
Range 10.100.178.0 subnet 255.255.254.0 (/23)
Gives you the range of 10.100.178.1 - 10.100.179.254
Yep...that's what the error message told the OP, that the subnet mask was incorrect, and that's why they were directed to use one of the many calculators, which would have told them the correct range/mask.

We don't know anything from the OP, aside from the very obvious error message.
 
Old 08-02-2021, 07:30 PM   #6
coltree
Member
 
Registered: Nov 2003
Location: Jacobs Well, Queensland AU
Distribution: OpenBSD
Posts: 102
Blog Entries: 1

Rep: Reputation: 34
basically solved by TBOne

subnet ID 10.100.178.0
subnet mask 255.255.254.0
broadcast address 10.100.179.255
mask bits (23)
host address range 10.100.178.1 - 10.100.179.254 (510 hosts)

Last edited by coltree; 08-02-2021 at 07:32 PM.
 
2 members found this post helpful.
Old 08-03-2021, 03:35 AM   #7
dima_ikar
LQ Newbie
 
Registered: Aug 2021
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Yep...that's what the error message told the OP, that the subnet mask was incorrect, and that's why they were directed to use one of the many calculators, which would have told them the correct range/mask.

We don't know anything from the OP, aside from the very obvious error message.
Thanks
solution 10.100.178.0 subnet 255.255.254.0 was correct
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openSUSE static IP does not work, but DHCP does reefa Linux - Hardware 7 12-16-2007 11:35 AM
openSUSE 10.3 static IP does not work, but DHCP does reefa Linux - Networking 5 12-16-2007 05:47 AM
Java does not work, I DLed Java and it still does not work M$ISBS Linux - Newbie 0 04-15-2007 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration