How do I check the PC when the IP address of the DNS server is configured on the DHCP-enabled S series switch

6

S series switches excluding the S1700 can assign DNS parameters to clients through DHCP. After the PC connected to a switch obtains an IP address through DHCP, you can run the ipconfig/all command on the PC to check DNS parameters delivered by the DNS server.

Other related questions:
Causes for PCs obtain the same IP address through the S series switch
The S series switch is used as the DHCP server to assign IP addresses to PCs: 1. If a DHCP client connects to a network again, the DHCP client broadcasts a DHCP Request packet carrying the IP address that the client has used. The used IP address is added in the Option50 field of packets. After receiving the DHCP Request message, the DHCP server checks whether the lease record exists based on the MAC address in the message. If so, the DHCP server replies with a DHCP ACK message to notify the DHCP client that the requested IP address can be used. If not, the DHCP server waits for a new DHCP Discover message from the client.

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 .

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.

How is an AR used as the DHCP server enabled to record logs when the DHCP server allocates IP addresses
A Huawei AR records logs when IP addresses are allocated through DHCP. The logs are stored in a non-TXT file. Perform the following configurations: - Interface-based [Huawei] interface gigabitethernet 1/0/0 [Huawei-GigabitEthernet1/0/0] dhcp select interface [Huawei-GigabitEthernet1/0/0] dhcp server logging //Enable the DHCP server to record logs when the DHCP server allocates IP addresses. - Global mode [Huawei] ip pool global [Huawei-ip-pool-global] logging //Enable the DHCP server to record logs when the DHCP server allocates IP addresses.

Check DHCP IP address lease on S series switch
On S series switches except S1700 switches, you can view the lease of IP addresses in an address pool as follows: - If an interface address pool is used, run the display ip pool interface interface-pool-name [ start-ip-address [ end-ip-address ] ] command. - If a global address pool is used, run the display ip pool name ip-pool-name [ start-ip-address [ end-ip-address ] ] command. The Lease field in the command output indicates the lease of IP addresses.

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