Open main menu

CDOT Wiki β

Changes

VLS2VLS-Routing

853 bytes added, 11:41, 18 March 2021
Manually configure routes on the gateways to reach VMs in other virtual
== Manually configure custom routes on the gateways to reach VMs in other virtual VLSs ==You only need to create the custom routes on your own VLS, but make sure that other student's VLS has the custom routes to your VLS.=== On VLS 1 ===
On VLS 1's gateway (192.168.1.1 or 172.20.1.1):
Using nmcli:
* nmcli con up ens192
Check to make sure that your kernel routing table has the proper entries.with the following command:
* ip route show
=== On VLS 2 ===
On VLS 2's gateway (192.168.2.1 or 172.20.2.1):
Using nmcli:
* nmcli con modify ens192 +ipv4.routes "192.168.1.0/24 172.20.1.1 100"
* nmcli con modify ens192 +ipv4.routes "192.168.3.0/24 172.20.3.1 100"
* nmcli con down ens192
* nmcli con up ens192
Use netstat -rn or route -n Check to display the make sure that your kernel routing table on each has the proper entries with the following command:* ip route show === On VLS 3 ===On VLS 3's gateway (192.168.3.1 or 172.20.3.1):Using nmcli:* nmcli con modify ens192 +ipv4.routes "192.168.1.0/24 172.20.1.1 100"* nmcli con modify ens192 +ipv4.routes "192.168.2.0/24 172.20.2.1 100"* nmcli con down ens192* nmcli con up ens192 Check to verify make sure that your kernel routing table has the proper entries with the routes.following command:* ip route show
== Manually Configure routes on each VM in each virtual network ==
1,760
edits