Community discussions

MikroTik App
 
newkirk
just joined
Topic Author
Posts: 11
Joined: Tue May 19, 2009 8:15 pm

DHCP use Wildcard MAC to select pool?

Thu Dec 31, 2009 7:31 pm

Is there any way to use a MAC wildcard to select a different IP pool? For example, we'd like to be able to put any device with a 0a:00:3e:*:*:* MAC address in a distinct IP pool. (that's the OUI for motorola canopy gear, this would let us utilize DHCP for client radios in bridge mode but have them in a different subnet than the end-users' routers or PCs)

j
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: DHCP use Wildcard MAC to select pool?

Thu Dec 31, 2009 7:50 pm

Not with the RouterOS DHCP server. ISC's reference DHCP implementation should be able to do this by matching the vendor identifier option.
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: DHCP use Wildcard MAC to select pool?

Fri Jan 01, 2010 10:38 pm

This is a feature that I've asked for in the past. I'm casting my vote for it here again. :-)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: DHCP use Wildcard MAC to select pool?

Mon Jan 04, 2010 9:39 pm

for now, it's possible only with RADIUS...
 
ejmerkel
newbie
Posts: 33
Joined: Wed Jun 03, 2009 8:26 pm

Re: DHCP use Wildcard MAC to select pool?

Mon Aug 16, 2010 6:55 pm

Just to clarify your post, does the MAC listed in radius have to be specific or can it be done thru a wildcard entry somehow like 0a:00:3e:*:*:*?
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Re: DHCP use Wildcard MAC to select pool?

Mon Aug 16, 2010 7:07 pm

I would love this option.

+1
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: DHCP use Wildcard MAC to select pool?

Mon Aug 16, 2010 7:17 pm

Just to clarify your post, does the MAC listed in radius have to be specific or can it be done thru a wildcard entry somehow like 0a:00:3e:*:*:*?
This depends on your radius server (not MT).
 
ejmerkel
newbie
Posts: 33
Joined: Wed Jun 03, 2009 8:26 pm

Re: DHCP use Wildcard MAC to select pool?

Mon Aug 16, 2010 9:38 pm

I am using Freeradius. Does it support wildcard macs? Time to do some digging.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: DHCP use Wildcard MAC to select pool?

Mon Aug 16, 2010 9:49 pm

maybe something like
        attr_rewrite my_super_parser {
                attribute = User-Name
                searchin = packet
                searchfor = "^00:BE:EF:.*$"
                replacewith = "00:BE:EF"
                ignore_case = no
                new_attribute = no
                max_matches = 1
                append = no
        }
in "modules" block, then add that module in "authorize" section

and after that add a record for user "00:BE:EF"
 
ejmerkel
newbie
Posts: 33
Joined: Wed Jun 03, 2009 8:26 pm

Re: DHCP use Wildcard MAC to select pool?

Mon Aug 16, 2010 10:04 pm

maybe something like
        attr_rewrite my_super_parser {
                attribute = User-Name
                searchin = packet
                searchfor = "^00:BE:EF:.*$"
                replacewith = "00:BE:EF"
                ignore_case = no
                new_attribute = no
                max_matches = 1
                append = no
        }
in "modules" block, then add that module in "authorize" section

and after that add a record for user "00:BE:EF"
Cool that sounds like the way to go. I have another follow-up question along this line if you will bear with me.

Now, let's assume I have two wireless cards in the AP (wlan1 & wlan2) which are not bridged together but instead have two different real IP subnets. I also want to overlay a private IP subnet onto each wlan card for managing of the transparent wireless devices (00:BE:EF:*:*:*) . I want to hand out these private IP's to these devices via the radius attribute Framed-Pool. Since there are two separate subnets, hence two different pool names, how would you accomplish this?

Eric
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: DHCP use Wildcard MAC to select pool?

Mon Aug 16, 2010 11:52 pm

huh... I'm not familiar with FreeRADIUS...

two interfaces = two DHCP servers. so you need to set Framed-Pool depending on Called-Station-Id (it's DHCP server name)

Who is online

Users browsing this forum: gerryho, tigro11 and 19 guests