Score:0

Docker containers no internet after adding a static IP, netplan (host)

in flag

I am a newbie with netplan.
The context is that I want to add a failover IP (provided by OVH) to one of my server to provide HA (this IP will be failover/moved between all of my servers, only one server will hold this IP).
I followed this guide to configure my IP failover on my servers: https://docs.ovh.com/us/en/public-cloud/configure_a_failover_ip/#ubuntu-2004_1 (my servers are running under ubuntu)

The problem is when I add this configuration to my server AND that the IP Failover is not hold by the server then all docker containers in my server doesn't have internet (but the host does..).
And the only server that has the Failover IP works perfectly (docker has internet)

My servers configuraion looks like this now (with the IP configured):
/etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  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}
network:
    version: 2
    ethernets:
        ens3:
            accept-ra: false
            addresses:
            - xxxx:xxxx:xxx:xxx::xxx/56 # maybe sensitive data
            - X.X.X.X/32 # MY FAILOVER IP
            dhcp4: true
            match:
                macaddress: xx:xx:xx:xx:xx:xx # blur my macaddr, idk if its sensitive data
            mtu: 1500
            nameservers:
                addresses:
                - 213.186.33.99 # idk what this is
                search: []
            routes:
            -   to: ::/0
                via: x:x:x:x::1 # maybe sensitive data
            set-name: ens3
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.