5 | | == Setting up the Virtualbox == |
6 | | |
7 | | === Installation of virtualbox and Downloading virtual hard disks === |
8 | | |
9 | | - Download and install virtualbox 5.0.x |
10 | | - Download the Virtual Hard disks from the LEARN mirror. You can get them by following links |
11 | | * [http://192.248.4.49/ipv6/Netmon.vdi Netmon.vdi] |
12 | | - Note down the location of downloaded vdi files |
13 | | |
14 | | === Creating the VM Netmon === |
15 | | |
16 | | - Start !VirtualBox and Click on '''New''' button (at top-right) to create new virtual machine |
17 | | - Enter name of the VM as '''Netmon''' |
18 | | - Select OS Type: '''Linux''' |
19 | | - Select Version: '''Ubuntu (64-bit)''' |
20 | | - Then click on Continue button |
21 | | - Set VM's memory size to '''2048MB''' and click on Continue button |
22 | | - Set VM's hard disk option to '''Use an existing virtual hard disk file''' and click the browse button and browse to the location where you download the virtual hard disks. Then select the '''Netmon.vdi''' file and click on the create button. |
23 | | - You will see a new virtual machine named Netmon appears on Virtual Box Manager Window |
24 | | |
25 | | ==== Setting up Network Interfaces ==== |
26 | | |
27 | | - Select the Netmon VM from left panel on Virtual box, right click and open '''Settings''' |
28 | | - Click on the '''Network''' title |
29 | | - On '''Adapter 1''' check the '''Enable Network Adapter''' . Then change '''Attached to be''' to the '''Bridged Adapter''' and make sure the '''name''' of the interface is the same interface which you use to connect to the outside (Either Wi-Fi or Ethernet). This virtual interface will work as the WAN port of the of your virtual campus network that can be used to connect from out side. |
30 | | - Click on '''Advanced''' drop down list and change the '''promiscuous mode''' to '''Allow All''' |
31 | | - Click '''OK''' |
32 | | |
33 | | ==== Netmon VM ==== |
34 | | |
35 | | Before running Dynagen you have to start your VMs and assign IP address to the VM's network interfaces. |
36 | | |
37 | | - Select the '''Netmon''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts |
38 | | - login to the machine using the following user credentials |
39 | | {{{ |
40 | | usrname : learn |
41 | | password : <classpassword> |
42 | | }}} |
43 | | - Then change the '''interfaces''' file. Root password is the same as class password |
44 | | {{{ |
45 | | sudo vi /etc/network/interfaces |
46 | | }}} |
47 | | - locate the following lines |
48 | | {{{ |
49 | | iface enp0s3 inet static |
50 | | address 192.168.56.2 |
51 | | netmask 255.255.255.0 |
52 | | network 192.168.56.0 |
53 | | broadcast 192.168.56.255 |
54 | | gateway 192.168.56.1 |
55 | | dns-nameservers 192.248.1.161 |
56 | | }}} |
57 | | - Change it to the following lines. You can find your IP Address from this [wiki:2017netmonipallocation table] |
58 | | {{{ |
59 | | iface enp0s3 inet static |
60 | | address <Your IP Address > |
61 | | netmask 255.255.255.0 |
62 | | network 192.248.6.0 |
63 | | broadcast 192.248.6.255 |
64 | | gateway 192.248.6.254 |
65 | | dns-nameservers 192.248.1.161 |
66 | | }}} |
67 | | - Save and Exit the editor (type ''':wq''') |
68 | | - When you completed the IP settings , reboot the machine |
69 | | {{{ |
70 | | sudo reboot |
71 | | }}} |
72 | | - Confirm the correct IP settings by '''ifconfig''' command. Your result should be something like the following. Check the IP address of enp0s3 Interface and see whether the other interfaces are up |
73 | | {{{ |
74 | | enp0s3 Link encap:Ethernet HWaddr 08:00:27:8c:e0:26 |
75 | | inet addr:<your IP address> Bcast:192.248.6.255 Mask:255.255.255.0 |
76 | | inet6 addr: fe80::a00:27ff:fe8c:e026/64 Scope:Link |
77 | | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
78 | | RX packets:1120 errors:0 dropped:0 overruns:0 frame:0 |
79 | | TX packets:7550 errors:0 dropped:0 overruns:0 carrier:0 |
80 | | collisions:0 txqueuelen:1000 |
81 | | RX bytes:99387 (99.3 KB) TX bytes:567441 (567.4 KB) |
82 | | |
83 | | |
84 | | lo Link encap:Local Loopback |
85 | | inet addr:127.0.0.1 Mask:255.0.0.0 |
86 | | inet6 addr: ::1/128 Scope:Host |
87 | | UP LOOPBACK RUNNING MTU:65536 Metric:1 |
88 | | RX packets:160 errors:0 dropped:0 overruns:0 frame:0 |
89 | | TX packets:160 errors:0 dropped:0 overruns:0 carrier:0 |
90 | | collisions:0 txqueuelen:1 |
91 | | RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB) |
92 | | }}} |
93 | | - Try ping to some known hosts and see the results. |
94 | | {{{ |
95 | | ping 192.248.6.254 |
96 | | ping 192.248.1.161 |
97 | | ping www.google.com |
98 | | }}} |
99 | | |
100 | | === Remote Access === |
101 | | |
102 | | ==== Windows ==== |
| 5 | == Remote Access == |
| 6 | |
| 7 | === Windows === |