由于第一个比 debian 更好的序列性和简单性,我在离开 debian 后为我的笔记本电脑使用了devuan linux。
我真的很满意,但我有下一个问题:
当操作系统启动时,如果我的以太网电缆没有插入或者即使我的连接有问题,它会等待大约 20 秒,同时:
配置互联网接口
......然后它说:
ifup 已经配置好了。完毕
或类似的东西,即使它真的配置了接口(如果从一开始就没有真正连接电缆,那真的很少见 - 我可能有电缆问题,因为它太长,或者可能是因为端口有问题-) 即使接口没有真正配置,我也无法访问互联网。
我想要的是:1)一种保存配置的方法,不需要等待这 20 秒ifup
在每次启动时重新配置,而是能够使用
service networking restart
Run Code Online (Sandbox Code Playgroud)
如果我的互联网在启动过程中没有真正配置。
PS:每次启动需要等待 20 秒真的很多,很多时候我只想脱机工作而无需插入电缆。
/etc/network/interfaces
:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp …
Run Code Online (Sandbox Code Playgroud)