Configuring Static Networking and IPv6 on CentOS 7

  • Last Created On Dec 10, 2024
  • 36
0 0

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
Views: 36

Recent Articles

  • How to Install JAX with ROCm Acceleratio...
    847
  • Deploy a PyTorch Workspace on a Vultr Cl...
    506
  • Managing Backup Storage
    542
  • Automating FTP Backups in Windows Server
    515
  • Automating FTP Backups in Linux
    494

Popular Articles

  • Our General Terms & Conditions
    13613
  • Our Privacy Policy
    12990
  • Our Cookies Policy
    1487
  • How to Install JAX with ROCm Acceleratio...
    847
  • Our Terms of Use
    838