= Lab Setup = In this Hands-on we will install all dependencies and basic network design. We will use Oracle Virtual Box and Dynagen-Dynamips software to virtualize the lab network. Users need to connect the host PC to home network with DHCP enabled. We recommend using the wired network as much as possible. For each User following software and files are required; * Needs to install '''Dynapimps-Dynagen''' , '''VPC PC simulator''' and '''Virtual Box''' * '''pcap''' and '''cygwin1.dll''' We will create a entire virtual network on host machine. > Virtualized appliances will be connected via UDP tunnels and these must be neglected for your actual physical installations. == Download Dependencies == * Download Oracle Virtual Box and Extension pack from [https://www.virtualbox.org/wiki/Downloads] * Download putty from [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html] * Download winrar from [https://www.win-rar.com/download.html?&L=0] * Download Dynagen-dynamips and other required files * [https://docs.learn.ac.lk/index.php/s/iMs7c6rDfMGJJCL Lab-Mirror] * Download all server VM's * Pfsense [https://docs.learn.ac.lk/index.php/s/CDWJBUgFFXqxUKJ Lab-Mirror] * WinXp_Inside [https://docs.learn.ac.lk/index.php/s/eH3eG17yzXPFJQT Lab-Mirror] * WinXp_DMZ [https://docs.learn.ac.lk/index.php/s/g2N6sairPA24eJe Lab-Mirror] * Webserver [https://docs.learn.ac.lk/index.php/s/8dXFzAqv1Mrnn3R Lab-Mirror] * LibreNMS [https://docs.learn.ac.lk/index.php/s/OW7mT5BOncjIwQZ Lab-Mirror] [[span(style=color: #A00000, '''Following settings will need to be as it is with the changes only to the specified dynamic content.''' )]] === Install Virtual Box === Install Virtual Box software with default settings, make sure you have enabled virtualization support from your host machine BIOS. > If you have pre-installed Virtual Box in your host machines make sure they are updated to 6.x latest version Import downloaded OVA files into Oracle virtual box from File > Import Appliance While importing make sure to select '''Generate new MAC addresses for all Network Adapters''' from '''MAC Address Policy'''. As soon as you import vm's, change your VM network connections as follows; * '''pfSense VM''' '''Adapter 1:'''[[br]] Attached to: Bridged Adapter[[br]] Name: ![[Your Physical Adapter Name]][[br]] Promiscuous Mode: Allow All[[br]] Cable Connected '''Adapter 2:'''[[br]] Attached to: Generic Driver[[br]] Name: UDPTunnel[[br]] Generic Properties:[[br]] dest=127.0.0.1[[br]] dport=50000[[br]] sport=40000[[br]] Cable Connected '''Adapter 3:'''[[br]] Attached to: Generic Driver[[br]] Name: UDPTunnel[[br]] Generic Properties:[[br]] dest=127.0.0.1[[br]] dport=50001[[br]] sport=40001[[br]] Cable Connected >Note down all mac addresses as we need them to decide which port connects to which network later when installing pfsense) * '''WINXP_INSIDE''' '''Adapter 1:'''[[br]] Attached to: Generic Driver[[br]] Name: UDPTunnel[[br]] Generic Properties:[[br]] dest=127.0.0.1[[br]] dport=50003[[br]] sport=40003[[br]] Cable Connected * '''WINXP_DMZ''' '''Adapter 1:'''[[br]] Attached to: Generic Driver[[br]] Name: UDPTunnel[[br]] Generic Properties:[[br]] dest=127.0.0.1[[br]] dport=50002[[br]] sport=40002[[br]] Cable Connected * '''Web Server VM''' '''Adapter 1:'''[[br]] Attached to: Generic Driver[[br]] Name: UDPTunnel[[br]] Generic Properties:[[br]] dest=127.0.0.1[[br]] dport=50005[[br]] sport=40005[[br]] Cable Connected * '''Monitoring Server VM''' '''Adapter 1:'''[[br]] Attached to: Generic Driver[[br]] Name: UDPTunnel[[br]] Generic Properties:[[br]] dest=127.0.0.1[[br]] dport=50004[[br]] sport=40004[[br]] Cable Connected === Install Dynagen other required tools === Extract the downloaded '''WKFiles.zip''' file to your '''C:\''' drive. After extract Following files should be there. [[Image(wiki:Cnbp2022/Agenda/LabSetup:WKFiles.PNG,50%,border=1, center)]] Install '''Dynagen''' and '''!WinPcap''' from extracted folder.It will install Dynamips as well and automatically creates the desktop shortcuts. [[Image(wiki:Cnbp2022/Agenda/LabSetup:Shortcuts.PNG,20%,border=1, center)]] Files that are needed to run '''VPC Simulator''' are inside the '''VPC Files''' folder. ---- '''Dynagen''' is the front end of dynamips and we have to create campus network using a text editor. Network design for this workshop has already created for your convenience and named as '''Campus_Nw.net'''. This file is inside the '''!LabFiles''' folder. You can edit the file by opening it using a text editor like notepad. The '''IOS Images''' that are required to run this network also inside the '''!LabFiles''' folder. Steps for running this network will be discussed in next '''Network Setup''' session. ---- '''Configurations of Network Devices''' will be discussed in '''Network Setup''' session Network design includes following Devices; * 3 x !EtherSwith Router * 7 x Ethernet Switch * 9 x VPCS Host names of the devices are as follows, * ESW1 :- FAC1 * ESW2:- FAC2 * ESW3:- FAC1-BLD1-FL2 * Ethernet switch-1:- FAC1-BLD1-FL1A * Ethernet switch-2:- FAC1-BLD1-FL1B * Ethernet switch-3:- FAC1-BLD2-FL0 * Ethernet switch-4:- FAC2-BLD1-FL1 * Ethernet switch-5:- FAC2-BLD2-FL1 * Ethernet switch-6:- FAC2-BLD2-FL3 * Ethernet switch-7:- DMZ Use Following '''tutorial''' on '''Dynamips''' to understand how to create a simple network using '''Dynagen'''. [https://ws.learn.ac.lk/attachment/wiki/Cnbp2022/Agenda/LabSetup/Dynamips_Tutorial.pdf Dynamips Tutorial.pdf] http://manual.freeshell.org/dynagen/tutorial.htm Use Following '''tutorial''' on '''VPC Simulator''' to understand how to create a simple network using '''VPC Simulator'''. [https://ws.learn.ac.lk/attachment/wiki/Cnbp2022/Agenda/LabSetup/VPC_Simulator.pdf VPC Tutorial.pdf] https://wiki.freecode.com.cn/doku.php?id=wiki:vpcs ---- The following diagram shows the Network devices and connections that are already created in the '''Campus_Nw.net''' file. [[Image(wiki:Cnbp2022/Agenda/LabSetup:Campus_Network.png,85%,border=1, center)]] > Please note that the link between pfSense and the LEARN Router nodes are for illustration purposes only. You are not allowed to connect them via connections as both of them are cloud devices. As we are directly using a bridged interface for pfSense WAN, you may use a "Drawn line" to complete the diagram.