代码: 全选
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: pci@0000: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