LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   unable to ping ipv6 addresses - Network is unreachable (https://www.linuxquestions.org/questions/linux-networking-3/unable-to-ping-ipv6-addresses-network-is-unreachable-4175734389/)

katie12 02-29-2024 12:16 PM

unable to ping ipv6 addresses - Network is unreachable
 
When I try to ping/traceroute/ssh ipv6 addresses, I always get Network is unreachable.

For example, googles ipv6 address is 2a00:1450:4001:806::200e


Ive tried checking some files on my machine.

Code:

cat /proc/sys/net/ipv4/conf/all/forwarding
cat /proc/sys/net/ipv6/conf/all/forwarding

both return 1

Code:

ip addr show

2: enp0s20u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 00:11:11:1f:00:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.9.100/24 brd 192.168.9.255 scope global dynamic noprefixroute enp0s20u1
      valid_lft 79147sec preferred_lft 79147sec
    inet6 fe80::Masked-For-Privacy/64 scope link noprefixroute
      valid_lft forever preferred_lft forever


Code:

nmcli device show enp0s20u1

GENERAL.DEVICE:                        enp0s20u1
GENERAL.TYPE:                          ethernet
GENERAL.HWADDR:                        00:11:00:1F:00:00
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                    Wired connection 2
GENERAL.CON-PATH:                      /org/freedesktop/NetworkManager/ActiveConnection/2
WIRED-PROPERTIES.CARRIER:              on
IP4.ADDRESS[1]:                        192.168.9.100/24
IP4.GATEWAY:                            192.168.9.1
IP4.ROUTE[1]:                          dst = 192.168.9.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]:                          dst = 0.0.0.0/0, nh = 192.168.9.1, mt = 100
IP4.DNS[1]:                            192.168.9.1
IP6.ADDRESS[1]:                        fe80::Masked-For-Privacy/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                          dst = fe80::/64, nh = ::, mt = 1024
IP6.DNS[1]:                            fe80::Masked-For-Privacy


I feel like my ipv6 isnt routing properly or somthings not enabled.

What should I do?

lvm_ 02-29-2024 12:58 PM

You needn't bother masking you ipv6 address - fe80 is ipv6 link-local address block. If you have only fe80 address and nothing else you have no ipv6 connectivity, and it is probably an upstream issue - you router is not configured, your ISP doesn't support, etc.

jayjwa 02-29-2024 08:09 PM

Did you turn SLAAC off? Did you ask for an ip6 address/prefix? I don't see a proper ip6 route nor global address. Run tcpdump or wireshark on the exteral interface and see if there's ip6 traffic and router advertisements. Are you connecting to some sort of router? Does it support ip6?


All times are GMT -5. The time now is 08:27 PM.