To manage replication traffic by using an additional VM NIC, you must configure a static route for the VM NIC.
Prerequisites
- Verify that you have added a new VM NIC.
- Make a note of the number of the new VM NIC.
Procedure
- Establish an SSH connection to the vSphere Replication аppliance.
- To locate the network configuration file, navigate to /etc/systemd/network.
- Open the 10-eth<NIC_Number>.network file in a text editor and update it.
- Navigate to the [Route] section.
If you are unable to locate this section in the configuration file, you can manually add it.
- Set the Gateway parameter to the IP address of the next gateway through which the target network can be reached.
- Set the Destination parameter to Classless Inter-Domain Routing (CIDR) notation for the IP range of the target network.
- Navigate to the [Route] section.
- Restart the systemd-networkd service by running the systemctl restart systemd-networkd command.
- Validate the static route by running the ip r command for IPv4 or the ip -6 r command for IPv6.
- (Optional) If you are not able to validate the route, the network is inaccessible. To force the kernel routing table to accept the network, set the GatewayOnLink parameter to
yes
in the [Route] section. - (Optional) Restart the systemd-networkd service by running the systemctl restart systemd-networkd command.
- (Optional) If you are not able to validate the route, the network is inaccessible. To force the kernel routing table to accept the network, set the GatewayOnLink parameter to
Example
[Route] Gateway=10.71.239.253 Destination=10.71.232.0/21