IPv6 Support

Last Updated : Apr 24, 2024 |

Procedure

  1. Edit /etc/hosts and add a line with the IPv6 host name.
    For example,
    9876:543g:FGHI:5431:ywxz:1a2b:0032:A0Z3 cms_ipv6_1

    Press Esc. Then enter. The system saves and closes the file.

  2. IPv6 SupportConfigure the /etc/sysconfig/network-scripts/ifcfg-ethX file to support IPv6 by entering:vi /etc/sysconfig/network-scripts/ifcfg-ethX.

    Where ifcfg-ethX is the network interface, and X is the instance of the network interface.

    Append the following options to support IPv6. For example,
    IPV6INIT=yes
    IPV6ADDR=9876:543g:FGHI:5431:ywxz:1a2b:0032:A0Z3
    IPV6_DEFAULTGW=1234:f567:ABCD:0001:aBcD:9876:efGH:1111
    DEVICE=eth1
    ONBOOT=yes
    BOOTPROTO=static
    HWADDR=01:02:03:04:05:06
    IPADDR=192.168.2.1
    NETMASK=255.255.255.255
    IPV6INIT=yes
    IPV6ADDR=9876:543g:FGHI:5431:ywxz:1a2b:0032:A0Z3
    IPV6_DEFAULTGW=1234:f567:ABCD:0001:aBcD:9876:efGH:1111
  3. Edit the /etc/sysconfig/network file to support the IPv6 network interface by entering: vi /etc/sysconfig/network.

    Append the following option to support IPv6:

    NETWORKING_IPV6=yes
  4. Configure the /etc/sysconfig/network file with the IPv6 host name you added to the /etc/hosts file. Enter the appropriate information for each item.
    NETWORKING=yes
    HOSTNAME=cms_ipv6_1
    GATEWAY=192.168.2.254
    NETWORKING_IPV6=yes
  5. Press Escape. Then enter::wq!
  6. Edit the /etc/sysconfig/network-scripts/route6-ethx to define static IPv6 routes.
    vi /etc/sysconfig/network-scripts/route6-ethx
    Enter the IPv6 route information. For example,
    ::/32 via defd:ebne:ADJL:wxyz dev ethx
  7. Press Escape. Then enter: :wq!

    The system saves and closes the file.