Community discussions

MikroTik App
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

USer Manager / DHCP / multiple subnets

Mon Jul 28, 2008 3:28 am

If I use User Manager for DHCP and on MT router I have two subnets assigned to two interfaces, user may connect to any of interfaces. How to set UserManager to assign different IP for the same user for each subnet?
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Re: USer Manager / DHCP / multiple subnets

Thu Jul 31, 2008 12:40 am

No solution?
 
msorensen
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Mon May 23, 2005 11:47 pm
Location: California

Re: USer Manager / DHCP / multiple subnets

Sat Aug 02, 2008 1:06 am

do not set a static ip for the user.

have a dynamic pool configured.

If no static IP is specified in UM, then the DHCP will use an IP from the pool associated with that interface and that DHCP server.
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Re: USer Manager / DHCP / multiple subnets

Mon Aug 04, 2008 11:47 pm

I understand that. Thing is, I need static IP assigned.
 
msorensen
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Mon May 23, 2005 11:47 pm
Location: California

Re: USer Manager / DHCP / multiple subnets

Wed Aug 06, 2008 12:28 am

then you specify the IP that you want to be assigned to that MAC address.

http://wiki.mikrotik.com/wiki/User_Manager/DHCP_Example

my testing suggests that the DHCP server will assign the IP address specifiied in the UM user record. It does even need to be within the designated DHCP scope - it will give that MAC the IP address that you specify in UM
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Re: USer Manager / DHCP / multiple subnets

Sun Aug 10, 2008 12:02 pm

Ok, I'll take this as you are joking with me. Go, find someone else.
 
msorensen
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Mon May 23, 2005 11:47 pm
Location: California

Re: USer Manager / DHCP / multiple subnets

Tue Aug 12, 2008 1:43 am

same user for each subnet
I admit that I missed this part of the problem.

You're right, that does complicate things... the only approach that I can think of to address this would be to not specify an IP in usermanager, and then set up a static ip reservation to that MAC in each of the (2) different DHCP servers.
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Re: USer Manager / DHCP / multiple subnets

Tue Aug 12, 2008 4:26 pm

That is how I do it now, but my idea is to use user manager to have all user settings centralized, including DHCP.
 
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: USer Manager / DHCP / multiple subnets

Sat Aug 23, 2008 1:30 am

same user for each subnet
I admit that I missed this part of the problem.

You're right, that does complicate things... the only approach that I can think of to address this would be to not specify an IP in usermanager, and then set up a static ip reservation to that MAC in each of the (2) different DHCP servers.
sedja

What msorensen said is unfortunately the only way you'll get it working. Whenever you make use of an IP pool, the first available IP in that pool would be chosen, unless you have static bindings.

Are you routing each user's IP in a different way, or what is the reason for wanting to do it this way? If you have say 5 different types of clients, you could make use of 5 different IP pools and route those pool's subnets accordingly, instead of giving each user a "static" DHCP IP. Please explain what it is you are trying to accomplish and why.
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Re: USer Manager / DHCP / multiple subnets

Tue Aug 26, 2008 1:39 am

LEt's simplify:

I run wireless community network. It is open, meaning, there are no restrictions for users to connect. However, I've set network to recognize registered members from visitors. Registered members get static IP leases, and guest get IP's from the pool.

Network is subnetted, and any registered user may connect in any subnet. Therefore I have to provide static IP for user regardles which subnet he connects to. All I have is users MAC.

Right now, I deal with this using DHCP only, but, it is hard to maintain, not because of one user is able to connect to any subnet, but just because all users are separated in subnets, and each subnet needs separate user administration. My idea was to use User Manager so I can handle all users in one place.

Now I am feced with this problem that User Manager can provide just one IP to one user, regardless which subnet he actually connects in.
 
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: USer Manager / DHCP / multiple subnets

Tue Aug 26, 2008 7:49 am

LEt's simplify:

I run wireless community network. It is open, meaning, there are no restrictions for users to connect. However, I've set network to recognize registered members from visitors. Registered members get static IP leases, and guest get IP's from the pool.

Network is subnetted, and any registered user may connect in any subnet. Therefore I have to provide static IP for user regardles which subnet he connects to. All I have is users MAC.

Right now, I deal with this using DHCP only, but, it is hard to maintain, not because of one user is able to connect to any subnet, but just because all users are separated in subnets, and each subnet needs separate user administration. My idea was to use User Manager so I can handle all users in one place.

Now I am feced with this problem that User Manager can provide just one IP to one user, regardless which subnet he actually connects in.
In UM you can make use of the IP Pool function. If you give the unregistered users a pool called eg "UnregisteredPool" and the registered users a pool called eg "RegisteredPool", you can simply route accordingly. This way you'll have to have two IP Pools on each highsite/hotspot, with those names (RegisteredPool and UnregisteredPool).

I'm sure you can create a workaround.

Just a question, but isn't it perhaps a better idea to give the registered users a PPPoE Account instead?
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Re: USer Manager / DHCP / multiple subnets

Tue Aug 26, 2008 2:16 pm

I am afraid I do not understand what you are saying :(

PPPoE is not an option. It would just make everything far too much complicated.
 
User avatar
NetworkPro
Forum Guru
Forum Guru
Posts: 1376
Joined: Mon Jan 05, 2009 6:23 pm
Location: bit.ly/the-qos
Contact:

Re: USer Manager / DHCP / multiple subnets

Sat Nov 07, 2009 2:52 am

Use HotSpot.

Who is online

Users browsing this forum: No registered users and 17 guests