LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux network does not work DHCP (https://www.linuxquestions.org/questions/linux-networking-3/linux-network-does-not-work-dhcp-4175698618/)

dima_ikar 08-02-2021 09:53 AM

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

TB0ne 08-02-2021 10:09 AM

Quote:

Originally Posted by dima_ikar (Post 6271679)
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.

baldur_1 08-02-2021 12:51 PM

i would start with that subnet you have...

tdsan 08-02-2021 02:28 PM

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


TB0ne 08-02-2021 03:34 PM

Quote:

Originally Posted by tdsan (Post 6271804)
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.

coltree 08-02-2021 07:30 PM

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)

dima_ikar 08-03-2021 03:35 AM

Quote:

Originally Posted by TB0ne (Post 6271842)
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


All times are GMT -5. The time now is 06:01 AM.