asignacion de vlan lista

This commit is contained in:
2025-09-24 16:41:40 -06:00
parent c77ec9943b
commit 85886f1fed
2 changed files with 36 additions and 2 deletions

View File

@@ -40,7 +40,28 @@ server default {
}
post-auth {
# Añadir atributos dinámicos (VLAN/BW) también en EAP (outer reply)
rest
# Asignación de VLAN dinámica por usuario
if (&User-Name == "user1") {
update reply {
Tunnel-Type := VLAN
Tunnel-Medium-Type := IEEE-802
Tunnel-Private-Group-Id := "2"
}
}
elsif (&User-Name == "user2") {
update reply {
Tunnel-Type := VLAN
Tunnel-Medium-Type := IEEE-802
Tunnel-Private-Group-Id := "5"
}
}
else {
# Fallback opcional: comentar si no quieres valor por defecto
update reply {
Tunnel-Type := VLAN
Tunnel-Medium-Type := IEEE-802
Tunnel-Private-Group-Id := "2"
}
}
}
}