Page tree
Skip to end of metadata
Go to start of metadata

For cPanel & WHM version 11.52

Overview

The /etc/init.d/cpipv6 script disables, enables, or lists IPv6 addresses. This script functions similarly to the /etc/init.d/ipaliases script, which disables, enables, or lists IPv4 addresses.

Note:

On servers that run CentOS 7, CloudLinux™ 7, or Red Hat® Enterprise Linux® (RHEL) 7, you cannot use this script. Instead, run the following command:

 systemctl status cpipv6.service

The /etc/init.d/cpipv6 script

To run the /etc/init.d/cpipv6 script on the command line, use the following format:

/etc/init.d/cpipv6 [arguments] 

Note:

Replace [arguments] with the desired arguments from the table below. 

Arguments

You can use the following arguments with the /etc/init.d/cpipv6 script:

ArgumentDescription
start

Starts IPv6 services on a network device.

stopStops IPv6 services on a network device.
restart

Restarts IPv6 services that the system previously interrupted.

Note:

If you use IPv6, the service network restart command removes the IPv6 addresses from the network device. To retain your IPv6 configuration, you must also run the /etc/init.d/cpipv6 restart command whenever you restart the network. 

reloadReloads the IPv6 services on a network device.
listLists all of the network device's IPv6 addresses.

Example

To return a list of IPv6 addresses on your network device, run the following command:

/etc/init.d/cpipv6 list 

 

This command's output resembles the following example:

/etc/init.d/cpipv6 list 
Bound IP: 2001:db8:1a34:56cf:: 
Bound IP: 2620:0:28a0:2143:5054:ff:fee4:7c28 
User IP: 2001:0db8:1a34:56cf:0000:0000:0000:0000