DHCP options
In this article:
DHCP options#
General information#
The Dynamic Host Configuration Protocol (DHCP) is a standard for passing configuration information to hosts on a TCP/IP network.
In addition to the service parameters, a cloud DHCP server always communicates the following options:
Router (option 3) – the first subnet address used;
Address Time (option 51) – the lease duration for the address (1 hour);
Hostname (option 12) – in the following format:
ip-<IP address separated by hyphens>
;Domain Name (option 15) –
<vpc-id>.internal
is used by default.
Additionally, you can specify values for the following options:
Domain Server (option 6) – the DNS server address;
NTP Servers (option 42) – the NTP server addresses;
Domain Name (option 15) – the DNS domain name;
NETBIOS Name Srv (option 44) – the NETBIOS server name;
NETBIOS Node Type (option 46) – the NETBIOS node type.
When you create a VPC in K2 Cloud, an empty DHCP parameter set is automatically created. You can create your own DHCP parameters for your VPC.
Creating a DHCP options set#
Go to Virtual machines Networking DHCP opitons.
Click Create.
In the window that opens, set the following parameters:
Name tag (optional);
domain name;
DNS servers — list of IP addresses of domain name servers or AmazonProvidedDNS. We recommend using only one of the two parameters;
NTP servers — the IP addresses of Network Time Protocol (NTP) servers. You can specify up to four IP addresses;
WINS servers — the IP addresses of WINS servers. You can specify up to four IP addresses;
NetBIOS node type — the NetBIOS node type (1, 2, 4, or 8):
1 — Broadcast (no WINS);
2 — Peer-to-peer (WINS);
3 — Mixed mode (broadcast then WINS);
8 — Hybrid (WINS then broadcast).
Note
You may specify just those parameters that your DHCP parameter set requires. An empty DHCP parameter set is created by default. You may assign your own domain name to your instances and use up to four of your own DNS servers.
If you need to assign tags, proceed to the next step by clicking Add tags. Enter the tag key and value.
After setting all the required parameters, click Create.
Important
Once the DHCP options set is specified, it cannot be changed.
To make the VPC use a different DHCP option set, create a new set and assign it to your VPC. Make sure that all VPCs, which used these options, are now assigned another option set.
Deleting a DHCP options set#
Go to Virtual machines Networking DHCP opitons.
In the resource table, select the DHCP options set and click Delete.
In the window that opens, confirm the deletion.
This operation can also be performed on the page of the DHCP options set. To do this, go to the Information tab and click Delete.
Assigning a DHCP options set#
Go to Virtual machines Networking DHCP opitons.
In the resource table, select the DHCP options set and click Assign.
In the window that opens, select the VPC, to which you want to assign the DHCP options set.
Click Assign.
After you assign a new parameter set to a VPC, all existing instances and any new instances you start in the VPC will use the new parameters. The applied DHCP options will be given back/returned by the DHCP server at the next access to it.
This operation can also be performed on the page of the DHCP options set. To do this, go to the VPC tab and click Assign.
Resetting a DHCP options set#
Go to Virtual machines Networking DHCP opitons.
Select the DHCP options set in resource table.
Click Reset.
This operation can also be performed on the page of the DHCP options set. To do this, go to the VPC tab and click Reset.
Information about DHCP parameters#
General information about DHCP options can be viewed in the resource table in Virtual machines Networking DHCP options. To open a page with a particular set of DHCP options, click its ID in the resource table in the DHCP options subsection.
The Information tab displays the main parameters of the DHCP options set:
Name tag;
domain name;
list of DNS servers;
list of NTP servers;
list of WINS servers;
NetBIOS node type;
number of VPCs to which the DHCP options set is assigned.
Here you can modify the Name tag and delete the DHCP options set by clicking Delete.
The VPC tab displays a table with details of the VPCs to which the selected DHCP options set is assigned:
ID;
name;
state;
CIDR.
Here you can assign or reset DHCP options.
The Tags tab displays all tags assigned to the resource. You can add new, modify existing, and delete no-longer-needed tags.