# Step 3: Create a NAT Gateway

#### Scenarios

This section guides you on how to create a NAT gateway to enable your servers to access the Internet or to provide services available from the Internet.

#### Prerequisites

- When creating a NAT gateway, you must specify its VPC, subnet, and type.
- Ensure that the VPC does not have the default route.

#### Procedure

1. Log in to the management console.
2. Click in the upper left corner and select the desired region and project.
3. Click Service List in the upper left corner. Under Networking, select NAT Gateway.
4. On the displayed page, click Create NAT Gateway.
5. Configure the parameters as prompted. For details, see Table 1.

   Table 1 Parameter descriptions
   Parameter | Description
   --- | ---
   Region | The region where the NAT gateway is located.
   Name | The name of the NAT gateway. The name can contain up to 64 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.
   VPC | The VPC that the NAT gateway belongs to. Select a VPC which is not used by any other NAT gateways and has no default route. You can change the VPC only when you are creating the NAT gateway.
   Subnet | The subnet of the VPC that the NAT gateway belongs to. The subnet must have at least one available IP address. You can change the subnet only when you are creating the NAT gateway.
   Type | The type of the NAT gateway. The value can be Small, Medium, Large, and Extra-large. You can click Learn more on the page to view details about each type.
   Description | Supplementary information about the NAT gateway. The description can contain up to 255 characters.
   Tag | The NAT gateway tag, which consists of a key and value pair. You can add a maximum of 20 tags to each NAT gateway. The tag key and value must meet the requirements listed in Table 2.

   Table 2 Tag requirements
   Parameter | Requirement
   --- | ---

   Key

   - Cannot be left blank.
   - Must be unique for each NAT gateway.
   - Contains a maximum of 36 characters.
   - Can contain only the following character types:
     - Letter
     - Digits
     - Special characters, including hyphens (-) and underscores (_)

   Value

   - Can contain a maximum of 43 characters.
   - Can contain only the following character types:
     - Letter
     - Digits
     - Special characters, including hyphens (-) and underscores (_)

6. Click Create Now. Confirm the NAT gateway information on the displayed page.
7. If you do not need to modify the information, click Submit.

   It takes 1 to 5 minutes to create a NAT gateway.

8. In the NAT gateway list, view the NAT gateway status. For details about the NAT gateway status, see Table 3.

   Table 3 NAT gateway status
   Status | Description
   --- | ---
   Running | The NAT gateway is running.
   Creating | The NAT gateway is being created.
   Updating | The NAT gateway is being updated.
   Deleting | The NAT gateway is being deleted.
   Frozen | The NAT gateway has been frozen.
   Abnormal | The NAT gateway is abnormal.

Parent topic: Using SNAT and DNAT Rules to Allow On-premises Servers to Communicate Over the Internet