我刚刚在我的计算机上安装了 Ubuntu 14.04 服务器,该服务器同时具有有线网络端口和 wifi 卡。我希望服务器在不可用时使用有线网络,并在不可用时使用 wifi。
原始的 /etc/network/interfaces 如下所示:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto p4p1
iface p4p1 inet dhcp
Run Code Online (Sandbox Code Playgroud)
我关注了这篇文章并将我的文件修改为:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# …Run Code Online (Sandbox Code Playgroud)