Configure user-side routing and test connectivity
Configure local route
After completing the Express Tunnel configuration in the Baidu AI Cloud console, users must also configure local private network routing on the IDC's side (private network segment: 172.16.0.0/24) to fully enable connectivity between the local IDC and the on-cloud VPC.
Configuration commands may differ depending on the device. Please adjust according to the specific device during implementation. Example of local IDC routing configuration in BGP routing mode:
1bgp 65530
2peer 10.0.0.1as-number 45085
3peer 10.0.0.1 password simple 123456
4network 172.16.0.0 255.255.255.0
| Parameters | Description |
| 65530 | BGP neighbor ASN for the local IDC side. |
| 45085 | ASN for the Baidu AI Cloud side. |
| 10.0.0.1 | The interconnection IP address for the cloud network (on-cloud) provided when adding a new dedicated channel. |
| 123456 | BGP key for the local IDC side. |
| 172.16.0.0 | Private network segment of the local IDC side. |
| 255.255.255.0 | Subnet mask for the local IDC side. |
Test connectivity
Users can test connectivity to confirm whether the connection between the local IDC and the virtual private cloud is established.
Operation steps
- Log in to any server on the local IDC side and open the Command prompt.
- Run the command “ping 10.0.0.1” to verify the connectivity between the local IDC and the dedicated channel network.
Expected result: The ping is successful, indicating normal network connectivity from the local IDC to the dedicated gateway.
- Run the command “ping 192.168.1.10” to verify the connectivity between the local IDC and the virtual private cloud.
Expected result: The ping is successful, indicating normal network connectivity from the local IDC to the virtual private cloud.
- Description 192.168.1.10 is an IP address within the CIDR (192.168.1.0/24) of virtual private cloud VPC-123.
