Welcome to the Linux Foundation Forum!

How to RE-ENABLE IPv6 functionality on Ubuntu 18.04.5 LTS ?

usjes
usjes Posts: 1

I enter the following command in a terminal to DISABLE IPv6:

for ip_six_devs in all default lo; do sudo sysctl net.ipv6.conf.${ip_six_devs}.disable_ipv6=1; done

This works fine. I can go to https://test-ipv6.com/ and it reports 'No IPv6 address detected' To re-enable it I assumed the following would work:

for ip_six_devs in all default lo; do sudo sysctl net.ipv6.conf.${ip_six_devs}.disable_ipv6=0; done

but it doesn't, all IPv6 test sites still report 'No IPv6 address detected' The only way I can re-enable IPv6 is to reboot my machine which isn't practical. What commands should I issue to re-enable it, also is there a command I can use to see its current status ?

Thanks,

Usjes,

Comments

  • alizaza
    alizaza Posts: 1
    edited May 2022

    Not a complex process
    1- Restarting network service by this command

    service networking restart
    
    

    2-verifying the Ubuntu IPv6 installation
    You can verify whether the correct IPv6 address has been installed on your Linux Operating system or not using the below command:

    ifconfig eth0
    
    

    In results Pay attention to this line:

    inet6 addr: 2400:c980:0:2::2/64 Scope:Global

    This line verifies that the correct IPv6 address is showing.
    I hope it was helpful but if not you can check this resource to get better guide : https://cloudzy.com/knowledge-base/configure-ipv6-on-ubuntu/

Categories

Upcoming Training