检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
The protocol number of TCP, UDP, and ANY are 6, 17, and 0, respectively. private_ip_address String Specifies the port IP address that the NAT gateway uses.
Querying the Details of a Transit Subnet Function This API is used to query the details of a specified transit subnet. Calling Method For details, see Calling APIs. URI GET /v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id} Table 1 Path Parameters Parameter Mandatory
Table 4 PrivateSnat Parameter Type Description id String Specifies the SNAT rule ID. project_id String Specifies the project ID. gateway_id String Specifies the private NAT gateway ID. cidr String Specifies the CIDR block that matches the SNAT rule.
Tag Management Scenarios A NAT gateway tag identifies the NAT gateway. Tags can be added to NAT gateways to ease NAT gateway identification and administration. You can add a tag to a NAT gateway when creating the NAT gateway.
Adding a Tag to a Transit Subnet Function This API is used to add a tag to a specified transit subnet. A transit subnet can have up to 20 tags. This API is idempotent. If a tag to be added has the same key as an existing tag, the tag will be added and overwrite the existing one. Calling
Querying Tags of a Transit Subnet Function This API is used to query tags of a specified transit subnet. TMS uses this API to query all tags of a specified subnet. Calling Method For details, see Calling APIs. URI GET /v3/{project_id}/transit-subnets/{resource_id}/tags Table 1 Path
Deleting a Transit Subnet Tag Function This is an idempotent API to delete a tag from a transit subnet. When a tag is deleted, the tag character set is not verified. Before calling this API, encode the API URI. The server must decode the API URI. If the key of the tag to be deleted
Querying Transit Subnets by Tag Function This API is used to query transit subnets by tag. TMS uses this API to filter and list transit subnets by tag. Calling Method For details, see Calling APIs. URI POST /v3/{project_id}/transit-subnets/resource_instances/action Table 1 Path Parameters
What Should I Do If My ECS Fails to Access a Server on the Public Network Through a Public NAT Gateway? TCP connection may fail when an ECS accesses a server on the public network through an SNAT rule.
Enhanced (NAT Gateway+EIP) Billing Mode Pay-per-use - Network Select a VPC and a subnet. - NAT Gateway Name To allow cloud servers to access the Internet and save IP address resources, a high-performance NAT gateway is required.
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/region" ) func main() { // The AK and SK used for authentication are
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/region" ) func main() { // The AK and SK used for authentication are
Parent topic: Using Multiple Public NAT Gateways Together in Performance-Demanding Scenarios
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/region" ) func main() { // The AK and SK used for authentication are
Step 1: Create a Public NAT Gateway Go to the NAT Gateway console. Click Buy Public NAT Gateway and set the parameters by referring to Table 1. For details, see Buying a Public NAT Gateway.
Log in to the ECS as user root and check whether the private IP address of the ECS is the one you planned. ifconfig Configuring Private NAT Gateways To assign a transit IP address On the management console, under Networking, select NAT Gateway.
Figure 1 Required information Configuring a NAT Gateway Create a NAT gateway. Log in to the console and choose Service List > Networking >NAT Gateway. The Network Console page is displayed. Click Buy Public NAT Gateway. On the displayed page, configure related parameters.
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/region" ) func main() { // The AK and SK used for authentication are
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/region" ) func main() { // The AK and SK used for authentication are
Allowing VPCs to Share an EIP to Access the Internet Using Enterprise Router and NAT Gateway Overview Network and Resource Planning Creating Resources Configuring Networks Verifying Network Connectivity