Eu tenho um servidor vps com dois endereços IP. Um é ens3
e o segundo é ens3:0
, que, até onde eu entendo, um alias. O que estou tentando fazer é definir todo o tráfego de rede na interface ens3:0
.
Meu / etc / network / interfaces parece:
# 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
E agora /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
Eu tentei desligar ens3
, mas também causa ens3:0
: (
Você poderia me ajudar?