假设给定系统上有多个以太网网卡以及一个无线设备,我如何/etc/network/interface
为其中一个网卡指定自定义设置,但允许网络管理器管理其他网卡?
答案1
网络管理器/etc/network/interfaces
默认忽略 NIC 中提到的内容。因此不要在该文件中添加有关其他 NIC 的任何内容。从man NetworkManager.conf
:
[ifupdown]
This section contains ifupdown-specific options and thus only has effect
when using ifupdown plugin.
managed=false | true
Controls whether interfaces listed in the 'interfaces' file are
managed by NetworkManager. If set to true, then interfaces listed in
/etc/network/interfaces are managed by NetworkManager. If set to
false, then any interface listed in /etc/network/interfaces will be
ignored by NetworkManager. Remember that NetworkManager controls the
default route, so because the interface is ignored, NetworkManager may
assign the default route to some other interface. When the option is
missing, false value is taken as default.