Changes

Jump to: navigation, search

Virtual-Lan

273 bytes removed, 19:48, 30 September 2018
m
Updating to non-deprecated commands
== OS Installation ==
* Install 64-bit version of CentOS 6.5 7 with Virtualization Packages on the Host Computer (the physical unit)* Create Four Virtual Machines, each with 8GB 10GB of disk space, 1G Memory, 1CPU* Install CentOS6.5 CentOS 7 (excluding Virutualization Packages) on VM1 to VM3 with at least the following packages:
** NFS
** NIS
** DNS
** DHCP
** Postfix, sendmail
** OpenLDAP
** Wireshark** tcpdump* CentOS 6.5 7 configuration:
** Enable iptables
** Create a regular user account using your Seneca email ID
** Enable SELinux
** Name of the device used by each guest OS to connect to the virtual network
* Install Fedora 20 21 (without Virtualization packages) on VM4 with the following packages:
** NFS
** NIS
* Adding routes to each student's "opsnet" virtual network manually or by running the following bash script on the host OS:
#!/bin/bash
ip route add -net 192.168.1.0 netmask 255.255.255.0 gw /24 via 172.16.1.1 ip route add -net 192.168.2.0 netmask 255.255.255.0 gw /24 via 172.16.2.1 ip route add -net 192.168.3.0 netmask 255.255.255.0 gw /24 via 172.16.3.1 ip route add -net 192.168.4.0 netmask 255.255.255.0 gw /24 via 172.16.4.1
...
ip route add -net 192.168.36.0 netmask 255.255.255.0 gw /24 via 172.16.36.1
or:
if [ ${count} != ${x} ]
then
ip route add -net 192.168.${count}.0 netmask 255.255.255.0 gw /24 via 172.16.${count}.1
fi
count=$(expr ${count} + 1)
#!/bin/bash
x=10 # my network id
ip route add -net 192.168.1.0 netmask 255.255.255.0 gw /24 via 192.168.${x}.1 ip route add -net 192.168.2.0 netmask 255.255.255.0 gw /24 via 192.168.${x}.1 ip route add -net 192.168.3.0 netmask 255.255.255.0 gw /24 via 192.168.${x}.1 ip route add -net 192.168.4.0 netmask 255.255.255.0 gw /24 via 192.168.${x}.1
...
ip route add -net 192.168.36.0 netmask 255.255.255.0 gw /24 via 192.168.${x}.1 ip route add -net 172.16.0.0 netmask 255.255.0.0 gw /16 via 192.168.${x}.1
or:
if [ ${count} != ${x} ]
then
ip route add -net 192.168.${count}1.0 netmask 255.255.255.0 gw /24 via 192.168.${x}.1
fi
count=$(expr ${count} + 1)
done
ip route add -net 172.16.0.0 netmask 255.255.0.0 gw /16 via 192.168.${x}.1 
* To test your static routes, pair up with a few fellow students and try to ping their VMs in their "opsnet".
==Private Network Address Allocation==
* [[OPS535 Network Address| Network Address Allocation for 2015 Winter Semester]]
==CentOS Installation and update Issues==
932
edits

Navigation menu