debian这样不能配置多IP吗address 142.55.123.125/29

50次阅读

共计 431 个字符,预计需要花费 2 分钟才能阅读完成。

DD 后 interfaces 的默认配置
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp2s0
iface enp2s0 inet static
address 142.55.123.125/29
gateway 142.55.123.124
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
dns-search net

楼主您好,您的举例,应该仅一个 IP。如需绑多个 IP,这里有例子,请参考:https://wiki.debian.org/NetworkConfiguration

正文完
 0