环境

  宿主主机:Ubuntu 14.04.4 LTS 32位

  LFS内核:Linux 4.2.0

好不用容易将LFS引导起来了,但系统启动后,无法配置网口。系统启动时提示:Interface eth0 doesn't exist。

/etc/udev/rules.d/70-persistent-net.rules配置了也不起作用。

ip link显示内容:(无网卡信息)

LFS: Interface eth0 doesn't exist

原因:

  编译内核linux-4.2时,没有把虚拟网卡编译进内核。

结果:

  重新编译内核,将pcnet32模块作为内核选项,选中后,编译安装。linux-4.2 pcnet32模块在:Device Drivers ---> Network device support --> Ethernet driver support ---> AMD PCnet32 PCI support

LFS: Interface eth0 doesn't exist

编译安装后,重启。查看内核模块加载情况:

LFS: Interface eth0 doesn't exist

将网卡对应信息写入规则文件

LFS: Interface eth0 doesn't exist

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-06-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
  • 2021-07-07
  • 2022-01-06
  • 2021-08-28
相关资源
相似解决方案