To customize the DNS server information of a BMS, you need to configure a static IP address for the BMS. If you change the IP address assignment mode from DHCP to the static mode, the IP address and gateway must be consistent with those when the BMS is provisioned. Otherwise, network disconnections may occur. This section takes CentOS 7 as an example to describe how to configure a static IP address for a BMS.
Run the following command to query the IP address of the BMS:
ifconfig bond0

Run the following command to query the gateway address of the BMS:
ip ro

Run the vi /etc/sysconfig/network-scripts/ifcfg-bond0 command to open the /etc/sysconfig/network-scripts/ifcfg-bond0 file, change the network information from DHCP to static, or delete PERSISTENT_DHCLIENT=1 and add configuration items IPADDR, NETMASK, and GATEWAY (indicating the IP address, subnet mask, and gateway).

The IP address, subnet mask, and gateway must be consistent with those when the BMS is provisioned. Otherwise, network disconnections may occur.