ウェブサイトにpingを送信できません。 IPアドレスにpingを送信できます。

ウェブサイトにpingを送信できません。 IPアドレスにpingを送信できます。

ウェブサイトにpingを送信できないようです。

ping google.com
PING google.com(lax17s50-in-x0e.1e100.net (2607:f8b0:4007:815::200e)) 56 data bytes

ここでは問題なくnslookupを実行できます。

nslookup google.com                                                                 10 ⚙
Server:         192.168.228.125
Address:        192.168.228.125#53

Non-authoritative answer:
Name:   google.com
Address: 142.250.72.174
Name:   google.com
Address: 2607:f8b0:4007:815::200e

ここでは問題なくIPアドレスをpingできます。

ping 142.250.72.174                                                           130 ⨯ 10 ⚙
PING 142.250.72.174 (142.250.72.174) 56(84) bytes of data.
64 bytes from 142.250.72.174: icmp_seq=1 ttl=113 time=529 ms
64 bytes from 142.250.72.174: icmp_seq=2 ttl=113 time=244 ms

ここでは何の問題もありません。

wget google.com                                                                 1 ⨯ 10 ⚙
--2021-08-31 21:23:09--  http://google.com/
Resolving google.com (google.com)... 2607:f8b0:4007:815::200e, 142.250.72.174
Connecting to google.com (google.com)|2607:f8b0:4007:815::200e|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently

私のネットワークインターフェース

cat /etc/network/interfaces                                                         10 ⚙
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

recolv.conf

cat /etc/resolv.conf                                                          148 ⨯ 11 ⚙
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "resolvectl status" to see details about the actual nameservers.

nameserver 192.168.228.125
nameserver 2600:100e:bf12:3b9b::92
nameserver 2600:100e:bf12:3b9b::c4

ウェブサイトもよく閲覧できます。どうすればいいですか?

私はkdeを実行し、wireguardを動作させようとしましたが、これを実行しながら何かを台無しにしたようです。今私がしたことをキャンセルしようとしています。 pingを操作する方法について提案がありますか?ありがとうございます。

ベストアンサー1

pingコマンドはipv6をpingしようとします。-4ipv4アドレスをpingに明示的に通知するオプションを渡してみてください。

ping -4 google.com

ping の別名が異なると指定されている場合は、次のように別名をオーバーライドしてみてください\

\ping -4 google.com

おすすめ記事