WindRiver - eth0:获取接口信息时出错:找不到设备
WindRiver - eth0: error fetching interface information: Device not found
在 "ifconfig" 我没有看到 eth0 出现。
当我尝试输入时:
dmesg | grep eth0
我收到以下消息
eth0: PHY ID 200xx5c99 at 1 IRQ ) (stmmac-1:01) active
当我输入时:
cat /etc/udev/ruled.d/70-persistentnet.rules
我收到以下消息
# PCI device 0x8086:0x0937 (stmmaceth)
SUBSYSTEM=="net" , ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:22:97:55:ff:b8", ATTR{dev_id}=="0x0",ATTR{type}=="1",KERNEL=="eth*",NAME="eth0"
我不知道为什么没有出现 eth0,如果您有任何想法,请告诉我。
ifconfig
不显示界面的典型原因是因为该界面不处于 "UP" 状态,而典型的(再次)原因是该界面没有IP 地址。
对于 ifconfig
到 "display all interfaces which are currently available, even if down"(引用手册页),使用 ifconfig -a
.
在 "ifconfig" 我没有看到 eth0 出现。
当我尝试输入时:
dmesg | grep eth0
我收到以下消息
eth0: PHY ID 200xx5c99 at 1 IRQ ) (stmmac-1:01) active
当我输入时:
cat /etc/udev/ruled.d/70-persistentnet.rules
我收到以下消息
# PCI device 0x8086:0x0937 (stmmaceth)
SUBSYSTEM=="net" , ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:22:97:55:ff:b8", ATTR{dev_id}=="0x0",ATTR{type}=="1",KERNEL=="eth*",NAME="eth0"
我不知道为什么没有出现 eth0,如果您有任何想法,请告诉我。
ifconfig
不显示界面的典型原因是因为该界面不处于 "UP" 状态,而典型的(再次)原因是该界面没有IP 地址。
对于 ifconfig
到 "display all interfaces which are currently available, even if down"(引用手册页),使用 ifconfig -a
.