ipv6进行ping6测试报错connect: Invalid argument解决方法
需要指定网卡:
$ ping6 fe80::b57f:6882:274c:d36e%ens33
PING fe80::b57f:6882:274c:d36e%ens33(fe80::b57f:6882:274c:d36e) 56 data bytes
64 bytes from fe80::b57f:6882:274c:d36e: icmp_seq=1 ttl=64 time=0.094 ms
64 bytes from fe80::b57f:6882:274c:d36e: icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from fe80::b57f:6882:274c:d36e: icmp_seq=3 ttl=64 time=0.065 ms
64 bytes from fe80::b57f:6882:274c:d36e: icmp_seq=4 ttl=64 time=0.033 ms
64 bytes from fe80::b57f:6882:274c:d36e: icmp_seq=5 ttl=64 time=0.027 ms
64 bytes from fe80::b57f:6882:274c:d36e: icmp_seq=6 ttl=64 time=0.030 ms
^C
--- fe80::b57f:6882:274c:d36e%ens33 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5108ms
rtt min/avg/max/mdev = 0.027/0.046/0.094/0.026 ms
%ens33,增加%,然后添加网卡,比如我这里是ens33,也可能是eth0,wlan0等。