nas-port-id-format (Subscriber Management)
Syntax
nas-port-id-format { agent-circuit-id; agent-remote-id; concatenated-vlan-tags (fixed-size-inner-tag | fixed-size-outer-tag) interface-description; interface-text-description; nas-identifier; order (agent-circuit-id | agent-remote-id | interface-description | interface-text-description | nas-identifier | postpend-vlan-tags); postpend-vlan-tags; }
Hierarchy Level
[edit access profile profile-name radius options]
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.
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
Starting in Junos OS Release 21.3R1, we have introduced a new NAS-Port-ID format for
RADIUS server access request. The NAS-Port-ID format is
S-VLAN<concatenated 0’s>C-VLAN:S-VLAN-C-VLAN
. For
customer-VLAN (C-VLAN), if the number of digits is less than four, prepend it with
zeroes. For example, NAS-Port-ID for an S-VLAN 72 and C-VLAN 82 is
720082:72-82
.
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.
concatenated-vlan-tags
—Include the vlan tags as a concatenated
string.
fixed-size-inner-tag
—Fixed size inner VLAN tag value of 4
octets.
fixed-size-outer-tag
—Fixed size outer VLAN tag value of 4
octets.
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.
Release Information
Statement introduced in Junos OS Release 11.4.
Options interface-text-description
, order
, and postpend-vlan-tags
introduced in Junos OS Release
15.1.