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
asked a year ago326 views
2 Answers
0
Accepted Answer

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
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
profile picture
EXPERT
reviewed a year ago
0
tang lu
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions