Hi.
On a Centos 7 based cloud-init image I am setting IP address and Gateway of the interface using GUI and it generates network interface configuration file like this:
I would like to add some more options like
but cloud-init keeps overwriting the file after reboot. I know that there is no way to specify this setting using cloud-init's interface (both GUI and CLI). Is there some alternative way of specifying this setting that won't be overwritten by cloud-init?
On a Centos 7 based cloud-init image I am setting IP address and Gateway of the interface using GUI and it generates network interface configuration file like this:
Code:
# /etc/sysconfig/network-scripts/ifcfg-eth0
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEVICE=eth0
HWADDR=FE:FE:FE:FE:FE:FE
IPADDR=10.82.0.12
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
I would like to add some more options like
Code:
MTU=1400