Community discussions

MikroTik App
 
ToniBizjak
just joined
Topic Author
Posts: 1
Joined: Wed Nov 28, 2018 3:07 pm

dhcp-server matcher filter

Thu Dec 22, 2022 12:34 pm

Is it possible to use wildcard (*,!, %, ...) or some operator like "starts with" in /ip dhcp-server value= matcher command?
If I want to separate IP addresses to different pools, I use script like this:
/ip dhcp-server matcher
add address-pool=pool54PhoneA code=60 name=android-09 server=D54 value=android-dhcp-9
add address-pool=pool54PhoneA code=60 name=android-12 server=D54 value=android-dhcp-12
add address-pool=pool54PhoneA code=60 name=android-08 server=D54 value=android-dhcp-8.0.0
add address-pool=pool54PhoneA code=60 name=androidHCLT server=D54 value=HUAWEI:android:CLT
add address-pool=pool54PhoneA code=60 name=androidHYAL server=D54 value=HUAWEI:android:YAL
add address-pool=pool54PhoneA code=60 name=androidHVOG server=D54 value=HUAWEI:android:VOG
add address-pool=pool54PC code=60 name=PC server=D54 value="MSFT 5.0"

Every HUAWEI type of phones and every generation of Android uses different value, so I want to group them, like:
add address-pool=pool54PhoneA code=60 name=android server=D54 value=android-dhcp*
add address-pool=pool54PhoneA code=60 name=androidH server=D54 value=HUAWEI:android*
 
2bn2t
just joined
Posts: 18
Joined: Fri Jul 09, 2021 11:17 am

Re: dhcp-server matcher filter

Tue Nov 28, 2023 4:21 pm

I’m in need of this too.


Sonos Devices :roll: answer for Class-Id = "udhcp 0.9.8" :?
(Hostname is usually "SonosZP" but somehow I did change it on some Devices.)


Matching by a RegEx for all the MAC Adresses the Manufacturer uses would be helpful.
Obviously there are a Bunch of Vendors that can’t even set a sensible Class-Id…
 
cmcawood
just joined
Posts: 3
Joined: Wed Feb 27, 2013 1:09 am

Re: dhcp-server matcher filter

Wed Mar 27, 2024 4:20 pm

*bump* Really need this feature - would be great to have a wildcard matcher. Any news on this?
 
2bn2t
just joined
Posts: 18
Joined: Fri Jul 09, 2021 11:17 am

Re: dhcp-server matcher filter

Wed Mar 27, 2024 6:03 pm

Same for me.
Still interested.
 
netmas
just joined
Posts: 8
Joined: Mon Nov 20, 2023 4:10 pm

Re: dhcp-server matcher filter

Fri Jun 14, 2024 9:17 am

I have good news. My ticket to Mikrotik was heard. I received feedback:
Just letting you know that we have added "matching-type" to the matcher, there will be options "exact" and "substring". It will be available in next 7.16beta release.
PS: It is not yet included in 7.16beta2, so I am waiting very excitedly and with anticipation for the next beta release
 
cmcawood
just joined
Posts: 3
Joined: Wed Feb 27, 2013 1:09 am

Re: dhcp-server matcher filter

Fri Jun 14, 2024 9:45 am

Amazing!

Very excited for this!
 
bbs2web
Member Candidate
Member Candidate
Posts: 234
Joined: Sun Apr 22, 2012 6:25 pm
Location: Johannesburg, South Africa
Contact:

Re: dhcp-server matcher filter

Fri Nov 15, 2024 12:44 pm

My interest in filtering DHCP vendor attributes relates to us wanting to send a different boot file for hosts in UEFI x64 mode and those in legacy PXE BIOS mode.

Who is online

Users browsing this forum: DimaFIX and 1 guest