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:
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 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.
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
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…