У меня есть vps-сервер с двумя IP-адресами. Один из них ens3, а второй - ens3:0, который, насколько я понимаю, является псевдонимом. То, что я пытаюсь сделать, - установить весь сетевой трафик на интерфейс ens3:0.
Мои / 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
# Source interfaces
# Please check /etc/network/interfaces.d before changing this file
# as interfaces may have been defined in /etc/network/interfaces.d
# See LP: #1262951
source /etc/network/interfaces.d/*.cfg
auto ens3:0
iface ens3:0 inet static
address 94.23.171.57
netmask 255.255.255.255
broadcast 94.23.171.57
А теперь / etc /network/interfaces.d/50-cloud-init.cfg:
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
auto ens3
iface ens3 inet dhcp
Я попытался отключить ens3, но также вызывает ens3:0: (
Could вы поможете?