Community discussions

MikroTik App
 
razahyd192
just joined
Topic Author
Posts: 7
Joined: Wed Feb 15, 2012 8:46 pm

Can I lease an IP address for an user?

Fri Feb 17, 2012 9:46 pm

Hi
Can I lease an IP address for an user? if yes, then how?

I have tried my self to lease an IP address for user m.raza for example by going into IP->DHCP Server->Leases and adding a lease an IP address 10.0.0.100 for user m.raza but it didn't work. It is unable to assign IP address 10.0.0.100 to user m.raza.

can anyone help me regarding this issue.

thank you
M.Raza
 
tjc
Member Candidate
Member Candidate
Posts: 276
Joined: Sun Jul 10, 2011 3:08 am

Re: Can I lease an IP address for an user?

Sat Feb 18, 2012 7:54 pm

You're trying to do a static DHCP lease (LAN IP assignment) for a particualr user? You can do this one of two ways, either by MAC address, or by User Id. For User ID your DHCP client has to include that option (DHCP option 61) in it's request. For either you must add a static lease definition which includes one of those fields to identify the request. http://wiki.mikrotik.com/wiki/Manual:IP ... ver#Leases

Also see this recent thread for examples: http://forum.mikrotik.com/viewtopic.php?f=13&t=58045
 
razahyd192
just joined
Topic Author
Posts: 7
Joined: Wed Feb 15, 2012 8:46 pm

Re: Can I lease an IP address for an user?

Wed Feb 22, 2012 6:42 am

Thanks for reply

I have done example that you gave me but its not working. When i am dialing using PPPoE the DHCP Server assign me IP by self not that one that i have mention.

the work that i have tried showing you can see it below
/ip dhcp-server lease
add address=10.0.0.100 server=all client-id="m.raza"

Please reply me

Thank You.
 
nilesh
newbie
Posts: 29
Joined: Fri Jul 11, 2008 11:45 am

Re: Can I lease an IP address for an user?

Wed Feb 22, 2012 7:09 am

Try to do it with MAC address instead of Client ID.

You can also assign IP address to his PPPoe user.
 
tjc
Member Candidate
Member Candidate
Posts: 276
Joined: Sun Jul 10, 2011 3:08 am

Re: Can I lease an IP address for an user?

Thu Feb 23, 2012 4:10 am

For PPPoE you may need to do this via the user profile. See this page: http://wiki.mikrotik.com/wiki/PPP_AAA#User_Profiles

You probably need to set the remote-address there to the desired IP of 10.0.0.100.

While DHCP and PPPoE can use the same address pool, they're different mechanisms for getting the assignment.
 
razahyd192
just joined
Topic Author
Posts: 7
Joined: Wed Feb 15, 2012 8:46 pm

Re: Can I lease an IP address for an user?

Fri Feb 24, 2012 10:32 am

I have done my objective by assigning Remote Address.

thanks to all for giving me your valuable time.

Who is online

Users browsing this forum: aLinux09, Amazon [Bot], anav, GoogleOther [Bot], wsantos and 41 guests