Changes

Jump to: navigation, search

VLS2VLS-Routing

167 bytes added, 12:47, 18 March 2021
Manually Configure routes on each VM in each virtual network
* ip route show
== Manually Configure routes on each VM in each virtual network VLS ==You only need to create the custom routes on the VM in your VLS, but make sure that other students have proper routes on their VMs as well.=== VLS 1 VM2 to VM4 ===On Virtual Network VLS 1's VM (192.168.1.2 .. 192.168.1.2544)* route add -net nmcli con modify ens224 +ipv4.routes "192.168.2.0 netmask 255.255.255.0 gw /16 192.168.1.1100"* nmcli con down ens224* nmcli con up ens224* ip route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.1show
=== VLS 2 VM2 to VM4 ===On Virtual Network VLS 2's VM (192.168.2.2 .. 192.168.12.2544)* route add -net nmcli con modify ens224 +ipv4.routes "192.168.1.0 netmask 255.255.255.0 gw /16 192.168.2.1100"* nmcli con down ens224* nmcli con up ens224* ip route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.2.1show
=== VLS 3 VM2 to VM4 ===On Virtual Network VLS 3's VM (192.168.3.2 .. 192.168.3.2544)* route add -net nmcli con modify ens224 +ipv4.routes "192.168.1.0 netmask 255.255.255.0 gw /16 192.168.3.1100"* nmcli con down ens224* nmcli con up ens224* ip route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.3.1show
= Automate the process using BASH script =
1,760
edits

Navigation menu