This article provides configuration examples for setting up IPv6 on the network interface "eth0" under CentOS and Debian. For CentOS, the configuration is done in the files "/etc/sysconfig/network" and "/etc/sysconfig/network-scripts/ifcfg-eth0", specifying parameters such as NETWORKING_IPV6 and IPV6ADDR. Under Debian, the setup is done in the file "/etc/network/interfaces" with details for address, netmask, and gateway.
Examples using "eth0" as the network interface
CentOS
Debian
CentOS
/etc/sysconfig/network
NETWORKING_IPV6=yes
/etc/sysconfig/network-scripts/ifcfg-eth0
IPV6INIT=yes
IPV6ADDR=2A00:1128:1:1::xxx:xxx/64
IPV6_DEFAULTGW="fe80::1%eth0"
Debian
/etc/network/interfaces
iface eth0 inet6 static
address 2A00:1128:1:1::xxx:xxx
netmask 64
gateway fe80::1