Method to configure DNS parameters on DHCP-enabled S series switches

1

When an S series switch excluding the S1700 functions as the DHCP server, the switch can deliver DNS parameters to clients in DHCP mode. The configuration procedure is as follows:
- Based on the interface address pool
[HUAWEI] dhcp enable
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ip address 10.10.10.10 24
[HUAWEI-Vlanif100] dhcp select interface
[HUAWEI-Vlanif100] dhcp server dns-list 192.168.1.254 //Configure the DNS server address.
[HUAWEI-Vlanif100] dhcp server domain-name huawei.com //Configure a domain name suffix.
- Based on the global address pool
[HUAWEI] ip pool global1
[HUAWEi-ip-pool-global1] dns-list 192.168.1.254 //Configure the DNS server address.
[HUAWEI-ip-pool-global1] domain-name huawei.com //Configure a domain name suffix.
- Based on the DHCP Option template
[HUAWEI] dhcp option template template1
[HUAWEI-dhcp-option-template-template1] dns-list 192.168.1.254 //Configure the DNS server address.
[HUAWEI-dhcp-option-template-template1] domain-name huawei.com //Configure a domain name suffix .

Other related questions:
How to delete DNS parameters on DHCP-enabled S series switches
For S series switches excluding the S1700, you can delete the delivered DNS server IP address using a command. Assume that the DNS server IP address is set to 10.1.1.1/24. Perform the following steps: - Based on the global address pool [Huawei] ip pool pool1 [Huawei-ip-pool-pool1] undo dns-list 10.1.1.1 //Delete the DNS server IP address. - Based on the interface address pool [Huawei] interface vlanif 10 //Interface of the DHCP server connected to clients [Huawei-Vlanif10] undo dhcp server dns-list 10.1.1.1 //Delete the DNS server IP address. - Based on DHCP Option template [Huawei] dhcp option template temp1 [Huawei-dhcp-option-template-temp1] undo dns-list 10.1.1.1 //Delete the DNS server IP address. The client needs to release the original IP address and apply for an IP address.

Delete DNS parameters on S series switch
If an S series switch (except an S1700 switch) delivers the DNS server IP address to clients through DHCP, the DNS server IP address can be deleted using commands. For example, if the DNS server IP address 10.1.1.1/24 has been configured on a switch, you can delete it as follows: - If the original configuration is based on a global address pool: [Huawei] ip pool pool1 [Huawei-ip-pool-pool1] undo dns-list 10.1.1.1 //Delete the DNS server IP address. - If the original configuration is based on an interface address pool: [Huawei] interface vlanif 10 //Enter the view of the DHCP server interface connected to clients. [Huawei-Vlanif10] undo dhcp server dns-list 10.1.1.1 //Delete the DNS server IP address. - If the original configuration is based on a DHCP Option template: [Huawei] dhcp option template temp1 [Huawei-dhcp-option-template-temp1] undo dns-list 10.1.1.1 //Delete the DNS server IP address. Additionally, clients need to release their original IP addresses and apply for new IP addresses from the DHCP server.

Netbios parameter settings on S series switch
When S series switches (except S1700 switches) function as DHCP servers, they can deliver NetBIOS service parameters to clients through DHCP. The configuration process is as follows: - Interface address pool: [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] ip address 10.10.10.1 24 [HUAWEI-Vlanif10] dhcp select interface [HUAWEI-Vlanif10] dhcp server nbns-list 10.10.1.1 //Configure the NetBIOS server address. [HUAWEI-Vlanif10] dhcp server netbios-type p-node //Configure the NetBIOS node type. - Global address pool: [HUAWEI] ip pool pool1 [HUAWEI-ip-pool-pool1] nbns-list 10.10.1.1 //Configure the NetBIOS server address. [HUAWEI-ip-pool-pool1] netbios-type p-node //Configure the NetBIOS node type. - Using a DHCP Option template: [HUAWEI] dhcp option template template1 [HUAWEI-dhcp-option-template-template1] nbns-list 10.10.1.1 //Configure the NetBIOS server address. [HUAWEI-dhcp-option-template-template1] netbios-type p-node //Configure the NetBIOS node type.

Method to configure DHCP on S series switches
For S series switches excluding the S1700, the switch can both function as the DHCP server to assign IP addresses to clients and function as a DHCP client to dynamically obtain an IP address from the DHCP server. When the DHCP client and DHCP server are located on different network segments, the switch can also function as the DHCP relay agent to assist DHCP server in allocating IP addresses to clients. In addition, the switch can be configured with DHCP snooping to defend against DHCP attacks.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top