324Step Command Remarks2. Specify the device ID. portal device-id device-id By default, a device is notconfigured with a device ID.Configuring attributes for RADIUS packetsSpecifying a format for the NAS-Port-Id attributeRADIUS servers from different vendors might require different formats of the NAS-Port-Id attribute inthe RADIUS packets. You can specify the NAS-Port-Id attribute format as required.The device supports predefined format (format 1, 2, 3, and 4) and the custom format. For moreinformation about the formats, see the portal nas-port-id format command in User AccessCommand Reference.To specify a format for the NAS-Port-Id attribute:Step Command Remarks1. Enter system view. system-view N/A2. Specify the format for theNAS-Port-Id attribute.portal nas-port-id format { 1 | 2 |3 | 4 | custom { c-vid [ delimiter ] |interface-type [ delimiter ] | port[ delimiter ] | slot [ delimiter ] |subslot [ delimiter ] | s-vid[ delimiter ] | string string[ delimiter ] } * }By default, the format for theNAS-Port-Id attribute is format 2.Applying a NAS-ID profile to an interfaceBy default, the device sends its device name in the NAS-Identifier attribute of all RADIUS requests.A NAS-ID profile enables you to send different NAS-Identifier attribute strings in RADIUS requestsfrom different VLANs. The strings can be organization names, service names, or any usercategorization criteria, depending on the administrative requirements.For example, map the NAS-ID companyA to all VLANs of company A. The device will sendcompanyA in the NAS-Identifier attribute for the RADIUS server to identify requests from anyCompany A users.You can apply a NAS-ID profile to a portal-enabled interface. If no NAS-ID profile is specified on theinterface or no matching NAS-ID is found in the specified profile, the device uses the device name asthe interface NAS-ID.To apply a NAS-ID profile to an interface:Step Command Remarks1. Enter system view. system-view N/A2. Create a NAS-ID profile andenter NAS-ID profile view. aaa nas-id profile profile-nameFor more information about thiscommand, see User AccessCommand Reference.3. Configure a NAS ID andVLAN binding in the profile.nas-id nas-identifier bind { vlanvlan-id | { c-vid vlan-id | s-vidvlan-id } * }For more information about thiscommand, see User AccessCommand Reference.