radius-server format-attribute nas-port-id

Function

The radius-server format-attribute nas-port-id command configures the format of the NAS-Port-Id attribute.

The undo radius-server format-attribute nas-port-id command deletes the configured attribute format.

By default, the Nas-Port-Id attribute is in the version1 format.

This command is supported only on the NetEngine 8000 F1A.

Format

radius-server format-attribute nas-port-id vendor { { vendor-id [ format-string ] | redback-simple } | redback-addition }

radius-server format-attribute nas-port-id { version1 | version2 }

undo radius-server format-attribute nas-port-id

Parameters

Parameter Description Value
format-string

Specifies the format.

The rule for specifying format-string is as follows:

Format 1:

  • The keywords s, t, p, o, and i stand for slot, subslot, port, out-vlan (qinqvlan)/vpi, and inner-vlan (user-vlan)/vci respectively. The keywords n and z are used as paddings. The keyword n indicates 1 and the keyword z indicates 0.
  • The keywords s, t, p, o, i, n, and z must be followed by numbers, and the numbers must range from 1 to 32. The keywords s, t, p, o, and i can be present in the format string only once.
  • The keywords s, t, p, o, i, n, and z must range from 1 to 9.
  • n and z can be present multiple times at any position. They are followed by numbers. For example, n12 indicates that this position is filled by twelve 1s, and z12 indicates that this position is filled by twelve 0s.
  • The character string must contain 32 bits.
  • The format string must start with s, t, p, o, i, n, or z and end with a number.
  • If no VLAN exists, you can add n or z before 0 or i to indicate whether this position is filled by 0s or 1s. That is, n and z can be followed by numbers or o/i in this case.
  • To specify the format string, determine the interface type, and then determine the encapsulation type of the interface. If the format string does not contain 0 or i, the NAS-Port attribute does not contain the QinQ VLAN or user VLAN field. If the format string contains 0 and i but no outer VLAN exists, the outer VLAN field is filled by 0s. If i is added before 0 or i, this field is filled by 1s when no outer VLAN or inner VLAN exists.

Format 2: m32, indicating the 32 least significant bits of a user MAC address.

The value is a string of 1 to 32 characters.

redback-simple

Specifies the format of Redback-simple to encapsulate the NAS-Port-Id attribute. "VLAN-ID" is used as "VLANID" in the format of Redback-simple.

-

redback-addition

Specifies the format of redback-addition to encapsulate the NAS-Port-Id attribute.

-

format-attribute

Indicates the format of Turkey version.

-

nas-port-id

No. 87 RADIUS attribute.

-

version1

Indicates encapsulating the NAS-Port-Id attribute in Huawei's default format. For details about the default format, see Usage Guidelines.

-

version2

Indicates generating the NAS-Port-Id attribute in the following format:

<interface-type><slot>/<sub-slot><port>.<subinterface>[:<out-vlan>][.<in-vlan>].

The Interface-type is fastEthernet/ gigabitEthernet/trunk.

If a logical interface is configured for a trunk interface, the interface information in the preceding format is the same as that of the logical interface. If no logical interface is configured on a trunk interface, the values of slot, sub-slot, and port in the preceding format are 0, 0, and trunk ID, respectively.

The logical interface is specified using the nas logic-port command.

-

vendor vendor-id

Specifies the ID of a supplier.

The value is an integer ranging from 1 to 65535. Currently, only 2352, 2636, and 9 are supported.

Views

RADIUS server group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
radius write

Usage Guidelines

Usage Scenario

When the device is connected to a non-Huawei device, run the radius-server format-attribute command to allow the device to configure the format of the NAS-Port-Id attribute.

Configuration Impact

See the More Information About NAS-Port-Id (87).

Example

# Use the default format of J vendor to encapsulate the NAS-Port-Id attribute.
<HUAWEI> system-view
[~HUAWEI] radius-server group group1
[*HUAWEI-radius-group1] commit
[~HUAWEI-radius-group1] radius-server format-attribute nas-port-id vendor 2636
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >