From CDOT Wiki
Revision as of 17:33, 30 January 2011 by Cheping (talk | contribs) (OS Installation)
Jump to: navigation, search

Setup a Virtual Local Area Network environment for OPS535 Labs

OS Installation

  • Install 64-bit version of CentOS 5.5 with Virtualization Packages on the Host Computer (the physical unit)
  • Create Four Virtual Machines, each with 8GB of disk space, 1G Memory, 1CPU
  • Install CentOS5.5 (excluding Virutualization Packages) on VM1 to VM3 with at least the following packages:
    • NFS
    • NIS
    • DNS
    • DHCP
    • Postfix, sendmail
    • OpenLDAP
  • CentOS 5.5 configuration:
    • Enable iptables
    • Create a regular user account
    • Enable SELinux
  • Collect the following information:
    • IP address(es) assigned to the host OS and each VM for the virtual network
    • Name of the network device used by the host OS to connect to the virtual network
    • IP address, netmask, and gateway for each guest OS
    • Name of the device used by each guest OS to connect to the virtual network
  • Install Fedora 14 (without Virtualization packages) on VM4 with the following packages:
    • NFS
    • NIS
    • DNS
    • OpenLDAP
    • Wireshark
    • tcpdump

Virtual Network Configuration

  • Default Virtual Network
    • Network Address
    • Network Type: NAT
  • Create the 2nd Virtual Network, named "opsnet"
    • Network Address 192.168.[x].0/24 where [x] assigned by your professor
    • Network Type: Isolated
  • Locate the name of the physical network device connected to the lab network. The following configuration assume eth3 as the device name name.
    • assignment 172.16.[x].1 to the alias of eth3: ifconfig eth3:0 172.16.[x].1
  • Adding routes to each student's "opsnet" virtual network manually or by running the following bash script on the host OS:
route add -net netmask gw
route add -net netmask gw
route add -net netmask gw
route add -net netmask gw
route add -net netmask gw


while [ $x -le 36 ]
  route add -net 192.168.${x}.0 netmask gw 172.16.${x}.1
  x=$(expr $x + 1)
  • To test your static routes, pair up with a few fellow students and try to ping their VMs in their "opsnet".
  • Save your network settings for the real lab.

Private Network Address Allocation

CentOS Installation and update Issues

If you think that the yum update process takes too long to complete, inspect the file /etc/yum.repos.d/CentOS-Base.repo and add belmont to the baseurl under the [base] and [updates] sections:


Place the above line before the "mirrorlist=" line and try running yum update again.

My Questions

  • I can't ping other student's vm. What should do to fix that?