Re : Radius+Huwaei switch + auto VLan Assignment issue
Thanks very much for your answers. In our eap section, we had the following : copy_request_to_tunnel = no use_tunneled_reply = no Since we change these to : copy_request_to_tunnel = yes use_tunneled_reply = yes The Access-Accept message send VLAN attributes as below : Sending Access-Accept of id 43 to 192.168.100.5 port 5001 Framed-Protocol = PPP Framed-Compression = Van-Jacobson-TCP-IP Tunnel-Private-Group-Id:0 = "2" Tunnel-Medium-Type:0 = IEEE-802 Tunnel-Type:0 = VLAN User-Name = "toto" MS-MPPE-Recv-Key = 0x69f0f1c436ccbe11df23099070ca2c3ceb6116c3246344a8d2c78c96a68fa146 MS-MPPE-Send-Key = 0x6aad292ef955ae61e910e51a9ae7d2b903f5e123c48dc4cc0e12f713490d2aa3 EAP-Message = 0x030b0004 Message-Authenticator = 0x00000000000000000000000000000000 Mon Jun 22 16:08:39 2009 : Debug: Finished request 10. Mon Jun 22 16:08:39 2009 : Debug: Going to the next request Mon Jun 22 16:08:39 2009 : Debug: Waking up in 4.0 seconds. Unfortunatly, the switch still not switching the port from VLAN 1 to VLAN 2. Maybe there is other misconfigurations on our switch or another settings in radius configurations ? Any ideas to help please! Best regards. ________________________________ De : "A.L.M.Buxey@lboro.ac.uk" <A.L.M.Buxey@lboro.ac.uk> À : FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Envoyé le : Lundi, 22 Juin 2009, 11h29mn 47s Objet : Re: Radius+Huwaei switch + auto VLan Assignment issue hi, have you set the copy tunnel = yes for the PEAP section in eap.conf? alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
Unfortunatly, the switch still not switching the port from VLAN 1 to VLAN 2. Maybe there is other misconfigurations on our switch or another settings in radius configurations ?
it looks like theres another config you need to set on the switch port to ensure the AAA server values are taken... check our documentation for things like vlan-assignment-mode (your switch probably uses the VLAN name to tag things rather than its ID number!) alan
________________________________ De : "A.L.M.Buxey@lboro.ac.uk" <A.L.M.Buxey@lboro.ac.uk> À : FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Envoyé le : Lundi, 22 Juin 2009, 19h16mn 31s Objet : Re: Re : Radius+Huwaei switch + auto VLan Assignment issue The domain configuration on our switch look like this : [uac_quid002]dis domain uacdom The contents of Domain uacdom: State = Active RADIUS Scheme = uac_aaa Authentication : RADIUS Scheme = uac_aaa Access-limit = Disable Vlan-assignment-mode = Integer Domain User Template: Idle-cut = Disable Self-service = Disable Messenger Time = Disable So the Vlan-assignment-mode in the domain is Integer. But as the Access-Accept message return Vlan ID in this format : Tunnel-Private-Group-Id:0 = "2" It seems we'd better set Vlan-assignment-mode to string. We'll get you informed. Thanks very much. alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Hi,
Unfortunatly, the switch still not switching the port from VLAN 1 to VLAN 2. Maybe there is other misconfigurations on our switch or another settings in radius configurations ?
it looks like theres another config you need to set on the switch port to ensure the AAA server values are taken... check our documentation for things like vlan-assignment-mode (your switch probably uses the VLAN name to tag things rather than its ID number!)
The Switch documentation said: If set to Integer the Vlan-assignment-mode allow the switch to use VLAN ID to tag frames. If set to String it uses VLAN Name instead. We've set the domain as follow : [uac_quid002]dis dom uacdom The contents of Domain uacdom: State = Active RADIUS Scheme = uac_aaa Authentication : RADIUS Scheme = uac_aaa Access-limit = Disable Vlan-assignment-mode = String Domain User Template: Idle-cut = Disable Self-service = Disable Messenger Time = Disable Then change VLAN 2 name from 'Students' to '2', just to match the given value in user toto's record within our LDAP directory. But this does not work. Any idea to help please! ________________________________ De : Attou eric <gouroueric@yahoo.fr> À : FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Envoyé le : Mardi, 23 Juin 2009, 9h20mn 12s Objet : Re : Re : Radius+Huwaei switch + auto VLan Assignment issue ________________________________ De : "A.L.M.Buxey@lboro.ac.uk" <A.L.M.Buxey@lboro.ac.uk> À : FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Envoyé le : Lundi, 22 Juin 2009, 19h16mn 31s Objet : Re: Re : Radius+Huwaei switch + auto VLan Assignment issue The domain configuration on our switch look like this : [uac_quid002]dis domain uacdom The contents of Domain uacdom: State = Active RADIUS Scheme = uac_aaa Authentication : RADIUS Scheme = uac_aaa Access-limit = Disable Vlan-assignment-mode = Integer Domain User Template: Idle-cut = Disable Self-service = Disable Messenger Time = Disable So the Vlan-assignment-mode in the domain is Integer. But as the Access-Accept message return Vlan ID in this format : Tunnel-Private-Group-Id:0 = "2" It seems we'd better set Vlan-assignment-mode to string. We'll get you informed. Thanks very much. alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Hi,
Unfortunatly, the switch still not switching the port from VLAN 1 to VLAN 2. Maybe there is other misconfigurations on our switch or another settings in radius configurations ?
it looks like theres another config you need to set on the switch port to ensure the AAA server values are taken... check our documentation for things like vlan-assignment-mode (your switch probably uses the VLAN name to tag things rather than its ID number!)
The Switch documentation said:
If set to Integer the Vlan-assignment-mode allow the switch to use VLAN ID to tag frames.
If set to String it uses VLAN Name instead. So the Vlan-assignment-mode in the domain is Integer. But as the Access-Accept message return
Vlan ID in this format :
Tunnel-Private-Group-Id:0 = "2"
It seems we'd better set Vlan-assignment-mode to string.
How sure are you that your switch supports dynamic VLAN assignment (via radius not console)? Does it say that anywhere in the documentation? Ivan Kalik Kalik Informatika ISP
Here is exactly the part of the documentation relative dynamique vlan-assignment through radius authentication : 1.3.5 Configuring Dynamic VLAN Assignment The dynamic VLAN assignment feature enables a switch to dynamically add the switch ports of successfully authenticated users to different VLANs according to the attributes assigned by the RADIUS server, so as to control the network resources that different users can access. Currently, the switch supports the following two types of assigned VLAN IDs: integer and string. l Integer: If the RADIUS authentication server assigns integer type of VLAN IDs, you can set the VLAN assignment mode to integer on the switch (this is also the default mode on the switch). Then, upon receiving an integer ID assigned by the RADIUS authentication server, the switch adds the port to the VLAN whose VLAN ID is equal to the assigned integer ID. If no such a VLAN exists, the switch first creates a VLAN with the assigned ID, and then adds the port to the newly created VLAN. l String: If the RADIUS authentication server assigns string type of VLAN IDs, you can set the VLAN assignment mode to string on the switch. Then, upon receiving a string ID assigned by the RADIUS authentication server, the switch compares the ID with existing VLAN names on the switch. If it finds a match, it adds the port to the corresponding VLAN. Otherwise, the VLAN assignment fails and the user fails the authentication. In actual applications, to use this feature together with Guest VLAN, you should better set port control to port-based mode. Table 1-9 Configure dynamic VLAN assignment Operation Command Description Enter system view system-view — Create an ISP domain and enter its view domainisp-name — Set the VLAN assignment mode vlan-assignment-mode{ integer| string} Optional By default, the VLAN assignment mode is integer. Create a VLAN and enter its view vlanvlan-id — Set a VLAN name for VLAN assignment namestring This operation is required if the VLAN assignment mode is set to string. Caution: l In string mode, if the VLAN ID assigned by the RADIUS server is a character string containing only digits (for example, 1024), the switch first regards it as an integer VLAN ID: the switch transforms the string to an integer value and judges if the value is in the valid VLAN ID range; if it is, the switch adds the authenticated port to the VLAN with the integer value as the VLAN ID (VLAN 1024, for example). l To implement dynamic VLAN assignment on a port where both MSTP and 802.1x are enabled, you must set the MSTP port to an edge port. Thanks ________________________________ De : Ivan Kalik <tnt@kalik.net> À : FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Envoyé le : Mardi, 23 Juin 2009, 10h51mn 15s Objet : Re: Re : Re : Re : Radius+Huwaei switch + auto VLan Assignment issue
The Switch documentation said:
If set to Integer the Vlan-assignment-mode allow the switch to use VLAN ID to tag frames.
If set to String it uses VLAN Name instead. So the Vlan-assignment-mode in the domain is Integer. But as the Access-Accept message return
Vlan ID in this format :
Tunnel-Private-Group-Id:0 = "2"
It seems we'd better set Vlan-assignment-mode to string.
How sure are you that your switch supports dynamic VLAN assignment (via radius not console)? Does it say that anywhere in the documentation? Ivan Kalik Kalik Informatika ISP - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Try to use configs for 3com H3C the almost same switch, as 3Com. Attou eric пишет:
Here is exactly the part of the documentation relative dynamique vlan-assignment through radius authentication : 1.3.5 Configuring Dynamic VLAN Assignment The dynamic VLAN assignment feature enables a switch to dynamically add the switch ports of successfully authenticated users to different VLANs according to the attributes assigned by the RADIUS server, so as to control the network resources that different users can access. Currently, the switch supports the following two types of assigned VLAN IDs: integer and string. l Integer: If the RADIUS authentication server assigns integer type of VLAN IDs, you can set the VLAN assignment mode to integer on the switch (this is also the default mode on the switch). Then, upon receiving an integer ID assigned by the RADIUS authentication server, the switch adds the port to the VLAN whose VLAN ID is equal to the assigned integer ID. If no such a VLAN exists, the switch first creates a VLAN with the assigned ID, and then adds the port to the newly created VLAN. l String: If the RADIUS authentication server assigns string type of VLAN IDs, you can set the VLAN assignment mode to string on the switch. Then, upon receiving a string ID assigned by the RADIUS authentication server, the switch compares the ID with existing VLAN names on the switch. If it finds a match, it adds the port to the corresponding VLAN. Otherwise, the VLAN assignment fails and the user fails the authentication. In actual applications, to use this feature together with Guest VLAN, you should better set port control to port-based mode. Table 1-9 Configure dynamic VLAN assignment Operation Command Description Enter system view system-view — Create an ISP domain and enter its view domainisp-name — Set the VLAN assignment mode vlan-assignment-mode{ integer| string} Optional By default, the VLAN assignment mode is integer. Create a VLAN and enter its view vlanvlan-id — Set a VLAN name for VLAN assignment namestring This operation is required if the VLAN assignment mode is set to string.
Caution: l In string mode, if the VLAN ID assigned by the RADIUS server is a character string containing only digits (for example, 1024), the switch first regards it as an integer VLAN ID: the switch transforms the string to an integer value and judges if the value is in the valid VLAN ID range; if it is, the switch adds the authenticated port to the VLAN with the integer value as the VLAN ID (VLAN 1024, for example). l To implement dynamic VLAN assignment on a port where both MSTP and 802.1x are enabled, you must set the MSTP port to an edge port.
Thanks
________________________________ De : Ivan Kalik <tnt@kalik.net> À : FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Envoyé le : Mardi, 23 Juin 2009, 10h51mn 15s Objet : Re: Re : Re : Re : Radius+Huwaei switch + auto VLan Assignment issue
The Switch documentation said:
If set to Integer the Vlan-assignment-mode allow the switch to use VLAN ID to tag frames.
If set to String it uses VLAN Name instead.
So the Vlan-assignment-mode in the domain is Integer. But as the Access-Accept message return
Vlan ID in this format :
Tunnel-Private-Group-Id:0 = "2"
It seems we'd better set Vlan-assignment-mode to string.
How sure are you that your switch supports dynamic VLAN assignment (via radius not console)? Does it say that anywhere in the documentation?
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Attou eric -
Gennadii Redko -
Ivan Kalik