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"}'
    CODE

    domain.com — domain name or IP address of the server with the platform

    admin_email — platform administrator's email

    admin_pass — platform administrator's password

    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"
    }
    CODE

    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"
    CODE

    domain.com — domain name of the server with VMmanager

    <token> — authorization token
  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"
    CODE

    domain.com — domain name of the server with VMmanager

    <token> — authorization token

    <network> — network. E.g., 192.168.1.0/24

    <gateway_IP> — gateway IP address. E.g., 10.24.1.1