Comment 3 for bug 1989686

Revision history for this message
Terje Røsten (terjeros) wrote : Re: cloud-init sets wrong netmask causing borken network config on Oracle Cloud

(after running dhclient -v ens3 to get networking up):

$ curl --header "Authorization:Bearer Oracle" http://169.254.169.254/opc/v2/vnics
[
  {
    "macAddr": "02:00:17:0F:17:EB",
    "privateIp": "100.103.26.6",
    "subnetCidrBlock": "100.103.24.0/21",
    "virtualRouterIp": "100.103.24.1",
    "vlanTag": 3945,
    "vnicId": "ocid1.vnic.oc1.iad.abuwcljtmtfxijv75gnssqeliui6sow3gzskerirhua4i4jg6nllnexbkynq"
  }
]

$ cat /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:
            addresses:
            - 100.103.26.6/24
            match:
                macaddress: 02:00:17:0f:17:eb
            mtu: 9000
            set-name: ens3