VLAN assignment based on NAS ID

Max Elzinga m.elzinga at felton.nl
Mon Mar 22 20:51:28 CET 2021


Hi Alan,

In what file do you want me to put: 

authorize {
	...

	if (&NAS-Port-Type == Ethernet) {
		if ( <ipv4prefix>&NAS-IP-Address =10.2.106.0/24) {
			update reply {
     		 	  &Tunnel-Type = VLAN,
      			  &Tunnel-Medium-Type = IEEE-802,
      			  &Tunnel-Private-Group-Id = 207,
			}
		}

		...
	}

Thanks.

Kind regards,

Max



More information about the Freeradius-Users mailing list