ifconfig -a 顯示 br-ba165999130f 而不是 eth0 (乙太網路工作)

ifconfig -a 顯示 br-ba165999130f 而不是 eth0 (乙太網路工作)

我使用電纜將我的電腦連接到路由器,也連接了 WIFI USB TP-LINK。

只是檢查ifconfig-a ,我注意到沒有eth0介面。相反,第一個被調用br-ba165999130f,我認為它是eth0(無論我是否拔出WIFI USB)。

milano@milano-desktop:~$ ifconfig -a
br-ba165999130f: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255
        ether 02:42:4a:c5:46:fb  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:56:a3:3e:ce  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.100.135  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::5fac:7701:876b:133e  prefixlen 64  scopeid 0x20<link>
        ether 70:85:c2:7c:b8:ff  txqueuelen 1000  (Ethernet)
        RX packets 1575526  bytes 1425272914 (1.4 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 737541  bytes 87452976 (87.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xa3300000-a3320000  

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 14642  bytes 2453399 (2.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14642  bytes 2453399 (2.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.16.79.1  netmask 255.255.255.0  broadcast 172.16.79.255
        inet6 fe80::250:56ff:fec0:1  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:c0:00:01  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1525  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmnet8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.70.1  netmask 255.255.255.0  broadcast 192.168.70.255
        inet6 fe80::250:56ff:fec0:8  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:c0:00:08  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1525  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

背後的原因是什麼?

答案1

這不太對。介面br-ba165999130f是一個虛擬橋。你找不到乙太網路0不再是因為現在的方式改變烏德夫德,為乙太網路設備指派名稱。這些設備現在根據“可預測的介面名稱方案”https://wiki.debian.org/NetworkInterfaceNames

在你的情況下是前者乙太網路0是介面諾1en=乙太網路。若要標記介面是虛擬設備還是真實設備,可以執行 ls -la /sys/class/net。那裡列出了所有介面。

ls -la /sys/class/net
total 0
drwxr-xr-x  2 root root 0 Jul 18 16:46 .
drwxr-xr-x 87 root root 0 Jul 18 16:46 ..
lrwxrwxrwx  1 root root 0 Jul 18 14:46 br-5888a0968254 -> ../../devices/virtual/net/br-5888a0968254
lrwxrwxrwx  1 root root 0 Jul 18 14:46 br-701dd1212771 -> ../../devices/virtual/net/br-701dd1212771
lrwxrwxrwx  1 root root 0 Jul 18 14:46 br-b00d55f5f1b1 -> ../../devices/virtual/net/br-b00d55f5f1b1
lrwxrwxrwx  1 root root 0 Jul 18 14:46 br-c8cc7afb1a4e -> ../../devices/virtual/net/br-c8cc7afb1a4e
lrwxrwxrwx  1 root root 0 Jul 18 14:46 docker0 -> ../../devices/virtual/net/docker0
lrwxrwxrwx  1 root root 0 Jul 19 08:45 enx08920494661c -> ../../devices/pci0000:00/0000:00:07.1/0000:39:00.0/0000:3a:02.0/0000:3b:00.0/usb6/6-2/6-2.4/6-2.4:1.0/net/enx08920494661c
lrwxrwxrwx  1 root root 0 Jul 18 16:46 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx  1 root root 0 Jul 18 14:51 veth5501186 -> ../../devices/virtual/net/veth5501186
lrwxrwxrwx  1 root root 0 Jul 18 14:46 wlp0s20f3 -> ../../devices/pci0000:00/0000:00:14.3/net/wlp0s20f3

此介面是虛擬的

lrwxrwxrwx  1 root root 0 Jul 18 14:46 br-5888a0968254 -> ../../devices/virtual/net/br-5888a0968254

此介面是PCIe網路設備

lrwxrwxrwx  1 root root 0 Jul 19 08:45 enx08920494661c -> ../../devices/pci0000:00/0000:00:07.1/0000:39:00.0/0000:3a:02.0/0000:3b:00.0/usb6/6-2/6-2.4/6-2.4:1.0/net/enx08920494661c

驅動程式可能不是正確的。棒子出現在 lsusb 下嗎?

相關內容