...
- Older Charon-SSP marketplace images are based on CentOS 7, newer ones are based on Linux 8.x.
- The NetworkManager is disabled by default in instances based on Charon marketplace images that use Linux 7.x.
- If you disable the automatic interface setup by GCP on instances running Linux 7.x, you must make sure that the correct ifcfg-files for every interface exist in /etc/sysconfig/network-config. Failure to do so, can make your instance unreachable after the next network restart. On instances based on Charon marketplace images using Linux 8.x you can use the NetworkManager manually or via the Charon Manager to configure the IP setup for additional interfaces.
- If you use a RHEL/CentOS 8 image as the base image for your Charon host, the interface must be controlled by the NetworkManager. You can set up the appropriate configuration by editing the interface configuration files or , using nmcli commands, the nmtui utility or the Charon Manager.
To disable automatic interface configuration by the cloud tools, edit the file and set the parameter setup to false as shown in the example below:
Code Block | ||
---|---|---|
| ||
# vi /etc/default/instance_configs.cfg [NetworkInterfaces] dhclient_script = /sbin/google-dhclient-script dhcp_command = ip_forwarding = true setup = false |
After Linux 7.x: after restarting the network (systemctl restart network
), the configuration as defined in the ifcfg-files should be set for the interfaces. On RHEL/CentOS 8 systems restart the NetworkManager instead (systemctl restart NetworkManager
)
Linux 8.x: on these systems with the NetworkManager enabled, instead reactivate the connection on which the changes were performed - if the interface is not the one across which you are connected (nmcli example: # nmcli con down
<connection_name>
; # nmcli con up
<connection_name>
). To reload a changed configuration file into the NetworkManager, use the command # nmcli connection reload
. The Charon Manager will perform these steps automatically.
Please note: if your instance normally would detect the network MTU automatically, this will not work if DHCP is disabled, and the correct MTU must be set manually.
...