'How can FreeRADIUS assign a VLAN to a MAC adress?

So, i just started recently working on freeRADIUS and i'm trying to assignate one MAC adress to one VLAN. This is just a static test, i generated a MAC adress and i want to assignate the VLAN 101 to it.

This is how my users file look like :

00:16:3e:07:bf:76 Cleartext-Password := "testing123"
    Reply-Message := "Hey, test is working !"
    DEFAULT Auth-Type := EAP
    Tunnel-Type = 13,
    Tunnel-Medium-Type = 16,
    Tunnel-Private-Group-Id = 101

Sorry for my bad english if i made mistakes ! And thank you for your attention :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source