..png)
케이블을 사용하여 PC를 라우터에 연결하고 WIFI USB TP-LINK도 연결했습니다.
-a를 확인해보니 인터페이스 ifconfig
가 없다는 것을 알았습니다 eth0
. 대신 첫 번째가 호출되는데 (WIFI USB를 뽑아도) br-ba165999130f
인 것 같아요 .eth0
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가상 브리지입니다. 당신은 찾을 수 없습니다eth0이제 더 이상 방법이 바뀌었기 때문에udevd, 이더넷 장치에 이름을 할당합니다. 이제 장치 이름은 다음에 따라 지정됩니다."예측 가능한 인터페이스 이름 체계".https://wiki.debian.org/NetworkInterfaceNames
귀하의 경우 전자eth0인터페이스입니다eno1en=이더넷. 인터페이스가 가상인지 실제 장치인지 표시하려면 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 아래에 스틱이 나타납니까?