如何在 Alpine Linux 安装程序中检查/启用 DHCP
一旦你从 Alpine Linux 安装程序 CD 启动并使用 root / <无密码> 登录(如Alpine linux 默认登录和密码是什么?中所述),通常想在通过安装程序之前测试 DHCP 是否工作,以避免可能需要重复该过程。
首先使用以下命令启用以太网
ifconfig_eth0_up.sh
ifconfig eth0 up然后使用以下命令运行 DHCP 客户端
run_udhcpc.sh
udhcpc eth0这将显示你的 Alpine Live CD 获取的租约的 IP 地址。
Check out similar posts by category:
Alpine Linux, Linux, Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow