Skip to main content

Configure the default gateway for a cloud server

If a cloud server uses multiple network interfaces, you can assign a specific interface as the default gateway.

note

For example, a cloud server has two network interfaces: the first is the IP address of a private subnet, and the second is the IP address of a public subnet for internet access. If the first interface is used as the default gateway, the server will not have internet access. To change the interface to the second one (public), you need to set the public subnet port as the default gateway for the cloud server.

  1. In the Control panel, on the top menu, click Products and select Cloud Servers.

  2. Open the server page → Ports tab.

  3. In the port menu, select Set as default gateway.

  4. In the server menu, select Soft reboot.