Changes between Initial Version and Version 1 of Cnbp2022/Agenda/LabSetup


Ignore:
Timestamp:
Feb 19, 2022, 8:20:05 AM (3 years ago)
Author:
geethike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Cnbp2022/Agenda/LabSetup

    v1 v1  
     1= Lab Setup =
     2
     3In 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.
     4
     5All participants are  details including IP subnets can be found from [wiki:Cnbp2019/Agenda/IpAllocation here].
     6
     7Both users must change their IP Addresses with the following additional detail. We recommend using the wired network as much as possible.
     8
     9* Subnet mask: IPv4 - /24, IPv6 - /64
     10* Gateway: 192.248.7.254 / 2401:dd00:2000::ffff
     11* DNS: 192.248.7.254 / 2401:dd00:2000::ffff
     12
     13
     14For each group;
     15
     16* User A needs to install '''GNS3''' and '''Virtual Box'''
     17* User B needs to install '''Virtual Box''' only
     18
     19Both users must change their host machines (Laptop) IP address as per the above-linked table and it is advised to use the wired network.
     20
     21We will create a virtual network on User A and related servers on User B due to RAM limitations on Physical Devices.
     22
     23> Virtualized appliances will be connected via UDP tunnels and these must be neglected for your actual physical installations.
     24
     25
     26
     27== Download Dependencies ==
     28* Download Oracle Virtual Box from [https://sp-training.ac.lk/VirtualBox-6.0.4-128413-Win.exe here] on both users
     29* Download pfsense VM from [https://docs.learn.ac.lk/index.php/s/iC7mzKBNrjPYXwc ext-Mirror] or [https://sp-training.ac.lk/Firewall-cnbp2019.ova Lab-Mirror]( '''only on User A''')
     30* Download GNS3 from [https://sp-training.ac.lk/GNS3-2.1.11-all-in-one-regular.exe here] '''only on User A'''
     31* Download Required router images ('''only on User A''')
     32   * [https://docs.learn.ac.lk/index.php/s/cMg1FsJkL3VqnCQ ext-Mirror] or [https://sp-training.ac.lk/c3725-adventerprisek9-mz.124-25d.bin Lab-Mirror]
     33* Download all server VM's '''only on User B'''
     34   * OVA1 [https://docs.learn.ac.lk/index.php/s/aFnsmB6FbXFUMvh ext-Mirror] or [https://sp-training.ac.lk/GUI.ova Lab-Mirror]
     35   * OVA2 [https://docs.learn.ac.lk/index.php/s/I1lNm3ntyO8bBNx ext-Mirror] or [https://sp-training.ac.lk/VMs.ova Lab-Mirror]
     36   
     37
     38[[span(style=color: #A00000,  '''Following settings will need to be as it is with the changes only to the specified dynamic content.''' )]]
     39
     40
     41=== Install Virtual Box ===
     42
     43On both users, Install Virtual Box software with default settings, make sure you have enabled virtualization support from your host machine BIOS.
     44
     45> If you have pre-installed Virtual Box in your host machines make sure they are updated to 6.x latest version
     46
     47
     48Import downloaded  OVA files into Oracle virtual box from File >  Import Appliance
     49
     50While importing make sure to select '''Generate new MAC addresses for all Network Adapters''' from '''MAC Address Policy'''.
     51
     52This should import Virtual Machines for pfsense on User A and two server machines + GUI on User B
     53
     54As soon as you import vm's, change your VM network connections as follows;
     55
     56* '''User A : pfSense VM'''
     57
     58'''Adapter 1:'''[[br]]
     59     Attached to: Bridged Adapter[[br]]
     60     Name: ![[Your Physical Adapter Name]][[br]]
     61     Promiscuous Mode: Allow All[[br]]
     62     Cable Connected
     63
     64'''Adapter 2:'''[[br]]
     65     Attached to: Generic Driver[[br]]
     66     Name: UDPTunnel[[br]]
     67     Generic Properties:[[br]]
     68          dest=127.0.0.1[[br]]
     69          dport=30000[[br]]
     70          sport=20000[[br]]
     71     Cable Connected
     72
     73'''Adapter 3:'''[[br]]
     74     Attached to: Generic Driver[[br]]
     75     Name: UDPTunnel[[br]]
     76     Generic Properties:[[br]]
     77          dest=127.0.0.1[[br]]
     78          dport=30001[[br]]
     79          sport=20001[[br]]
     80     Cable Connected
     81
     82>Note down all mac addresses as we need them to decide which port connects to which network later when installing pfsense)
     83
     84
     85* '''User B : GUI VM'''
     86
     87'''Adapter 1:'''[[br]]
     88     Attached to: Generic Driver[[br]]
     89     Name: UDPTunnel[[br]]
     90     Generic Properties:[[br]]
     91          dest=//![[IPv4 of UserA]]//[[br]]
     92          dport=30002[[br]]
     93          sport=20002[[br]]
     94     Cable Connected
     95
     96* '''User B : Web Server VM'''
     97
     98'''Adapter 1:'''[[br]]
     99     Attached to: Generic Driver[[br]]
     100     Name: UDPTunnel[[br]]
     101     Generic Properties:[[br]]
     102          dest=//![[IPv4 of UserA]]//[[br]]
     103          dport=30003[[br]]
     104          sport=20003[[br]]
     105     Cable Connected
     106
     107* '''User B: Monitoring Server VM'''
     108
     109'''Adapter 1:'''[[br]]
     110     Attached to: Generic Driver[[br]]
     111     Name: UDPTunnel[[br]]
     112     Generic Properties:[[br]]
     113          dest=//![[IPv4 of UserA]]//[[br]]
     114          dport=30004[[br]]
     115          sport=20004[[br]]
     116     Cable Connected
     117
     118
     119=== Install GNS3 ===
     120
     121'''On __User A__ host machines''', download latest GNS3 from local link here and go through the installation steps from [https://docs.gns3.com/11YYG4NQlPSl31YwvVvBS9RAsOLSYv0Ocy-uG2K8ytIY/index.html# here]
     122
     123On first application load, cancel all wizards including Open Project wizard.
     124
     125Go to '''Edit''' --> '''Preferences'''
     126
     127* Select '''Server''' on Left side menu and select '''Enable local server''' from Main Server tab if it is not selected already.
     128
     129* Click '''Apply'''
     130
     131* Select '''Dynamips''' --> '''IOS routers''' on Left side menu and '''New'''
     132    * Select '''New Image''' and Browse to the router image file you downloaded.
     133    * Select '''yes''' for the window '''Would you like to decompress this IOS image'''.
     134    * On the Next step, tick the option called '''This is an !EtherSwitch router''' and click next.
     135    * Keep all other settings to their default values and click next till the last option '''Idle-PC'''
     136    * Click '''Idle PC finder''' and wait for a moment. Once it finds a value click '''finish'''
     137
     138* Click '''Apply''' and '''Ok'''
     139
     140Next go to '''File''' --> '''New blank project'''
     141
     142* Name the project as '''Campus Network''' and  click '''OK'''
     143----
     144
     145On your new project click on the fifth icon on your left corner menu '''Browse All Devices'''
     146
     147Drag and drop following devices into the design area
     148
     149* 3 x !EtherSwith Router
     150* 7 x Ethernet Switch
     151* 5 x Cloud
     152* 9 x VPCS
     153 
     154
     155Next, right click on each cloud and define following on its configurations (Right Click --> Configure );
     156
     157* Cloud-1
     158   * Misc:
     159      * Name: LEARN-Router
     160   * Ethernet Interfaces:
     161      * Select "Ethernet" and click "Delete"
     162   * Click "Apply" and "OK"
     163   * Again Right Click --> Change Symbol
     164      * Select the symbol called "router" from Symbols Library and Click "ok"
     165* Cloud-2
     166   * Misc:
     167      * Name: pfSense-Firewall
     168   * Ethernet Interfaces:
     169      * Select "Ethernet" and click "Delete"
     170   * UDP Tunnels
     171       * Name: DMZ
     172       * Local Port: 30000
     173       * Remote host: 127.0.0.1
     174       * Remote Port: 20000
     175       * Click "Add" and create another as,
     176       * Name: LAN
     177       * Local Port: 30001
     178       * Remote host: 127.0.0.1
     179       * Remote Port: 20001
     180       * Click "Add", "Apply" and "OK"
     181   * Again Right Click --> Change Symbol
     182      * Select the symbol called "firewall" from Symbols Library and Click "ok"
     183* Cloud-3
     184   * Misc:
     185      * Name: GUI-PC
     186   * Ethernet Interfaces:
     187      * Select "Ethernet" and click "Delete"
     188   * UDP Tunnels
     189       * Name: NIC1
     190       * Local Port: 30002
     191       * Remote host: //![[IPv4 of UserB]]//
     192       * Remote Port: 20002
     193       * Click "Add", "Apply" and "OK"
     194   * Again Right Click --> Change Symbol
     195      * Select the symbol called "Computer" from Symbols Library and Click "ok"
     196* Cloud-4
     197   * Misc:
     198      * Name: Web-Server
     199   * Ethernet Interfaces:
     200      * Select "Ethernet" and click "Delete"
     201   * UDP Tunnels
     202       * Name: NIC1
     203       * Local Port: 30003
     204       * Remote host: //![[IPv4 of UserB]]//
     205       * Remote Port: 20003
     206       * Click "Add", "Apply" and "OK"
     207   * Again Right Click --> Change Symbol
     208      * Select the symbol called "Server" from Symbols Library and Click "ok"
     209* Cloud-5
     210   * Misc:
     211      * Name: Monitoring-Server
     212   * Ethernet Interfaces:
     213      * Select "Ethernet" and click "Delete"
     214   * UDP Tunnels
     215       * Name: NIC1
     216       * Local Port: 30004
     217       * Remote host: //![[IPv4 of UserB]]//
     218       * Remote Port: 20004
     219       * Click "Add", "Apply" and "OK"
     220   * Again Right Click --> Change Symbol
     221      * Select the symbol called "Server" from Symbols Library and Click "ok"
     222
     223Right Click on other devices and "Change Hostname" as,
     224
     225* ESW1 :- FAC1
     226* ESW2:- FAC2
     227* ESW3:- FAC1-BLD1-FL2
     228* Ethernet switch-1:- FAC1-BLD1-FL1A
     229* Ethernet switch-2:- FAC1-BLD1-FL1B
     230* Ethernet switch-3:- FAC1-BLD2-FL0
     231* Ethernet switch-4:- FAC2-BLD1-FL1
     232* Ethernet switch-5:- FAC2-BLD2-FL1
     233* Ethernet switch-6:- FAC2-BLD2-FL3
     234* Ethernet switch-7:- DMZ
     235
     236Again change the symbol of **FAC1-BLD1-FL2** to an Ethernet Switch,
     237
     238* Right Click --> Change Symbol
     239      * Select the symbol called "ethernet_switch" from Symbols Library and Click "ok"
     240
     241
     242
     243Then as per the given network diagram, connect your devices. Make sure you connect ports exactly as per the diagram.
     244
     245[[Image(wiki:Cnbp2019/Agenda/LabSetup:CampusNetwork.png,85%,border=1, center)]]
     246
     247> 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.