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
本文详细阐述了在Linux环境下配置网络接口、检查IP地址分配、设置默认网关及验证网络连通性的全过程。通过使用ifconfig命令获取并调整IP地址,以及通过route命令配置路由表来实现网络可达性的基本操作。
1167

被折叠的 条评论
为什么被折叠?



