To enable service VMs created on the XenServer BMS to communicate with the ECSs in the same VPC or provide services to the Internet, configure vNICs for the service VMs.
ip link set eth0 up
ip address add 10.10.10.2/24 dev eth0
route add default gw 10.10.10.1
The NIC name (eth0), IP address (10.10.10.2/24), and gateway address (10.10.10.1) in the preceding command are examples. Configure them based on the actual planning.
After the preceding operations are complete, service VMs can communicate with ECSs in the same VPC. You can run the ping command to verify the communication.