--- title: "createRouteTable" slug: "cli-vpc-routetable-createroutetable" tags: ["VPC"] updated: 2026-10-08T05:06:23Z published: 2026-10-08T05:06:23Z canonical: "cli.ncloud-docs.com/cli-vpc-routetable-createroutetable" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # createRouteTable Available in VPC Create a route table according to the user-defined conditions. ## Syntax The `createRouteTable` syntax is as follows: ``` ./ncloud vpc createRouteTable \ --vpcNo \ --supportedSubnetTypeCode \ [--routeTableName ] \ [--routeTableDescription ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `createRouteTable`. ### Required options The following options are required for `createRouteTable`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--vpcNo` | String | Required | VPC number - See [getVpcList](/docs/en/cli-vpc-vpcmanagement-getvpclist). | | `--supportedSubnetTypeCode` | String | Required | Subnet type - `PUBLIC` \| `PRIVATE` - `PUBLIC`: Public subnet - `PRIVATE`: Private subnet | ### Optional options These are the optional options for `createRouteTable`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--routeTableName` | String | Optional | Route table name - Enter 3-30 characters, including lowercase English letters, numbers, and special character `-`. - The string must start with an English letter and end with an English letter or number. - If not entered, NAVER Cloud Platform will assign one automatically. | | `--routeTableDescription` | String | Optional | Description of the route table (byte) - `0`-`1,000` | ### Common options For information about the options common to all `vpc` subcommands, see [VPC options](/docs/en/cli-vpc#%EC%98%B5%EC%85%98). ## Examples If the request to create a route table is successful, the route table's configuration information and creation status are returned. ### Command The command example is as follows: ``` ./ncloud vpc createRouteTable \ --vpcNo 12345678 \ --supportedSubnetTypeCode PUBLIC \ --routeTableName test-route-table \ --routeTableDescription "Test route table" \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "createRouteTableResponse": { "totalRows": 1, "routeTableList": [ { "routeTableNo": "45678901", "routeTableName": "test-route-table", "regionCode": "KR", "vpcNo": "12345678", "supportedSubnetType": { "code": "PUBLIC", "codeName": "Public" }, "isDefault": false, "routeTableStatus": { "code": "RUN", "codeName": "In operation" }, "routeTableDescription": "Test route table" } ], "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```