< Home

Configuring the Source IP Address for the Switch to Communicate with the Portal Server

This section provides a sample of configuring the source IP address for the switch to communicate with the Portal server using the merge method. You can also use the create method to configure the source IP address for the switch to communicate with the Portal server.

Table 1 Configuring the source IP address for the switch to communicate with the Portal server

Operation

XPATH

edit-config:merge

/huawei-aaa-portal/portal/portal-server/source-ip-address/ip/ip-address

Data Requirement

Table 2 Configuring the source IP address for the switch to communicate with the Portal server

Item

Data

Description

ip-address

192.168.255.255

Configure the source IP address 192.168.255.255 for the switch to communicate with the Portal server.

Request Example

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <portal xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-portal">
    <portal-server xc:operation="merge">  
     <name>huawei</name>
     <ip-address xc:operation="merge">192.168.255.255</ip-address>
    </portal-server> 
   </portal>
  </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="16">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>Source-ip cmd executing failed.</error-message>
    <error-info>Error on node /huawei-aaa-portal:portal/portal-server[name="huawei"]/ip-address</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >