# 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
(after running dhclient -v ens3 to get networking up):
$ curl --header "Authorization: Bearer Oracle" http:// 169.254. 169.254/ opc/v2/ vnics 17:0F:17: EB", Block": "100.103.24.0/21", terIp": "100.103.24.1", vnic.oc1. iad.abuwcljtmtf xijv75gnssqeliu i6sow3gzskerirh ua4i4jg6nllnexb kynq"
[
{
"macAddr": "02:00:
"privateIp": "100.103.26.6",
"subnetCidr
"virtualRou
"vlanTag": 3945,
"vnicId": "ocid1.
}
]
$ cat /etc/netplan/ 50-cloud- init.yaml
# This file is generated from information provided by the datasource. Changes cloud.cfg. d/99-disable- network- config. cfg with the following:
addresses:
macaddress: 02:00:17:0f:17:eb
set- name: ens3
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
network:
version: 2
ethernets:
ens3:
- 100.103.26.6/24
match:
mtu: 9000