lfs 用jhalfs装好后,编译好内核(网卡模块选好),启动grub,重新启动
启动ok,但是网络没有ifconfig。这个命令在net-tools包里面
用ultraiso打包软件到iso里面,设置光驱位该iso。
ifconfig eth0 192.168.1.111 netmask 255.255.255.0
ifconfig查看ip,ping不通,查看路由
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
#route add default gw 192.168.1.1
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
再ping ok