Configuring Static Networking and IPv6 on CentOS 7

VULTR has recently made changes on their end, and everything should now work fine 'out of the box' with NetworkManager enabled. Should you wish to disable NetworkManager, you can follow these steps.

Pasted below is an example /etc/sysconfig/network-scripts/ifcfg-eth0 file. This template configures IPv4/IPv6 statically. Substitute DNS/HWADDR/IPADDR/GATEWAY/IPV6ADDR from your existing configuration.

DNS1=123.123.123.123
ONBOOT=yes
BOOTPROTO=static
DEVICE=eth0
HWADDR=52:54:00:00:00:00
IPADDR=123.123.123.123
PREFIX=23
GATEWAY=123.123.123.123
DEFROUTE=yes
NM_CONTROLLED=no
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6ADDR="2001:1234:1234:1234::64/64"
IPV6_AUTOCONF=yes
IPV6_FAILURE_FATAL=no

Then, disable NetworkManager and restart networking:

systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl restart network

Don't forget, should you lose access to your box you can use the VNC console from the control panel.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Speed Up Nginx on CentOS?

Introduction This tutorial will teach you how to optimize a website that is being hosted with...

Basics of Managing Users on CentOS Systems

Managing users can be a daunting task: from day-to-day maintenance, security risks, and lack of...

Check Internet Speed With Speedtest-cli on CentOS

Introduction In this tutorial, we'll be installing speedtest-cli to test the network speed of...

Initial Setup of a CentOS 7 Server

Introduction A newly activated CentOS 7 server has to be customized before it can be put into...

ModSecurity and OWASP on CentOS 6 and Apache 2

ModSecurity is a web application layer firewall designed to work with IIS, Apache2 and Nginx. It...

Powered by WHMCompleteSolution