我有一个虚拟机,它有一个接口,它本身只能从 libvirt 的 dnsmasq 获得 IPv6:
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:49:0c:72 brd ff:ff:ff:ff:ff:ff
inet6 2600:1700:7d0:97a0::1a1/128 scope global dynamic noprefixroute
valid_lft 2727sec preferred_lft 2727sec
inet6 fe80::5054:ff:fe49:c72/64 scope link
valid_lft forever preferred_lft forever
我可以 ping 网关:
root@ipv6-test:~# ping -c3 2600:1700:7d0:97a0::1
PING 2600:1700:7d0:97a0::1(2600:1700:7d0:97a0::1) 56 data bytes
64 bytes from 2600:1700:7d0:97a0::1: icmp_seq=1 ttl=64 time=0.287 ms
64 bytes from 2600:1700:7d0:97a0::1: icmp_seq=2 ttl=64 time=0.297 ms
64 bytes from 2600:1700:7d0:97a0::1: icmp_seq=3 ttl=64 time=0.307 ms
--- 2600:1700:7d0:97a0::1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2026ms
rtt min/avg/max/mdev = 0.287/0.297/0.307/0.008 ms
Hypervisor 可以 ping IPv6 互联网地址: