我第一次使用以太网电缆连接到公司互联网。该连接对其他人都适用,但我的 Ubuntu 19.1 笔记本电脑却不行。
故障排除后,DNS 似乎没有任何问题,因为我的笔记本电脑可以解析域名,我可以在手机上访问这些 IP 地址。我无法从笔记本电脑 ping 任何具有 IP 地址或域名的网站。我可以 ping 默认路由。
$ host google.com
google.com has address 64.233.185.102
google.com has address 64.233.185.138
google.com has address 64.233.185.113
google.com has address 64.233.185.139
google.com has address 64.233.185.100
google.com has address 64.233.185.101
google.com has IPv6 address 2607:f8b0:4002:c09::64
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
$ ping 72.30.35.10
PING 72.30.35.10 (72.30.35.10) 56(84) bytes of data.
--- 72.30.35.10 ping statistics ---
164 packets transmitted, 0 received, 100% packet loss, time 166900ms
$ network-test
INFO: This system has exactly one default route
INFO: Host localhost answers to ICMP pings
INFO: Loopback interface is working properly
INFO: The enp0s31f6 interface is up
INFO: The enp0s31f6 interface has IP address 10.248.19.128 assigned
INFO: The enp0s31f6 interface has tx and rx packets.
WARN: The wlp4s0 interface is down
INFO: The router 10.248.19.11 is reachable
INFO: This system is configured to use nameserver 127.0.0.53
INFO: Host 127.0.0.53 answers to ICMP pings
INFO: Dns server 127.0.0.53 resolved correctly www.debian.org
INFO: The nameserver configured for this system works properly
WARN: System does not seem to reach Internet host www.debian.org through ICMP
ERR: Cannot access web server at Internet host www.debian.org (port 80)
$ ping 10.248.19.11
PING 10.248.19.11 (10.248.19.11) 56(84) bytes of data.
64 bytes from 10.248.19.11: icmp_seq=1 ttl=255 time=1.09 ms
64 bytes from 10.248.19.11: icmp_seq=2 ttl=255 time=1.28 ms
64 bytes from 10.248.19.11: icmp_seq=3 ttl=255 time=1.61 ms
64 bytes from 10.248.19.11: icmp_seq=4 ttl=255 time=0.918 ms
> 2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> fq_codel state UP group default qlen 1000
> link/ether 12:0a:57:4c:e7:13 brd ff:ff:ff:ff:ff:ff
> inet 10.248.19.128/24 brd 10.248.19.255 scope global dynamic noprefixroute enp0s31f6
> valid_lft 86104sec preferred_lft 86104sec
> inet6 fe80::9f93:f86b:b5c4:b9b5/64 scope link noprefixroute
> valid_lft forever preferred_lft forever
我可以执行哪些其他故障排除步骤来确定无法 ping 网站的原因?
$sudo lshw -C network
*-network DISABLED
description: Wireless interface
product: Wireless 8260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlp4s0
version: 3a
serial: a4:34:d9:bc:64:de
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.3.0-40-generic firmware=36.77d01142.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:128 memory:f1000000-f1001fff
*-network
description: Ethernet interface
product: Ethernet Connection I219-LM
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: enp0s31f6
version: 21
serial: 12:0a:57:4c:e7:13
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.13-3 ip=10.248.3.104 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:124 memory:f1200000-f121ffff
$ host www.ebay.com
www.ebay.com is an alias for slot9428.ebay.com.edgekey.net.
slot9428.ebay.com.edgekey.net is an alias for e9428.b.akamaiedge.net.
e9428.b.akamaiedge.net has address 72.246.253.92
$ ping -c 5 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84)字节数据。
--- 8.8.8.8 ping 统计 --- 发送了 5 个数据包,接收了 0 个数据包,100% 数据包丢失,耗时 4104ms
我从未遇到过无线问题。现在已连接到我的手机互联网。