Introduction
You can associate a router with interfaces and configure static routes in the network topology to enable cross-subnet communication and routing. The configuration can be completed on the topology canvas with simple steps.
Constraints and Restrictions
• The interfaces of a router cannot be directly connected to VMs. They must be connected to VMs through associated virtual switches or edges.
• The next-hop IP address of a static route must be on the same network segment as the router interface IP address. Otherwise, the route configuration cannot take effect.
• The HA settings of a router are configured on the router management page. Only basic route configuration is supported in Networking > Topology.
Prerequisites
• A router has been dragged to the topology canvas and is in normal status.
• A virtual switch or edge has been created to associate with the router interface.
• A static route (including the destination network segment and next-hop IP address) has been configured.
Precautions
• To associate a router interface with a virtual switch, select the corresponding port group and ensure the VLAN ID matches.
• After a static route is configured, verify its reachability through a connectivity test to avoid any configuration error.
Steps
Step 1.Enter the topology edit mode, click the target router, and click Settings in the lower-right corner. The Settings pop-up window appears.
Step 2.On the Interface tab, click Add to add an interface and configure the fields as instructed in the table below:
| Field |
Description |
Operation Suggestion |
| Name |
Specify a custom interface name (Example: eth0 or eth1). |
Name the interface based on its use (Example: eth0 - Business Subnet) |
| Connected To |
Select the virtual switch or edge to be associated with the interface. |
Associate interface with a virtual switch in the same network segment (Example: VLAN10 - Virtual Switch). |
| IP Address |
Enter the IP address of the router interface (subnet gateway). |
Enter the subnet gateway IP address (Example: 192.168.1.1/24), which must match the subnet segment. |
Step 3.Step 3. Click OK to add the interface. Repeat steps 1-3 to add other interfaces.
Step 4.Step 4. Configure a static route: Click the router and click Settings in the lower-right corner. In the Settings pop-up window that appears, click Static Route in the left pane and click Add. Then, configure the fields as instructed in the table below:
| Field |
Description |
Operation Suggestion |
| Dst IP |
Enter the destination network segment for the static route (Example: 192.168.2.0/24). |
Enter the destination subnet segment to be accessed. |
| Netmask/Prefix Length |
Enter the netmask (IPv4) or prefix length (IPv6) of the destination network segment. |
Example: 255.255.255.0 (IPv4) or 64 (IPv6) |
| Next-Hop IP |
Enter the next-hop IP address of the route (must be on the same network segment as one of the router interfaces). |
Enter the IP address of the adjacent router interface or physical gateway (Example: 192.168.1.254). |
| Interface |
Select the router interface used by the route. |
Select an interface (such as eth0) that is on the same network segment as the next-hop IP address. |
Step 5.Step 5. Click OK to add the static route. After the configuration is complete, close the Settings pop-up window. Click Apply Changes and then exit the topology edit mode.