How can I give IP address to clients radius+routerOS dhcpd

hello, sorry for my bad English
Such situation:

can I give IP addresses to my clients using my radius server (by atribute Framed-IP-address) if I shall use for identify of client - the IP address of switch and user`s port number ?

in mikrotik docs

We assume that you already have installed FreeRADIUS. Just add these lines to specified files:

users file:

00:0B:6B:31:02:4B Auth-Type := Local, Password == “”
Framed-IP-Address = 192.168.0.55

here client`s mac as username
How can I give to client ip address using switch IP or mac address and port where user is connected using DHCP of mikrotik?
DHCP-RADIUS.JPG

Dhcp with radius uses the mac address as the user name. That is what the dhcp server sends to radius, and expects Access-Accept with either Framed-IP-Address or Framed-Pool in the return.

for example

Switch IP 192.168.5.2 port number 5 so my billing inserts to radius file users
192.168.5.2_5 Auth-Type := Local, Password == “”
Framed-IP-Address = 10.0.16.15

so DHCPd asks on radius for user 192.168.5.2_5

is such schema real?

may be feature request?

Yes, but I think that would not be a Mikrotik feature. That would be the login script on the FreeRADIUS server. You could modify it so standard mac addresses could be replaced with other data sent by the router dhcp server for the username. But Mikrotik routers, as do about all others, sends the mac address as the username for dhcp requests. It’s like a standard or something…

Also, from what I understand, if Framed-Pool is used, the pool must exist on each router itself (thus can’t be managed completely by RADIUS).