Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

nas-port-id-format (Subscriber Management)

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 11.4.

Statement introduced in Junos OS Release 13.2X50-D10 for EX Series switches.

Options interface-text-description, order, and postpend-vlan-tags introduced in Junos OS Release 15.1.

Description

Specify the optional information that the router includes in the NAS-Port-ID (RADIUS attribute 87) that is passed to the RADIUS server during authentication and accounting. You can include any combination of the optional values.

When you specify the values for the NAS-Port-ID, you can configure the values to appear in either the default order or a custom order of your choice.

Note

The default and custom order methods are mutually exclusive. The configuration fails if you attempt to configure a NAS-Port-ID that includes values in both types of orders.

To specify that the optional values appear in the default order in the NAS-Port-ID, configure the values directly under the nas-port-id-format statement. The default order is as follows, in which the # character is the delimiter:

nas-identifier # interface-description # interface-text-description # agent-circuit-id # agent-remote-id # postpend-vlan-tags

To specify a custom order for the NAS-Port-ID string, you use the order option. Include the order option before each optional value you want to include in the string, in the order in which you want the options to appear. For example, the configuration, order interface-text-description order nas-identifier order agent-remote-id produces the following NAS-Port-ID, in which the # character is the delimiter:

interface-text-description # nas-identifier # agent-remote-id

Default

The router includes the interface description in the NAS-Port-ID when no optional values are specified.

Options

agent-circuit-id—Include the agent circuit ID from either DHCP option 82 or the DSL forum VSAs.

agent-remote-id—Include the agent remote ID from either DHCP option 82 or the DSL forum VSAs.

interface-description—Include the interface description (interface identifier).

interface-text-description—Include the textual interface description (the text description that is statically configured in the CLI).

nas-identifier—Include the NAS identifier value (RADIUS attribute 32).

order—Specify the optional values you want to include in the NAS-Port-ID and the customized order in which you want the values to appear. You must include the order option before each optional value (for example, order agent-circuit-id order interface-description).

postpend-vlan-tags—Include the VLAN tags. The router includes the tags in the format :<outer-tag>-<inner-tag> for a double-tagged VLAN, or :<outer-tag> for a single-tagged VLAN.

Required Privilege Level

admin—To view this statement in the configuration.

admin-control—To add this statement to the configuration.