< Home

Configuring NAS Attributes

This section describes how to configure NAS attributes using the rpc method.

Table 1 Configuring NAS attributes

Operation

XPATH

edit-config:create

  • /huawei-aaa-radius:radius/radius-server/nas-ip-address
  • /huawei-aaa-radius:radius/radius-server/nas-ipv6-address
  • /huawei-aaa-radius:radius/radius-server/format-attribute/nas-port-format
  • /huawei-aaa-radius:radius/radius-server/format-attribute

Data Requirement

Table 2 Configuring NAS attributes

Item

Data

Description

Value of the NAS-IP-Address attribute in RADIUS packets sent by the device

10.3.3.3

Set the NAS-IP-Address attribute in RADIUS packets sent by the device to 10.3.3.3.

Value of the NAS-IPv6-Address attribute in RADIUS packets sent by the device

FC00::7

Set the NAS-IPv6-Address attribute in RADIUS packets sent by the device to FC00::7.

Encapsulation format of the NAS-Port attribute

new, s2t2p6no10ni12

Set the encapsulation format of the NAS-Port attribute to new and define the format as the binary format 2t2p6no10ni12.

Encapsulation content of the NAS-Identifier attribute

hostname

Set the encapsulation content of the NAS-Identifier attribute to the host name.

Encapsulation format of the NAS-Port-Id attribute

new

Set the encapsulation format of the NAS-Port-Id attribute to new.

Request Example

<rpc message-id="123" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-aaa-radius:radius xmlns:hw-aaa-radius="urn:huawei:params:xml:ns:yang:huawei-aaa-radius">
        <hw-aaa-radius:radius-server>
          <hw-aaa-radius:name>t1</hw-aaa-radius:name>
          <hw-aaa-radius:vsys>public</hw-aaa-radius:vsys>
          <hw-aaa-radius:nas-ip-address>10.3.3.3</hw-aaa-radius:nas-ip-address>
          <hw-aaa-radius:nas-ipv6-address>FC00::7</hw-aaa-radius:nas-ipv6-address>
          <hw-aaa-radius:format-attribute>             <hw-aaa-radius:nas-port-format>               <hw-aaa-radius:self-designed-format>s2t2p6no10ni12</hw-aaa-radius:self-designed-format>               <hw-aaa-radius:format>new</hw-aaa-radius:format>             </hw-aaa-radius:nas-port-format>             <hw-aaa-radius:nas-identifier-format>hostname</hw-aaa-radius:nas-identifier-format>             <hw-aaa-radius:nas-port-id-format>new</hw-aaa-radius:nas-port-id-format>           </hw-aaa-radius:format-attribute>
        </hw-aaa-radius:radius-server>
      </hw-aaa-radius:radius>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
  <ok/>
</rpc-reply>

Sample of failed response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
 <rpc-error>
  <error-app-tag>-1</error-app-tag>
  <error-message>Wrong parameter.</error-message>
  <error-info>Error on node /huawei-aaa-radius:radius/radius-server[name="test12345",vsys="public"]/nas-ip-address</error-info>
 </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >