< Home

Configuring the Maximum Number of Access Users Allowed on the Interface in Multi-Authen Mode

This section provides a sample of configuring the maximum number of access users allowed on the interface in multi-authen mode using the merge method. You can also use the create method to configure the maximum number of access users allowed on the interface in multi-authen mode.

Table 1 Configuring the maximum number of access users allowed on the interface in multi-authen mode

Operation

XPATH

edit-config:merge

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/max-user/multi-authen/user-num/max-user-num

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/max-user/multi-authen/user-num/access-type

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/mode

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/max-user/multi-authen/default-max-user-num

Data Requirement

Table 2 Configuring the maximum number of access users allowed on the interface in multi-authen mode

Item

Data

Description

name

lsw_auth

Configure the maximum number of access users allowed on the interface in multi-authen mode.

mac

200

dot1x

210

portal

220

default-max-user-num

1000

Request Example

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <nac-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac">
        <authentication-profile>
          <name>lsw_auth</name>
          <authentication-mode-parameters xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
            <mode>multi-authen</mode>
            <user-num xc:operation="merge">
              <access-type xc:operation="merge">mac</access-type>
              <max-user-num xc:operation="merge">200</max-user-num>
            </user-num>
             <user-num xc:operation="merge">
              <access-type xc:operation="merge">dot1x</access-type>
              <max-user-num xc:operation="merge">210</max-user-num>
            </user-num>
             <user-num xc:operation="merge">
              <access-type xc:operation="merge">portal</access-type>
              <max-user-num xc:operation="merge">220</max-user-num>
            </user-num>
              <default-max-user-num>1000</default-max-user-num>
          </authentication-mode-parameters>
        </authentication-profile>
      </nac-access>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response

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

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="61">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>Authorize mode multi-authen failed</error-message>
    <error-info>Error on node /huawei-nac:nac-access/authentication-profile[name="lsw_auth"]/authentication-mode-parameters/user-num[access-type="mac"]/max-user-num</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >