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

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 .

Scroll to top