DHCP setting

[Update: November 9, 2017]

The following is an explanation on how to set the DHCP function of a VPC router.

1. Overview of the DHCP function

The DHCP function enables the user to automatically carry out the network setting on the private side (VPC network side) server using the DHCP protocol.

On the VPC router, the user can operate a DHCP server for each private interface. By using the static mapping function, it is also possible to assign an IP address permanently to a server with a specific MAC address.

2. Enabling the DHCP server

From the settings screen of the VPC router you want to configure, select the [DHCP] tab and then [DHCP Server] tab. A list of interfaces on which the DHCP server is enabled will appear. Click the [Add] button to add an interface for which you want to enable the new DHCP server.

The DHCP server settings screen will appear. Enter the information in each setting item.

Subject interface Select a private network side (VPC network side) interface from which you want to enable the DHCP server.
Dynamic assignment range (from) Enter the starting IP address of the IP address range assigned by the DHCP server.
Dynamic assignment range (to) Enter the ending IP address of the IP address range assigned by the DHCP server.
DNS server Enter the IP addresses of the DNS servers assigned by the DHCP server. (multiple entry is possible.)

*All fields except for DNS server are required to fill in. (when DNS server field is left blank, DNS servers “133.242.0.3” and “133.242.0.4” provided by us are applied.)

When the setting is completed, it is added to the list. The created entries can be edited with the pencil icon on the right of the list and deleted with the delete icon.

*When you add, change, or delete the DHCP server setting, you need to click the [Apply] button to update the settings to the VPC router side. (even if the VPC router is in the active state, the setting is updated by clicking the [Apply] button without turning it off.)

3. Static mapping setting

From the settings screen of the VPC router you want to configure, select the [DHCP] tab and then [Static Mapping] tab. A list of interfaces on which the DHCP server is enabled will appear. Click the [Add] button to add an interface for which you want to enable the new DHCP server.

The static mapping screen will appear. Enter the information in each setting item.

MAC address MAC address of the virtual server to be the subject of static mapping
Assigned IP address IP address to be assigned to the virtual server specified in the [MAC Address] section

*Both are required items.
*This setting is common to all interfaces on which the DHCP server is enabled.
*It is possible to set up to 100 entries.

When the setting is completed, it is added to the list. The created entries can be edited with the pencil icon on the right of the list and deleted with the delete icon.

*When you add, change, or delete the DHCP server setting, you need to click the [Apply] button to update the settings to the VPC router side. (even if the VPC router is in the active state, the setting is updated by clicking the [Apply] button without turning it off.)

[Reference] Setting method on the server side

As a reference, the method of setting the network from the DHCP server with CentOS OS is as follows.

1. Editing a network configuration file

Edit the network configuration file of the interface for which you want to configure the network settings from DHCP and acquire the network information from DHCP.

In case of the eth0 interface, edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file as follows.

DEVICE=eth0
BOOTPROTO=dhcp

2. Restarting network service

Restart the network service and obtain the network information from the DHCP server.

# service network restart

*Because the network settings up to this point are changed, connection may not be possible when connection is made by SSH, etc.