Using Network Interface
  • PDF

Using Network Interface

  • PDF

Network Interface is a service that creates additional network interfaces that can be assigned to servers. Servers with the additional network interface applied are able to conduct independent network communications through private subnets.

Note

You need to first request subscription to a private subnet to use the Network Interface.

Create network interface

The following describes how to create a network interface.

  1. From the NAVER Cloud Platform console, click the Services > Compute > Server menus in order.
  2. Click the Network Interface menu.
  3. Click the [Create Network Interface] button.
  4. Specify the settings, and then click the [OK] or [Create] button.
    • Enter the Private IP address to be included in the private subnet that was created in advance. The network address of the private subnet and initial 10 IPs are reserved for management.
    • The network interface is created.

Assign network interface on server

You can assign unassigned network interfaces to servers. The following describes how to assign a network interface to a server.

  1. From the NAVER Cloud Platform console, click the Services > Compute > Server menus in order.
  2. Click the Network Interface menu.
  3. Select the network interface to assign to a server, and then click the [Assign to server] button.
  4. Select the server for application, and then click the [OK] button.
    • The network interface is assigned to the selected server.

Activate added NIC

The following describes how to activate a NIC that was added for each server OS.

CentOS

Run the following command.

Note

For bare metal servers, enter bond1 instead of eth1.

$> vi /etc/sysconfig/network-scripts/ifcfg-eth1 
	DEVICE=eth1 
	BOOTPROTO=static 
	IPADDR=Enter the interface IP
	NETMASK=255.255.255.0
	ONBOOT=yes 
$> ifup eth1

Ubuntu 16.04

Run the following command.

Note

For bare metal servers, enter eth3 instead of eth1.

$> vi /etc/network/interfaces
    …… 
    # The secondary Network Interface 
    auto eth1 
    iface eth1 inet static 
    Enter the address INTERFACE IP 
    netmask 255.255.255.0
$> ifup eth1

Ubuntu 18.04

Create a yaml configuration file for the eth1 interface, and then run the following command.

Note

For bare metal servers, enter eth3 instead of eth1.

​$> vi /etc/netplan/02-netcfg.yaml 
 
network:
 ethernets:
  eth1:
   dhcp4: false
   dhcp6: false
   addresses: [192.168.0.12/24]
 version: 2
 
$> netplan --debug apply
#The debug option will print the debugging process while running

Windows

  1. Click Start > Settings > Network & Internet > Change adapter options in this order.
  2. Right-click the icon for the added network interface, and then click Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4), and then click the [Properties] button.
  4. Select Use the Following IP Address, enter the IP of the network interface for IP address, and enter "255.255.255.0" for Subnet mask.
  5. Click the [OK] button.

Remove network interface assignment

The following describes how to remove assigned network interface from a server.

  1. From the NAVER Cloud Platform console, click the Services > Compute > Server menus in order.
  2. Click the Network Interface menu.
  3. Select the network interface to remove assignment from the server, and then click the [Remove from server] button.
  4. Check the details in the confirmation pop-up window, and then click the [OK] button.
    • The network interface is removed from the server.

Terminate network Interface

The following describes how to terminate an unused network interface.

  1. From the NAVER Cloud Platform console, click the Services > Compute > Server menus in order.
  2. Click the Network Interface menu.
  3. Select the network interface to terminate, and then click the [Terminate] button.
  4. Check the details in the confirmation pop-up window, and then click the [OK] button.
    • The network interface is terminated and deleted from the list.

Set up flow log (VPC)

You can set up to save the flow log of the network interface to Object Storage. The following describes how to change the flow log settings.

Note

To use the flow log settings feature, you need to be subscribed to the Object Storage service and have created a bucket.

  1. From the NAVER Cloud Platform console's VPC environment, click the Services > Compute > Server menus, in that order.
  2. Click the Network Interface menu.
  3. Select the network interface to change the flow log settings for, and then click the [Flow log settings] button.
  4. Specify the settings, and then click the [Set] button.
    • The flow log settings are applied.
Note

To deleted the applied flow log settings, click the [Delete] button from the Flow log field of the network interface details.
Even if you delete the flow log settings, the logs already saved to Object Storage are not deleted.

Set up secondary IP (VPC)

Secondary IP is a feature that adds secondary IPs to network interfaces assigned to servers to be utilized for HA solutions, etc. Up to 5 secondary IPs can be manually specified or randomly assigned within the IP range of the subnet that the network interface belongs to.

The following describes how to change the secondary IP settings.

  1. From the NAVER Cloud Platform console's VPC environment, click the Services > Compute > Server menus, in that order.
  2. Click the Network Interface menu.
  3. Select the network interface to change the secondary IP settings for, and then click the [Secondary IP settings] button.
  4. Change settings, and then click the [Set] button.
    • If you want to directly specify desired IP, enter the IP and click the [Add] button.
    • If you want to automatically assign the IP, leave the Secondary IP entry field empty and click the [Add] button.
    • Click the [X] button to delete the assigned secondary IP.

Set up secondary IP from server

For secondary IPs to function properly, they need to be created and changed from the console, and then set up from the server. The following describes how to change the secondary IP settings for each server OS.

CentOS

Run the following command.

$> vi /etc/sysconfig/network-scripts/ifcfg-eth0:0
    DEVICE=eth0:0
    BOOTPROTO=static
    IPADDR=Enter secondary IP
    NETMASK=Enter subnet range
    ONBOOT=yes
$> ifup eth0:0

Ubuntu

Run the following command.

$> vi /etc/network/interfaces
    ……
    auto eth0:0
    iface eth0:0 inet static
    Enter address secondary IP
    Enter netmask subnet range
$> ifup eth0:0

Windows

  1. Click Start > Settings > Network & Internet > Change adapter options in this order.
  2. Right-click the icon for the network interface, and then click Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4), and then click the [Properties] button.
  4. Click the Advance button.
  5. Click the [Add] button from the IP address area.
  6. Enter the added secondary IP address, and then click the [OK] button.

Was this article helpful?