
eth0 인터페이스(또는 eth1)가 없습니다.
ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tunl0 Link encap:UNSPEC HWaddr 00-00-00-00-31-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
나의 /etc/network/interfaces
:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
iface atml0 inet dhcp
# Wired or wireless interfaces
auto eth0
iface eth0 inet dhcp
iface eth1 inet dhcp
# Ethernet/RNDIS gadget (g_ether)
#... or on host side, usbnet and random hwaddr
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
Bluetooth networking
iface bnep0 inet dhcp
그리고 내가 시도할 때 ifup eth0
(eth1에 대한 동일함):
ifconfig: SIOCGIFFLAGS: no shuch device
내가 가지고 있는 유일한 udev 규칙은 에 있으며 /etc/udev/rules.d/local.rules
eth*에 대해서는 아무것도 없습니다. MAC 주소를 모르기 때문에 추가할 수 없습니다.
답변1
문제는 (가상 머신의 경우) 지정된 네트워크 인터페이스가 없거나 (물리적 머신의 경우) Linux가 네트워크 카드를 인식하지 못하는 것입니다. , 또는 드라이버가 로드되지 않았습니다.
문제를 디버그하는 데 적합한 정보는 "dmesg" 및 "lspci -v"의 출력으로, 시스템에서 무엇을 보고 있는지 알려줍니다. 하지만 중요한 점은 카드에 Linux 드라이버가 있고 이것이 로드되고 있는지 확인해야 한다는 것입니다. 이로 인해 (배포판에 따라) dmesg 및 ifconfig 등에 "eth0" 인터페이스가 표시됩니다.
관련 장치가 없는 것 같으므로 lspci -v는 장치가 실제로 무엇인지 추적하는 데 도움이 될 수 있습니다.