Configuring Static Networking and IPv6 on CentOS 7

  • Last Created On Dec 10, 2024
  • 7
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: 7

Recent Articles

  • How to Install JAX with ROCm Acceleratio...
    96
  • Deploy a PyTorch Workspace on a Vultr Cl...
    71
  • Managing Backup Storage
    83
  • Automating FTP Backups in Windows Server
    71
  • Automating FTP Backups in Linux
    75

Popular Articles

  • Our General Terms & Conditions
    2632
  • Our Privacy Policy
    2478
  • Our Cookies Policy
    275
  • Our Terms of Use
    153
  • How to Install JAX with ROCm Acceleratio...
    96