how can I enable ipv6 on aws lightsail centos7 OS

0

I create a lightsail which OS is centos7 . I have enabled the ipv6 on the aws console , but my lightsail still cant use the ipv6 ,although ifconfig shows the ipv6 address in the inet6 . Can you tell me how to enable ipv6 ?

image

tang lu
已提问 1 年前345 查看次数
2 回答
0
已接受的回答

Edit the file with the following command.

sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

Put the following settings at the end of the file.

# IPv6 connect (blog.risupu.jp/?p=264)
IPV6_AUTOCONF=yes

After saving the file, restart the network service with the following command.

sudo systemctl restart network
profile picture
专家
已回答 1 年前
profile picture
专家
已审核 1 年前
profile picture
专家
已审核 1 年前
0
tang lu
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则