【问题标题】:WindRiver - eth0: error fetching interface information: Device not found [closed]WindRiver - eth0:获取接口信息时出错:找不到设备[关闭]
【发布时间】:2015-12-01 05:53:25
【问题描述】:

在“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,如果您有任何想法,请告诉我。

【问题讨论】:

    标签: linux networking kernel


    【解决方案1】:

    ifconfig 不显示接口的典型原因是因为该接口未处于“UP”状态,而典型(再次)原因是该接口没有 IP 地址。

    对于ifconfig 要“显示所有当前可用的接口,即使已关闭”(引用手册页),请使用ifconfig -a

    【讨论】:

    • 我也做了 ifocnfig -a。我得到了 eth2,但得到了 eth0。还有什么建议吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-11-17
    • 2017-05-04
    • 2014-06-08
    • 1970-01-01
    • 1970-01-01
    • 2018-09-26
    • 1970-01-01
    相关资源
    最近更新 更多