Configuring Static Networking and IPv6 on CentOS 7

AKLWEB Host 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
IPADDR=123.123.123.123
PREFIX=23
GATEWAY=123.123.123.123
DEFROUTE=yes
NM_CONTROLLED=no
IPV6INIT=yes
IPV6ADDR="2001:1234:1234:1234::64/64"
IPV6_AUTOCONF=yes

Then, disable NetworkManager and restart networking:

systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl restart network
  • Configuring Static Networking and IPv6 on CentOS 7
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Setting up a Name Server for IPv6 rDNS in CentOS

Managing your own IPv6 rDNS is a fairly simple task. After setting up the name server, please...

Reset the Root Password in CentOS

If you have forgotten the root password it is possible to set a new one by interrupting the boot...

How to Install and Configure vsftpd on CentOS 7

FTP (File Transfer Protocol) is one of the most popular methods to upload files to a server....

How to enable EPEL repository?

The EPEL repository is an additional package repository that provides easy access to install...

Find (View) Default Zone for Firewall on CentOS 7

Pre-Flight Check These instructions are intended for finding (viewing) the default zone in...