12.6.4. DHCP

This section is located at the network dhcp level.

To create a DHCP subnet, use the following command:

Admin@UGOS# create network dhcp

Parameters:

Parameter

Description

enabled

Enable/disable the use of this IP address range:

  • on.

  • off.

name

Subnet name.

description

Subnet description.

node-name

Cluster node where the range is created.

interface

Interface of the server which will assign IP addresses from the range being created.

ip-range

The IP address range assigned to DHCP clients. Format: <IP_start-IP_end>.

mask

The subnet mask assigned to DHCP clients.

expiration-time

The duration in seconds for which IP addresses are assigned.

domain

The domain name assigned to DHCP clients.

gateway-address

The gateway IP address assigned to DHCP clients.

dns-servers

The DNS server IP addresses assigned to DHCP clients.

reserved-hosts

The MAC addresses and the associated IP addresses:

  • mac: MAC address.

  • ip: IP address associated with the MAC address.

  • hostname: name of the host.

ignored-mac

List of MAC addresses ignored by the DHCP server.

pxe-boot-ip

PXE boot server IP.

pxe-boot-filename

PXE boot filename.

options

Option number and value:

  • code: DHCP option number.

  • values: option value.

To update an existing DHCP subnet, use the following command:

Admin@UGOS# set network dhcp <dhcp-name>

The parameters for which information can be updated are the same as those for creating a DHCP subnet, except for node-name, and interface (you cannot change these parameter values).

To delete a subnet, use the following command:

Admin@UGOS# delete network dhcp <dhcp-name>

You can also delete individual DHCP subnet parameters:

  • dns-servers.

  • ignored-mac.

  • reserved-hosts (specify all three values: mac, ip, and hostname).

  • options (specify both values: code, and values).

To display information about all subnets created, use the following command:

Admin@UGOS# show network dhcp

To display information about a specific DHCP subnet, use the following command:

Admin@UGOS# show network dhcp <dhcp-name>