< Home

Configuring Information Related to the DNS, WINS, and DHCP Servers in the Service Scheme

This section provides a sample of configuring information related to the DNS, WINS, and DHCP servers in the service scheme using the merge method.

Table 1 Configuring information related to the DNS, WINS, and DHCP servers in the service scheme

Operation

XPATH

edit-config:merge

  • /huawei-aaa:aaa/service-scheme/dns
  • /huawei-aaa:aaa/service-scheme/wins
  • /huawei-aaa:aaa/service-scheme/dhcp-group
  • /huawei-aaa:aaa/service-scheme/ip-pool

Data Requirements

Table 2 Configuring information related to the DNS, WINS, and DHCP servers in the service scheme

Item

Data

Description

IP addresses of the master and slave DNS servers
  • IP address of the master DNS server: 10.1.1.1
  • IP address of the slave DNS server: 10.1.1.2
  • Default DNS domain name: huawei.com
Set the IP addresses of the master and slave DNS servers to 10.1.1.1 and 10.1.1.2 respectively in service scheme s1.
IP addresses of the master and slave WINS servers
  • IP address of the master WINS server: 10.2.1.1
  • IP address of the slave WINS server: 10.2.1.2
Set the IP addresses of the master and slave WINS servers to 10.2.1.1 and 10.2.1.2 respectively in service scheme s1.
Name of the DHCP server group and name of the IP address pool
  • Name of the DHCP server group: group1
    NOTE:
    Ensure that the DHCP server group has been established.
  • Name of the IP address pool: pool1
Set the name of the DHCP server group to group1 and name of the IP address pool that can be used to pool1 in service scheme s1.

Request Example

<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-aaa:aaa xmlns:hw-aaa="urn:huawei:params:xml:ns:yang:huawei-aaa">
        <hw-aaa:service-scheme xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
          <hw-aaa:name>s1</hw-aaa:name>
          <hw-aaa:vsys>sys</hw-aaa:vsys>
          <hw-aaa:dns>
            <hw-aaa:primary-ip-address>10.1.1.1</hw-aaa:primary-ip-address>
            <hw-aaa:secondary-ip-address>10.1.1.2</hw-aaa:secondary-ip-address>
          </hw-aaa:dns>
          <hw-aaa:wins>
            <hw-aaa:primary-ip-address>10.2.1.1</hw-aaa:primary-ip-address>
            <hw-aaa:secondary-ip-address>10.2.1.2</hw-aaa:secondary-ip-address>
          </hw-aaa:wins>
          <hw-aaa:ip-pool>pool1</hw-aaa:ip-pool>
          <hw-aaa:dhcp-group>group1</hw-aaa:dhcp-group>
        </hw-aaa:service-scheme>
      </hw-aaa:aaa>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response

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

Sample of failed response

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >