• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Configuring Private Network

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
17
VIEWS
Share on FacebookShare on Twitter

Contents

  1. CentOS 6, CentOS 7
  2. CentOS 8
  3. Debian 7, Debian 8
  4. Debian 9, Debian 10
  5. Fedora 24 – 28
  6. Fedora 29 – 31
  7. FreeBSD 10.x, FreeBSD 11.x, FreeBSD 12.x
  8. OpenBSD 6.x
  9. Ubuntu 12.xx – Ubuntu 15.xx
  10. Ubuntu 16.xx, Ubuntu 17.04
  11. Ubuntu 17.10, Ubuntu 18.xx, Ubuntu 19.xx
  12. Windows Server 2012 R2, Windows Server 2016, Windows Server 2019
  13. Want to contribute?


If you’re assigning a private network to an existing machine (or deploying your own operating system), you’ll need to configure the IP addresses on the private interface.

The control panel will assign you an IP address, you should replace “10.99.0.200” in the examples with that IP. Some configurations also require a MAC address, in which “01:23:45:67:89:ab” will be mentioned. You’ll need to replace this with the MAC address of your private network adapter.

In the Vultr control panel, there are configuration examples generated for each of your VMs. These are located under the VM’s IPv4 settings, labeled “View our networking configuration tips and examples.“.

The examples in this guide are for IPv4, however private network interfaces on Vultr VMs support both IPv4 and IPv6.

CentOS 6, CentOS 7

Populate /etc/sysconfig/network-scripts/ifcfg-eth1 with the following text.

DEVICE=eth1
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=10.99.0.200
NETMASK=255.255.0.0
IPV6INIT=no
MTU=1450

Start the interface or reboot.

ifup eth1

CentOS 8

Populate the /etc/sysconfig/network-scripts/ifcfg-ens7 file with the following text.

TYPE="Ethernet" 
DEVICE="ens7" 
ONBOOT="yes" 
BOOTPROTO="none" 
IPADDR=10.99.0.200
PREFIX=16
MTU=1450

Restart the connection, or reboot.

nmcli con load /etc/sysconfig/network-scripts/ifcfg-ens7
nmcli con up 'System ens7'

Debian 7, Debian 8

Add the following text to the /etc/network/interfaces file.

auto eth1
iface eth1 inet static
    address 10.99.0.200
    netmask 255.255.0.0
    mtu 1450

Start the interface or reboot.

ifup eth1

Debian 9, Debian 10

Add the following text to the /etc/network/interfaces file.

auto ens7
iface ens7 inet static
    address 10.99.0.200
    netmask 255.255.0.0
    mtu 1450

Start the interface or reboot.

ifup ens7

Fedora 24 – 28

Populate /etc/sysconfig/network-scripts/ifcfg-ens7 with the following text.

DEVICE=ens7
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=10.99.0.200
NETMASK=255.255.0.0
NOZEROCONF=yes
IPV6INIT=no
MTU=1450

Restart networking or reboot.

systemctl restart network.service

Fedora 29 – 31

Run the following commands.

nmcli con add con-name private-net ifname ens7 type ethernet ipv4.method 'manual' ipv4.addresses '10.99.0.200/24' 802-3-ethernet.mtu 1450
nmcli con up private-net

FreeBSD 10.x, FreeBSD 11.x, FreeBSD 12.x

Add the following line to the /etc/rc.conf file.

ifconfig_vtnet1="inet 10.99.0.200 netmask 255.255.0.0 mtu 1450" 

Start the interface or reboot.

service netif start vtnet1

OpenBSD 6.x

Add the following lines to the /etc/hostname.vio1 file.

inet 10.99.0.200 255.255.0.0
!ifconfig vio1 mtu 1450

Reboot the system.

reboot

Ubuntu 12.xx – Ubuntu 15.xx

Add the following lines to the /etc/network/interfaces file.

auto eth1
iface eth1 inet static
    address 10.99.0.200
    netmask 255.255.0.0
    mtu 1450

Start the interface or reboot.

ifup eth1

Ubuntu 16.xx, Ubuntu 17.04

Add the following lines to the /etc/network/interfaces file.

auto ens7
iface ens7 inet static
    address 10.99.0.200
    netmask 255.255.0.0
    mtu 1450

Start the interface or reboot.

ifup ens7

Ubuntu 17.10, Ubuntu 18.xx, Ubuntu 19.xx

Populate /etc/netplan/10-ens7.yaml with the following text.

network:
  version: 2
  renderer: networkd
  ethernets:
    ens7:
      match:
        macaddress: 01:23:45:67:89:ab
      mtu: 1450
      dhcp4: no
      addresses: [10.99.0.200/16]

Update networking or reboot.

netplan apply

Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

Find the private interface name on your system. You can use ipconfig /all or navigate the Windows Control Panel.

Replace “Ethernet 2” with the private interface name that Windows has chosen and run the following command.

netsh interface ip set address name="Ethernet 2" static 10.99.0.200 255.255.0.0 0.0.0.0 1

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install Gitea on Fedora 29

Next Post

Install MediaWiki on the One-Click LEMP Application

Next Post

Install MediaWiki on the One-Click LEMP Application

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet