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
demandé il y a un an345 vues
2 réponses
0
Réponse acceptée

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
répondu il y a un an
profile picture
EXPERT
vérifié il y a un an
profile picture
EXPERT
vérifié il y a un an
0
tang lu
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions