편집하다:
내 문제는 이더넷 연결을 통해 인터넷에 연결할 수 없다는 것입니다. 을 실행하면 Chrome 및 Firefox에서 연결 문제를 언급하는 사이트를 로드할 수 없다는 wget http://google.com
오류가 표시됩니다 ....failed: Name or service not known.
다른 컴퓨터를 연결하면 이더넷이 제대로 작동합니다. 작동하지 않는 것은 바로 이 특정 기계입니다.
다음 댓글당 2개 수정칠리555
soverton@osr-ubuntu-2:~$ wget --spider http://google.com
Spider mode enabled. Check if remote file exists.
--2018-03-03 08:39:00-- http://google.com/
Resolving google.com (google.com)... failed: Name or service not known.
wget: unable to resolve host address ‘google.com’
soverton@osr-ubuntu-2:~$ ping -c3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.56 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.69 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.66 ms
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.568/1.642/1.695/0.071 ms
soverton@osr-ubuntu-2:~$ ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=23.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=12.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=11.7 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 11.742/15.840/23.394/5.349 ms
soverton@osr-ubuntu-2:~$ systemd-resolve --status
Global
DNS Servers: 192.168.1.1
DNSSEC NTA: 10.in-addr.arpa
16.172.in-addr.arpa
168.192.in-addr.arpa
17.172.in-addr.arpa
18.172.in-addr.arpa
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
lines 8-30
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp0s25)
lines 8-31
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp0s25)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
lines 8-32
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp0s25)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
lines 8-33
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp0s25)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 192.168.1.1
~
lines 8-37/37 (END)
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp0s25)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 192.168.1.1
~
~
lines 8-37/37 (END)
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp0s25)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 192.168.1.1
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp0s25)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 192.168.1.1
편집 3
분명히 DNS 조회 문제입니다.
다른 컴퓨터에서 google.com의 IP 주소를 찾았습니다.
ping -c3 172.217.11.142
약 40ms의 핑으로 작동합니다.
내가 달릴 때 nslookup google.com
, 나는 얻는다.;; connection timed ou; no servers could be reached
나는 해결책을 시도했다.여기그리고여기DHCP와 정적을 사용하면 아무런 이점이 없습니다.
처음에는 DHCP로 시도한 다음 고정적으로 시도했습니다.
soverton@osr-ubuntu-2:~$ sudo ifdown enp0s25 && sudo ifp -v enp0s25
ifdown: interface enp0s25 not configured
sudo: ifp: command not found
soverton@osr-ubuntu-2:~$ sudo ifdown enp0s25 && sudo ifup -v enp0s25
ifdown: interface enp0s25 not configured
Configuring interface enp0s25=enp0s25 (inet)
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
/sbin/dhclient -1 -v -pf /run/dhclient.enp0s25.pid -lf /var/lib/dhcp/dhclient.enp0s25.leases -I -df /var/lib/dhcp/dhclient6.enp0s25.leases enp0s25
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp0s25/5c:f9:dd:70:17:f6
Sending on LPF/enp0s25/5c:f9:dd:70:17:f6
Sending on Socket/fallback
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 3 (xid=0xe91bd312)
DHCPREQUEST of 192.168.1.10 on enp0s25 to 255.255.255.255 port 67 (xid=0x12d31be9)
DHCPOFFER of 192.168.1.10 from 192.168.1.1
DHCPACK of 192.168.1.10 from 192.168.1.1
bound to 192.168.1.10 -- renewal in 42067 seconds.
/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/avahi-autoipd
run-parts: executing /etc/network/if-up.d/avahi-daemon
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/wpasupplicant
soverton@osr-ubuntu-2:~$ sudo nano /etc/network/interfaces #use static
soverton@osr-ubuntu-2:~$ sudo ifdown enp0s25 && sudo ifup -v enp0s25
RTNETLINK answers: No such process
RTNETLINK answers: Cannot assign requested address
Configuring interface enp0s25=enp0s25 (inet)
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
/bin/ip addr add 10.10.0.20/255.255.255.0 broadcast 10.10.0.255 dev enp0s25 label enp0s25
/bin/ip link set dev enp0s25 up
/bin/ip route add default via 10.10.0.10 dev enp0s25 onlink
/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
run-parts: executing /etc/network/if-up.d/avahi-autoipd
run-parts: executing /etc/network/if-up.d/avahi-daemon
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/wpasupplicant
soverton@osr-ubuntu-2:~$ nslookup google.com
;; connection timed out; no servers could be reached
원본 게시물
어젯밤에 16.04에서 17.10으로 업그레이드했습니다. 재부팅하기 전에도 이더넷이 작동을 멈췄습니다. 네트워크 관리자로 이동하여 "자동 이더넷"을 클릭하면 다음과 같은 이미지가 나타납니다.
나는 많은 관련 게시물을 파헤쳤지만 어떤 솔루션도 나에게 도움이 되지 않았습니다.
sudo nano /etc/NetworkManager/NetworkManager.conf
다음으로 수정됨
[ifupdown] 관리됨=true
sudo service network-manager restart #issue not resolved
내 관리/비관리 연결 표시
nmcli d
DEVICE TYPE STATE CONNECTION
enp0s25 ethernet connectd Wired connection 1
lo loopback unmanaged
sudo nano /etc/network/인터페이스
다음으로 수정됨
auto lo
iface lo inet loopback
네트워크 관리자를 다시 시작해도 여전히 작동하지 않습니다
ifconfig
(I'm having to manually type this, I'm skipping over addresses)
enp0s25: flags=4163<UP, BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.8 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::5e1d:5c8:3898:bf5b prefixlen 64 scopeid 0x20<link>
ether .... txqueuelen 1000 (Ethernet)
RX packets 10591 bytes 964576 (964.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2499 bytes 258409 (258.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory ......
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefexlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 17472 bytes 1624396 (1.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17472 bytes 162396 (1.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lsb_release -a
17.10을 실행 중임을 확인합니다