Incorrect IP assignment. Broadcast assignment!

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
Frakko
DD-WRT User


Joined: 06 May 2016
Posts: 331

PostPosted: Sat Feb 22, 2025 11:50    Post subject: Incorrect IP assignment. Broadcast assignment! Reply with quote
Netgear R7800 - Firmware: DD-WRT v3.0-r59661 std (02/14/25)
Hello, I created two VLans with address 10.10.10.1/29 10.10.11.1/29. I assign DHCP to clients. The problem is that the first client that connects to the router gets address 10.10.1x.7! In practice, the broadcast and the client is, of course, not able to navigate and communicate.
Is it a bug Question Exclamation



3.png
 Description:
Screenshot
 Filesize:  50.34 KB
 Viewed:  535 Time(s)

3.png



2.png
 Description:
Screenshot
 Filesize:  30.49 KB
 Viewed:  535 Time(s)

2.png



1.png
 Description:
Screenshot
 Filesize:  22.92 KB
 Viewed:  535 Time(s)

1.png


Sponsor
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2133
Location: WV, USA

PostPosted: Sat Feb 22, 2025 18:03    Post subject: Reply with quote
Since your start address is 2, I believe your Max should be set to 5, not 6.

Also, the first one in the dhcp server list has a subnet mask of 28 (not 29 as mentioned in your post), so it's max could be as high as 13, again since you are starting with 2.

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16154
Location: Texas, USA

PostPosted: Sat Feb 22, 2025 20:10    Post subject: Reply with quote
The 10.10.20.1 subnet in the screenshot is 29, which shouldn't get a .7 DHCP assignment. Max usable hosts, including dhcp server is 6. I'm hesitant to say that this is a bug yet.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2133
Location: WV, USA

PostPosted: Sat Feb 22, 2025 20:20    Post subject: Reply with quote
@kp69 You said it better than I did. Given that his start address is .2 with a max of 6 addresses, that would make the last address 10.10.20.7 which of course is NOT usable as it's the broadcast address. So there may be a bug in that the dhcp server should not assign anything above 10.10.20.6 with a subnet of /29 and a network address of 10.10.20.0, regardless of the Max setting.

I may test this later, time permitting.

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3641
Location: Germany

PostPosted: Sat Feb 22, 2025 20:31    Post subject: Reply with quote
The DHCP server does not know any subnets, it does what you configure.
And if you configure nonsense then you will also get nonsense.

We're already used to that from the OP

_________________
Quickstart guides:

use Pi-Hole as simple DNS-Server with DD-WRT

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 24.10.1 - Gateway
Qualcomm IPQ8065 - R7800 - OpenWrt 24.10.1 - WAP
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2133
Location: WV, USA

PostPosted: Sat Feb 22, 2025 20:35    Post subject: Reply with quote
Ah, I was unaware the dhcp server is ignorant to the subnet. So it's definitely not a bug, just a bad configuration. No need to bother testing now that I know this. lol
_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16154
Location: Texas, USA

PostPosted: Sat Feb 22, 2025 22:21    Post subject: Reply with quote
Deja Vu (read both pages of thread). No matter how many times you tell someone something, it doesn't register.
h8red wrote:
Maximum DHCP users should be 5 not 6. Nr. 7 is your broacast address

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Frakko
DD-WRT User


Joined: 06 May 2016
Posts: 331

PostPosted: Sun Feb 23, 2025 8:45    Post subject: Reply with quote
The mistake arises from the fact that "MAX" is ambiguous. It is not clear whether the maximum refers to the number of configurable hosts or to the last IP. You have to put MAX (HOSTS) or an explanatory wording on the right, it would be advisable. On the /28 I typed wrong and it must have been /29 too. I hadn't noticed. I also tried starting from 1 to 6 but it doesn't seem to work correctly, (IP 1 is not addressed correctly, 10.10.10.0/29) I don't waste any more time in case you do the tests. Greetings.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6883
Location: UK, London, just across the river..

PostPosted: Sun Feb 23, 2025 9:32    Post subject: Reply with quote
https://www.youtube.com/watch?v=OqsXzkXfwRw

https://www.freecodecamp.org/news/subnet-cheat-sheet-24-subnet-mask-30-26-27-29-and-other-ip-address-cidr-network-references/

https://www.calculator.net/ip-subnet-calculator.html

DDWRT/DNSmasq DHCP is not that different...you can even start either from .64 or .100
you can use dhcp-sequential-ip to get the next available IP but, sadly it doesn't work like this always..

my personal experience...you have to be careful and know what you are doing...the use of /24
is the best...that...you can limit the IP range with DNSmasq and choose where to start..
so if you set limit at DHCP given IP to 8 and start from .100.....that would mean .100-.107 included..
as simple as that..

but as
ho1Aetoo wrote:
The DHCP server does not know any subnets, it does what you configure.
And if you configure nonsense then you will also get nonsense.

We're already used to that from the OP


Nothing could be done...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 58184 WAP
TP-Link WR1043NDv2 -DD-WRT 61745 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 61848 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x2VLAN,Vanilla
Netgear R7800 --DD-WRT 61848 Gateway/DNSCryptv2,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 61848 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Dynalink DL-WRX36-DDWRT 61745
Broadcom
Netgear R7000 --DD-WRT 61745 Gateway/DNScrypt-proxy2/AD-Block,IPset Firewall,Forced DNS,x4VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16154
Location: Texas, USA

PostPosted: Sun Feb 23, 2025 18:55    Post subject: Reply with quote
We're not here to fix your continued misunderstanding of basic IP subnet concepts. If I am not mistaken, this is the same "wording" regardless of what firmware is being used. This is a gross misconfiguration on your part, as already pointed out. Bye!
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Frakko
DD-WRT User


Joined: 06 May 2016
Posts: 331

PostPosted: Mon Feb 24, 2025 6:51    Post subject: Reply with quote
Frakko wrote:
The mistake arises from the fact that "MAX" is ambiguous. It is not clear whether the maximum refers to the number of configurable hosts or to the last IP. You have to put MAX (HOSTS) or an explanatory wording on the right, it would be advisable. On the /28 I typed wrong and it must have been /29 too. I hadn't noticed. I also tried starting from 1 to 6 but it doesn't seem to work correctly, (IP 1 is not addressed correctly, 10.10.10.0/29) I don't waste any more time in case you do the tests. Greetings.


Has anyone had time to do some verification tests?
Bye!

P.S. (to Kernel-pani69 I use an automatic translator but the tone did not seem very courteous to me.)
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3641
Location: Germany

PostPosted: Mon Feb 24, 2025 9:54    Post subject: Reply with quote
There's nothing to test and you're annoying us with your nonsense.

When you create a new DHCP server the settings are start=100 and max=50
So question answered??

The last IP address is 149 and cannot be 50 because it only starts at 100.

Always the same stupid questions from you... if this is too difficult for you then don't play around with it and use full /24 subnets like any normal person.

Topic closed

_________________
Quickstart guides:

use Pi-Hole as simple DNS-Server with DD-WRT

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 24.10.1 - Gateway
Qualcomm IPQ8065 - R7800 - OpenWrt 24.10.1 - WAP
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16154
Location: Texas, USA

PostPosted: Wed Feb 26, 2025 15:18    Post subject: Reply with quote
I concur on topic closed. You were given the same answer over 8 - almost 9 years ago on how to fix this. There is nothing to fix except entering the correct value.

EDIT/UPDATE: Here's your "verification test":




_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum