检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Item Description Example Value VPC CIDR block Required for customer gateway configuration Example: 10.0.0.0/16 N/A VPC ID N/A Example: 120b71c7-94ac-45b8-8ed6-30aafc8fbdba N/A CIDR block of subnet 1 (can be the same as the VPC CIDR block) N/A Example: 10.0.1.0/24 N/A ECS ID N/A N/
If the subnet is an IPv4 subnet, this parameter is not returned. gateway_ip_v6 String Specifies the IPv6 subnet gateway address.
The subnet mask cannot be greater than 28. gateway_ip String Specifies the gateway of the subnet. The value must be an IP address in the subnet.
Advanced Settings (Optional) > Gateway 192.168.0.1 The gateway address of the subnet. You are advised to retain the default address. The gateway address cannot be changed after the subnet is created.
Item Description Example Value VPC CIDR block Required for gateway configuration Example: 10.0.0.0/16 N/A VPC ID N/A Example: 120b71c7-94ac-45b8-8ed6-30aafc8fbdba N/A CIDR block of subnet 1 (can be the same as the VPC CIDR block) N/A Example: 10.0.1.0/24 N/A ECS ID N/A N/A N/A ECS
network-scripts directory: cd /etc/sysconfig/network-scripts Run the following command to create and then modify the ifcfg-eth0:1 file: vi ifcfg-eth0:1 Add the following network interface information to the file: BOOTPROTO=static DEVICE=eth0:1 HWADDR=fa:16:3e:4d:5b:98 IPADDR=192.168.1.137 GATEWAY
For example, if the IPv4 subnet CIDR block is 192.168.1.0/24, the following IP addresses cannot be included in a CIDR reservation: Start IP address: 192.168.1.0 End and broadcast address: 192.168.1.255 Assigned IP addresses Subnet gateway address: 192.168.1.1 DHCP address: 192.168.1.254
The value can contain no more than 255 characters and cannot contain angle brackets (< or >). cidr String Specifies the subnet CIDR block. gateway_ip String Specifies the subnet gateway address. ipv6_enable Boolean Specifies whether IPv6 is enabled. cidr_v6 String Specifies the IPv6
Table 1 Ubuntu ECS using IPv4 Type Primary Network Interface Extended Network Interface Source IPv4 address: 10.0.0.138 Subnet IPv4 CIDR block: 10.0.0.0/24 Subnet IPv4 gateway: 10.0.0.1 IPv4 address: 10.0.1.25 Subnet IPv4 CIDR block: 10.0.1.0/24 Subnet IPv4 gateway: 10.0.1.1 Destination
Table 1 CentOS ECS using IPv4 Type Primary Network Interface Extended Network Interface Source IP address: 10.0.0.115 Subnet: 10.0.0.0/24 Subnet gateway: 10.0.0.1 IP address: 10.0.1.183 Subnet: 10.0.1.0/24 Subnet gateway: 10.0.1.1 Destination IP address: 10.0.2.12 N/A Log in to the
For example, in subnet 10.0.0.0/24, 10.0.0.1 is the gateway address, 10.0.0.253 is the system interface address, 10.0.0.254 is used by DHCP, and 10.0.0.255 is the broadcast address. The subnet CIDR block cannot be too large, either.
In this example, it is the MAC address of the gateway instance. DMacAddr: MAC address of the target instance of VXLAN packets. In this example, it is the MAC address of the mirror target instance.
Change the VPC or contact technical support. 400 VPC.2811 InvalidVgwForRouteGateway The virtual gateway of the current Direct Connect connection has not been associated with any device and the route cannot be delivered.