< Home

Configuring the Default Source IP Address of Offline Detection Packets

This section provides a sample of configuring the default source IP address of offline detection packets using the merge method.

Table 1 Configuring the default source IP address of offline detection packets

Operation

XPATH

edit-config:merge

/huawei-nac:nac-access/configure-mode/unified-mode/arp-detect/default-detect-ip

Data Requirements

Table 2 Configuring the default source IP address of offline detection packets

Item

Data

Description

default-detect-ip

0.0.0.0

Set the default source IP address of offline detection packets to 0.0.0.0.

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-nac:nac-access xmlns:hw-nac="urn:huawei:params:xml:ns:yang:huawei-nac">
        <hw-nac:arp-detect xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
          <hw-nac:default-detect-ip>0.0.0.0</hw-nac:default-detect-ip>
        </hw-nac:arp-detect>
      </hw-nac: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="0">
 <ok/>
</rpc-reply>

Sample of failed response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message> Invalid IP address.</error-message>
    <error-info>Error on node /huawei-nac:nac-access/arp-detect/default-detect-ip</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >