Configure Dhcp Server

Configures the DHCP server with the specified parameters.

Arguments Description

server_name (str): Name of the DHCP server.

channel_name (str): Name of the network channel.

server_ip (str): IP address of the DHCP server.

start_ip (str): First IP address in the IP address pool.

end_ip (str): Last IP address in the IP address pool.

mask (str, optional): Subnet mask. Defaults to “255.255.0.0”.

gateway (str, optional): Gateway IP address. Default to an empty string.

dns (str, optional): DNS server IP address. Default to an empty string.

mac_client (str, optional): MAC address of the client. Default to an empty string.

lease_time (int, optional): Lease time for assigned IPs in seconds. Default to 28800.

Returns

Example

Configure Dhcp Server Server_1 Channel_1 ${server_ip} ${start_ip} ${end_ip} ${mask}
${gateway} ${dns} ${mac_client} lease_time=${60}