18.04找到有线网卡但上不了网

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
wlgyyk
帖子: 58
注册时间: 2007-09-05 20:23
送出感谢: 0
接收感谢: 0

18.04找到有线网卡但上不了网

#1

帖子 wlgyyk » 2018-08-12 11:54

求救各位大神!

代码: 全选

uname -a
Linux ubuntu 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

sudo lspci -knn | grep -iA5 Ethernet
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I218-V [8086:15a1] (rev 05)
	Subsystem: ASUSTeK Computer Inc. Ethernet Connection (2) I218-V [1043:85c4]
	Kernel driver in use: e1000e
	Kernel modules: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 05)
	Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family USB EHCI [1043:8534]
	Kernel driver in use: ehci-pci

sudo lshw -numeric -class network
  *-network                 
       description: Ethernet interface
       product: Ethernet Connection (2) I218-V [8086:15A1]
       vendor: Intel Corporation [8086]
       physical id: 19
       bus info: [email protected]:00:19.0
       logical name: eno1
       version: 05
       serial: 1c:87:2c:76:3c:cb
       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.1-4 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:28 memory:f7100000-f711ffff memory:f7138000-f7138fff ioport:f040(size=32)

sudo nmcli dev status
DEVICE  TYPE      STATE                                  CONNECTION         
eno1    ethernet  connecting (getting IP configuration)  Wired connection 1 
lo      loopback  unmanaged                              --                 

sudo ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 1c:87:2c:76:3c:cb brd ff:ff:ff:ff:ff:ff
    inet6 fe80::6b8f:ded6:d50a:2b4f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

sudo ip route show

sudo ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Jul 25 03:04 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

sudo cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
头像
astolia
论坛版主
帖子: 3184
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 537 次

Re: 18.04找到有线网卡但上不了网

#2

帖子 astolia » 2018-08-13 11:56

目前的状态是connecting (getting IP configuration),也就是说卡在通过dhcp协议获取自动分配的ip地址这一步上
你这个网线连接的是什么?路由器吗?检查一下路由器是不是死机了,有没有设置成自动分配IP
如果不是路由器的话,你可能需要把网络设置成固定IP或者拨号,看你那边的网络情况了
回复

回到 “网卡问题以及网络和拨号”