INTRODUCTION

When deploying a server instance with a private network, you need to manually configure the IP addresses on the private interface. the examples on this manual are for ipv4, but private network interfaces on Onenet VMS help both ipv4 and ipv6. Onenet supports multiple VLANs over a single private network interface with 802.1q tags.

You may locate the statistics for your server inside Onenet control panel, below settings > ipv4.

these examples below are just like what you may locate via clicking the "view our networking configuration tips and examples" link to your control panel. if you are following these examples, make sure to replace the private address with 10.10.10.3 and mac address 00:00:00:00:00:00 with your server's statistics information.

CentOS 8

Edit /etc/sysconfig/network-scripts/ifcfg-ens7

# nano /etc/sysconfig/network-scripts/ifcfg-ens7

 

Edit the file with the below configuration. Use the values from your server information screen.

TYPE="Ethernet" 

DEVICE="ens7" 

ONBOOT="yes" 

BOOTPROTO="none" 

IPADDR=10.10.10.3

PREFIX=16

MTU=1450

 

Restart the connection, or reboot system.

# nmcli con load /etc/sysconfig/network-scripts/ifcfg-ens7

# nmcli con up 'System ens7'

 

CentOS 7 and CentOS 6

Edit /etc/sysconfig/network-scripts/ifcfg-eth1

# nano /etc/sysconfig/network-scripts/ifcfg-eth1

 

Edit the file with the below configuration. Use the values from your server information screen.

DEVICE=eth1

ONBOOT=yes

NM_CONTROLLED=no

BOOTPROTO=static

IPADDR=10.10.10.3

NETMASK=255.255.0.0

IPV6INIT=no

MTU=1450

Start the interface or reboot

# ifup eth1

 

Was this answer helpful? 24 Users Found This Useful (0 Votes)