• Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
No Result
View All Result
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
No Result
View All Result
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
No Result
View All Result
Home Tutorials

How to Add Private Networking in CentOS 8/Ubuntu on Vultr (One-liners/AUTO)

by Sick Codes
May 17, 2020 - Updated on June 24, 2020
in Tutorials
0

Vultr uses ens7 as the private network interface name.

Your instances must be in the same location.

How to add private networking to Ubuntu in Vultr (netplan):

# centos 8

PRIVATE_IP='10.39.100.4'

echo 'TYPE="Ethernet" 
DEVICE="ens7" 
ONBOOT="yes" 
BOOTPROTO="none" 
IPADDR='"${PRIVATE_IP}"'
PREFIX=16
MTU=1450' > /etc/sysconfig/network-scripts/ifcfg-ens7

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


How to add private networking to Ubuntu in Vultr (netplan):

# ubuntu 18.04+

PRIVATE_IP='10.39.100.3'

MAC_ADDR=$(ifconfig -a | grep ens7 -A10 | grep -m1 -Eo '([0-9a-f]{2}:){5}[0-9a-f]{2}')

echo "network:
  version: 2
  renderer: networkd
  ethernets:
    ens7:
      match:
        macaddress: "${MAC_ADDR}"
      mtu: 1450
      dhcp4: no
      addresses: ["${PRIVATE_IP}"/16]"  >  /etc/netplan/10-ens7.yaml

netplan apply


Next Post

How to Install GlusterFS On CentOS 8

How To UPGRADE GlusterFS (ALL VERSIONS) On Ubuntu (16.04, 18.04, 20.04)

How To Install NFS on CentOS 8 & Ubuntu 20.04+: Network Shared Folder Between VPS/Server

Leave a Reply Cancel reply

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

No Result
View All Result
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training

© 2017-2021 Sick.Codes

@sickcodes

@sickcodes

@sickcodes

Discord Server

sickcodes.slack.com

t.me/sickcodeschat

./contact_form