ip -6 addr add ****:****:1:****::2/64 dev eth0
ip -6 route add default via ****:****:1:****::1
ip -6 route add local ****:****::/32 dev lo
sysctl net.ipv6.ip_nonlocal_bind=1
-bash-4.2# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
# sysctl net.ipv6.conf.default.forwarding
net.ipv6.conf.default.forwarding = 0
# sysctl net.ipv6.conf.all.forwarding
net.ipv6.conf.all.forwarding = 0
# sysctl net.ipv6.ip_nonlocal_bind
net.ipv6.ip_nonlocal_bind = 1
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 185.185.69.61 netmask 255.255.252.0 broadcast 185.185.71.255
inet6 fe80::5054:ff:fe3f:92f prefixlen 64 scopeid 0x20<link>
inet6 2a0a:2b41:e:5b:: prefixlen 64 scopeid 0x0<global>
ether 52:54:00:3f:09:2f txqueuelen 1000 (Ethernet)
RX packets 19739423 bytes 1442439125 (1.3 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 40597 bytes 4578775 (4.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 6 bytes 416 (416.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 416 (416.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ip -6 route add local 2a0a:2b41:e:5b::/64 dev lo
IPv6: 2a0a:2b41:e:5b::/64
-bash-4.2# curl -6 -L ifconfig.co
2a0a:2b41:e:5b::
-bash-4.2# ping6 ifconfig.co
PING ifconfig.co(2606:4700:3036::6815:1956 (2606:4700:3036::6815:1956)) 56 data bytes
64 bytes from 2606:4700:3036::6815:1956 (2606:4700:3036::6815:1956): icmp_seq=1 ttl=60 time=11.1 ms
64 bytes from 2606:4700:3036::6815:1956 (2606:4700:3036::6815:1956): icmp_seq=2 ttl=60 time=10.8 ms
64 bytes from 2606:4700:3036::6815:1956 (2606:4700:3036::6815:1956): icmp_seq=3 ttl=60 time=13.1 ms
^C
--- ifconfig.co ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2008ms
rtt min/avg/max/mdev = 10.827/11.698/13.143/1.036 ms
-bash-4.2# ping6 -c 10 -I 2a0a:2b41:e:5b::1 ifconfig.co
PING ifconfig.co(2606:4700:3036::6815:1956 (2606:4700:3036::6815:1956)) from 2a0a:2b41:e:5b::1 : 56 data bytes
^C
--- ifconfig.co ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9242ms