Virtual Switch VPC Configuration Guide (Elastic Cloud Internal Network Communication)

Published: 2020-02-04

```html

For VPC service instructions, please refer to: https://www.west.cn/news/list.asp?newsid=866 . For specific configuration, refer to the instructions below:

1. In the Management Center, click [Virtual Switch] under [Server Management].

image.png

2. Add a switch, as shown below:

image.png

3. Activate the virtual switch (subnet online).

image.png

After entering the management page, all servers in the cluster are displayed by default. Click the "Connect" button behind each server to add it to the virtual switch.

Then log in to the server to configure the private IP address. After configuration, private network communication is possible. Servers that have not joined the connection cannot communicate over the private network.image.png

To delete this virtual switch, click the "Disconnect" button to disconnect all servers, and then delete it from the virtual switch list.

Special Note

  • After connecting a cloud host to the virtual switch, for cloud hosts activated before December 23, 2019, you need to manually log in to the server to configure the private IP address and set the MTU, and the MTU must be set to 1450 (see the tutorial). For newly created cloud hosts, the system will automatically configure the IP and MTU, and no manual configuration is required.


Additional notes:

If the private network service has continuous data interaction, this setting is not required.

If the server has no private network communication for a long time (such as a test environment or standby machine), it is recommended to add this scheduled task to ping the private network gateway or a neighboring server once every hour, which can effectively prevent private network connections from "freezing" or being unexpectedly disconnected due to "ARP aging" or "idle switch ports".

Change the IP to the private IP address of another server under the virtual switch.


Linux (common for CentOS/Ubuntu/Debian):

(crontab -l 2>/dev/null; echo "0 * * * * ping -c 4 -W 1 192.168.X.X > /dev/null 2>&1") | crontab -

Windows (CMD administrator):

schtasks /create /tn "HourlyPing" /tr "ping -n 4 -w 1000 192.168.X.X > nul" /sc hourly /mo 1 /f


```