📜  启动网络 ubuntu 恢复 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:51.656000             🧑  作者: Mango

代码示例1
# List devices, find your device name using
ip link
# If your device is eth0, for example
ip link set eth0 up
# Grab an IP from DHCP
dhclient eth0
# Check the status, confirm you have an IP
ip addr show dev eth0