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
gefragt vor einem Jahr345 Aufrufe
2 Antworten
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor einem Jahr
profile picture
EXPERTE
überprüft vor einem Jahr
0
tang lu
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen

Relevanter Inhalt