Community discussions

 
User avatar
dasiu
Trainer
Trainer
Topic Author
Posts: 232
Joined: Fri Jan 30, 2009 11:41 am
Location: Reading, UK
Contact:

DHCP server when Radius goes offline

Wed Jun 17, 2009 4:01 pm

I am wondering about one question. I have a RouterOS router with dhcp server using Radius. When a known mac-address tries to connect, it gets good IP address from Radius database. If the MAC is unknown, it gets a dhcp lease from a pool defined on the router. It works fine.
But when Radius connection is not available (dhcp,error,warning,info,debug ether2: radius authentication failed for 00:22:15:E3:D8:5B: RADIUS server is not responding), I get no lease at all (169.254..). Is there any way for dhcp server on RouterOS to assign addresses from a pool when Radius server is not responding?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6616
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: DHCP server when Radius goes offline

Thu Jun 18, 2009 10:55 am

The requested configuration is possible only with scripts.

As the sequence for user authorization is the following,

- firstly, local DHCP database (/ip dhcp-server lease) is checked;
- then, RADIUS server is contacted.

It means, when RADIUS server is not responding, you can get address from local database. But when addresses are assigned from local database, no information is being sent to RADIUS server.

You can make script, which will ping RADIUS server and when it is not responding, enable DHCP authorization from local database.
 
User avatar
dasiu
Trainer
Trainer
Topic Author
Posts: 232
Joined: Fri Jan 30, 2009 11:41 am
Location: Reading, UK
Contact:

Re: DHCP server when Radius goes offline

Thu Jun 18, 2009 4:07 pm

Thanks for information and for the idea! :)
I will try to write the script soon ;).
 
ccrum
newbie
Posts: 31
Joined: Sun Jul 11, 2004 5:49 am

Re: DHCP server when Radius goes offline

Tue Feb 14, 2017 5:02 pm

I realize this is an old thread, but how did you get it to give an ip when the Mac is unknown?

Who is online

Users browsing this forum: No registered users and 60 guests