Changing the Podman network address

Ops Center Administrator Getting Started Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99ADM000-20

You can change the Podman network address.

Note: The Podman version must be 4.0 or later.
  1. Stop the services using the following command:
    # systemctl stop rainier 
  2. If the /etc/containers/containers.conf.d directory does not exist, create it.
  3. Create a subnet.conf file in the /etc/containers/containers.conf.d directory and include the following:
    [network]
    default_subnet = "subnet"
    For example, you can change the subnet to 10.90.0.0/15.
    [network]
    default_subnet = "10.90.0.0/15"
  4. Check the Podman network backend using the following command:
    # podman info | grep networkBackend
    If the output result of this step is networkBackend: cni, then delete the bridge device.
  5. Delete the bridge device using the following command:
    # ip link del cni-podman0
  6. Restart the OS.