359Examples# Specify the NAS-ID profile aaa for GigabitEthernet 1/0/1. system-view[Sysname] interface gigabitethernet 1/0/1[Sysname–GigabitEthernet1/0/1] portal nas-id-profile aaaRelated commandsaaa nas-id profileportal nas-port-id formatUse portal nas-port-id format to specify the NAS-Port-Id attribute format.Use undo portal nas-port-id format to restore the default.Syntaxportal nas-port-id format { 1 | 2 | 3 | 4 }undo portal nas-port-id formatDefaultThe format for the NAS-Port-Id attribute is format 2.ViewsSystem viewPredefined user rolesnetwork-adminParameters1: Uses format 1 for the NAS-Port-Id attribute.2: Uses format 2 for the NAS-Port-Id attribute.3: Uses format 3 for the NAS-Port-Id attribute.4: Uses format 4 for the NAS-Port-Id attribute.Usage guidelinesThe NAS-Port-Id format supported by RADIUS servers varies by vendor. Use this command tospecify the format of the NAS-Port-Id attribute in the RADIUS packets sent for portal users to theRADIUS server. The device then automatically constructs a value for the NAS-Port-Id attribute in thespecified format to meet the RADIUS server requirements.Format 1 contains three space-separated strings: interface-type port-location access-node-id.Spaces are not allowed within a string.• The interface-type string specifies the interface type of the NAS port. Available options include: atm—ATM interface. eth—Common Ethernet interface. trunk—Ethernet trunk interface. 0—The interface type information will be reported by the access node to the BRAS.• The port-location string represents the location of the access line on the BRAS. Its format isNAS_slot/NAS_subslot/NAS_port:XPI.XCI.Field DescriptionNAS_slot Slot number of the BRAS, in the range of 0 to 31.