VMmanager: Administrator guide
en En
es Es
Your feedback is an opportunity for improvement!
Take part in the survey and contribute to the development of the ISPsystem ecosystem.
Take the survey

How to add a physical network with a gateway from another subnet?

In VMmanager you can add a physical network and specify the default gateway address from a different subnet if this is required for your equipment operation.

To add such a network:

  1. Get an authorization token:

    curl -k -X POST -H "accept: application/json" -H "Content-Type: application/json" 'https://domain.com/auth/v4/public/token' -d '{"email": "admin_email", "password": "admin_pass"}'
    Comments to the command

    In response, you will get the message in the form:

    Example of response in JSON
    {
      "confirmed": true,
      "expires_at": null,
      "id": "6",
      "token": "4-e9726dd9-61d9-2940-add3-914851d2cb8a"
    }

    Save the received token value.

  2. Enable the option to use the gateway from another subnet:

    curl -X POST -H "x-xsrf-token: <token>" -H "Cookie: ses6=<token>" -d '{"allow_non_subnet_gateway": true}' "https://domain.com/ip/v3/settings/gateway"
    Comments to the command
  3. Add a physical network:

    curl -X POST -H "x-xsrf-token: <token>" -H "Cookie: ses6=<token>" -d '{"name":"<network>","gateway":"<gateway_IP>"}' "https://domain.com/ip/v3/userspace/1/ipnet"
    Comments to the command

The article was last updated on 10.27.2022. The article was prepared by technical writers of ISPsystem.