我正在使用 Linux Mint
ifconfig
不显示 enp1s0。它只是显示
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::c364:e1b0:d52d:657f prefixlen 64 scopeid 0x20<link>
ether 08:00:27:77:c5:b8 txqueuelen 1000 (Ethernet)
RX packets 164217 bytes 182814329 (182.8 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 50303 bytes 6603681 (6.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 9297 bytes 817576 (817.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9297 bytes 817576 (817.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
我将网络适配器从 NAT 更改为桥接适配器。我输入此命令来启用它,以防它默认被禁用。
ifup enp1s0
收到此消息:
Unknown interface enp1s0
网络适配器
sudo lshw -C network
*-network
description: Ethernet interface
product: 82540EM Gigabit Ethernet Controller
vendor: Intel Corporation
physical id: 3
bus info: pci@0000:00:03.0
logical name: enp0s3
version: 02
serial: 08:00:27:77:c5:b8
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 66MHz
capabilities: pm pcix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=192.168.1.10 latency=64 link=yes mingnt=255 multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:19 memory:f1200000-f121ffff ioport:d020(size=8)
答案1
如果接口没有配置/etc/网络/接口它没有显示在如果配置默认输出,但你可以检查它:
~$: ifconfig -a
~$: ip address show
检查可用接口:
~$: ls /sys/class/net