Hi, I have multivlan wide l2 network and need to implement vmps. I made server work for single vlan, but I need to make it work with many vlans and mac2vlan file(I have about 300 hosts). Tell me how to enable mac2vlan module(if that is a module), when I remove the # sign from the mapping example line, server crashes with parse error, after the mac address. Here is the debug output that works for a single vlan Waking up in 4.9 seconds. Cleaning up request 19 ID 10529 with timestamp +1165 Ready to process requests. VMPS-Packet-Type = VMPS-Reconfirm-Request VMPS-Error-Code = VMPS-No-Error VMPS-Sequence-Number = 10545 VMPS-Client-IP-Address = 192.168.10.218 VMPS-Port-Name = "Fa0/16" VMPS-VLAN-Name = "default" VMPS-Domain-Name = "vivaro" VMPS-Unknown = 0x01 VMPS-Cookie = f4:6d:04:48:36:5f Doing VMPS +- entering group vmps {...} expand: %{VMPS-Mac} -> ++[reply] returns noop Done VMPS VMPS-VLAN-Name = "default" VMPS-Cookie = 00:00:00:00:00:00 Finished request 20. Going to the next request Waking up in 4.9 seconds. Cleaning up request 20 ID 10545 with timestamp +1225 Ready to process requests. and here is the configuration prefix = /usr exec_prefix = /usr sysconfdir = /etc localstatedir = /var sbindir = /usr/sbin logdir = ${localstatedir}/log/radius raddbdir = ${sysconfdir}/raddb radacctdir = ${logdir}/radacct log_file = /var/log/radius/vmpsd.log log_destination = files libdir = @libdir@ pidfile = ${localstatedir}/run/vmps.pid max_request_time = 30 cleanup_delay = 5 listen { ipaddr = * port = 1589 type = vmps interface = eth1 } hostname_lookups = no allow_core_dumps = no log { syslog_facility = daemon } thread pool { start_servers = 5 max_servers = 32 min_spare_servers = 3 max_spare_servers = 10 max_requests_per_server = 0 } $INCLUDE clients.conf vmps { update reply { VMPS-Packet-Type = VMPS-Join-Response VMPS-VLAN-Name = "default" VMPS-Cookie = "%{VMPS-Mac}" } } Best, Edik.
Edik Mkoyan wrote:
I have multivlan wide l2 network and need to implement vmps. I made server work for single vlan, but I need to make it work with many vlans and mac2vlan file(I have about 300 hosts). Tell me how to enable mac2vlan module(if that is a module), when I remove the # sign from the mapping example line, server crashes with parse error, after the mac address.
OK... so why didn't you paste that output here? It isn't secret. What line does it fail on? What is the *exact* error?
Here is the debug output that works for a single vlan Waking up in 4.9 seconds. Cleaning up request 19 ID 10529 with timestamp +1165 Ready to process requests. VMPS-Packet-Type = VMPS-Reconfirm-Request VMPS-Error-Code = VMPS-No-Error VMPS-Sequence-Number = 10545 VMPS-Client-IP-Address = 192.168.10.218 VMPS-Port-Name = "Fa0/16" VMPS-VLAN-Name = "default" VMPS-Domain-Name = "vivaro" VMPS-Unknown = 0x01 VMPS-Cookie = f4:6d:04:48:36:5f
And there's no VMPS-Mac in the packet.
Doing VMPS +- entering group vmps {...} expand: %{VMPS-Mac} ->
See? Nothing.
and here is the configuration
Which has been massively butchered. Please don't do that. Start off with the default configuration. Then, make one change and test it. If it works, make another change. It looks like you've completely changed everything... and then are surprised that it doesn't work. Well, don't do that. Alan DeKok.
participants (2)
-
Alan DeKok -
Edik Mkoyan