检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
How Do I Resolve Packet Loss or Connection Failure Issues When Using a NAT Gateway? If packet loss or connection failures occur on a server that uses the NAT gateway to access the Internet, you can check the SNAT connections on the Cloud Eye console.
What Is the Bandwidth of a Public NAT Gateway That Is Used by Servers to Access the Internet? How Do I Configure the Bandwidth? Public NAT Gateway SNAT translates private IP addresses of servers to EIPs.
"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
You can view the transit VPC, transit subnet, and private NAT gateway associated with the transit IP address. Parent Topic: Managing Transit IP Addresses
the port ID of the resource that the NAT gateway is bound to.
"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
Table 5 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.
URI DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/dnat_rules/{dnat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies the project ID. nat_gateway_id Yes String Specifies the public NAT gateway ID. dnat_rule_id Yes String Specifies
URI DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/snat_rules/{snat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies the project ID. nat_gateway_id Yes String Specifies the public NAT gateway ID. snat_rule_id Yes String Specifies
The VPC, NAT gateway, Direct Connect connection, and ECS must be in the same region. Tasks Create a service VPC and a transit VPC. Configure a Direct Connect connection. Buy a private NAT gateway. Procedure Create a service VPC and a transit VPC.
Step 3: Check the Default Route Scenarios After the public NAT gateway is purchased, go to the route table list, locate the default route table of the VPC where you deploy the public NAT gateway, and check whether there is a default route with the next hop set to the public NAT gateway
Procedure Go to the private NAT gateway list page. In the Transit IP Addresses tab, locate the transit IP address you want to release and click Release in the Operation column. Click OK.
The time is in yyyy-mm-dd hh:mm:ss.SSSSSS format. nat_gateway_id No Array of strings Specifies the public NAT gateway ID. network_id No String Specifies the network ID used by the SNAT rule. Configure either network_id or cidr. source_type No Integer 0: VPC.
Supported range: 0 to 65535 nat_gateway_id String Specifies the public NAT gateway ID. global_eip_id String Specifies the global EIP ID.
Step 6: Add the Default Route Scenarios If the VPC already has one or more NAT gateways configured, a route table must be created for the second public NAT gateway.
For details, see Using a Public NAT Gateway and Direct Connect to Accelerate Internet Access.
by Tag Querying Tags of All Transit IP Addresses in a Specified Project Querying Tags of a Transit IP Address Adding a Tag to a Transit IP Address Batch Adding or Deleting Tags to or from a Transit IP Address Deleting a Tag from a Transit IP Address Parent Topic: APIs for Private NAT
"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
Enabling NAT Mapping for Direct Connect Address Mapping Port Mapping Parent topic: Basic Configuration
"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