Board logo

标题: linux取消“A start job is running for wait for network to be configured” [打印本页]

作者: linda    时间: 2022-2-25 18:13     标题: linux取消“A start job is running for wait for network to be configured”

Edit /etc/netplan/01-netcfg.yaml and add optional: true to any devices that may not always be available.

netplan apply


# cat /etc/netplan/00-installer-config.yaml
network:
  version: 2
  ethernets:
    eth0:
      dhcp4: no
      optional: true
      addresses: [192.168.1.212/24]
      gateway4: 192.168.1.1
    eth1:
      dhcp4: no
      optional: true
      addresses: [192.168.10.212/24]

# networkctl -a
IDX LINK TYPE     OPERATIONAL SETUP      
  1 lo   loopback carrier     unmanaged  
  2 eth0 ether    routable    configuring  (若没有optional: true,则等待配置好后是configured)
  3 eth1 ether    no-carrier  configuring

参考:
https://wikimho.com/us/q/askubuntu/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-10
https://askubuntu.com/questions/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1

[ 本帖最后由 linda 于 2022-2-25 18:28 编辑 ]




欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0