Changes between Version 21 and Version 22 of ipv6vmconf
- Timestamp:
- May 14, 2017, 1:34:07 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ipv6vmconf
v21 v22 19 19 - Download and install virtualbox 5.0.x 20 20 - Download the Virtual Hard disks from the LEARN mirror. You can get them by following links 21 * [http://192.248.4.40/ipv6/ campuslan.vdi campuslan.vdi]22 * [http://192.248.4.40/ipv6/ FacAPC.vdi FacAPC.vdi]23 * [http://192.248.4.40/ipv6/ FacBPC.vdi FacBPC.vdi]21 * [http://192.248.4.40/ipv6/CampusLAN.vdi CampusLAN.vdi] 22 * [http://192.248.4.40/ipv6/Dept1PC.vdi Dept1PC.vdi] 23 * [http://192.248.4.40/ipv6/Dept2PC.vdi Dept2PC.vdi] 24 24 - Note down the location of downloaded vdi files 25 25 … … 32 32 - Then click on Continue button 33 33 - Set VM's memory size to '''1536MB''' and click on Continue button 34 - 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 ''' campuslan.vdi''' file and click on the create button.34 - 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 '''CampusLAN.vdi''' file and click on the create button. 35 35 - You will see a new virtual machine named CampusLAN appears on Virtual Box Manager Window 36 36 … … 45 45 - On '''Adapter 3''' check the '''Enable Network Adapter''' . Then change '''Attached to be to''' the '''Internal Network''' and give the Name of the network as '''VLAN20'''. This virtual interface will connect to a internal virtual bridged network. 46 46 - Click on '''Advanced''' drop down list and change the promiscuous mode to '''Allow All''' 47 - Click '''OK''' 48 49 === Creating the VM FacAPC === 47 Click '''OK''' 48 49 ====Adding processors ==== 50 51 52 === Creating the VM Dept1PC === 50 53 - Start virtualbox and Click on '''New''' button (at top-right) to create new virtual machine 51 - Enter name of the VM as ''' FacAPC'''54 - Enter name of the VM as '''Dept1PC''' 52 55 - Select OS Type: '''Linux''' 53 56 - Select Version: '''Ubuntu (64-bit)''' 54 57 - Then click on Continue button 55 58 - Set VM's memory size to '''512MB''' and click on Continue button 56 - 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 ''' FacAPC.vdi''' file and click on the create button.57 - You will see a new virtual machine named FacAPC appears on Virtual Box Manager Window59 - 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 '''Dept1PC.vdi''' file and click on the create button. 60 - You will see a new virtual machine named Dept1PC appears on Virtual Box Manager Window 58 61 59 62 ==== Setting up Network Interface ==== 60 - Select the FacAPC VM from left panel on Virtual box, right click and open '''Settings'''63 - Select the Dept1PC VM from left panel on Virtual box, right click and open '''Settings''' 61 64 - Click on the '''Network''' title 62 65 - On '''Adapter 1''' check the '''Enable Network Adapter''' . Then change '''Attached to be''' to the '''Internal Network''' and give the Name of the network as '''VLAN10'''. This virtual interface will connect to a internal virtual bridged network. … … 64 67 - Click '''OK''' 65 68 66 === Creating the VM FacBPC ===69 === Creating the VM Dept2PC === 67 70 - Start virtualbox and Click on '''New''' button (at top-right) to create new virtual machine 68 - Enter name of the VM as ''' FacBPC'''71 - Enter name of the VM as '''Dept2PC''' 69 72 - Select OS Type: '''Linux''' 70 73 - Select Version: '''Ubuntu (64-bit)''' 71 74 - Then click on Continue button 72 75 - Set VM's memory size to '''512MB''' and click on Continue button 73 - 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 ''' FacBPC.vdi''' file and click on the create button.74 - You will see a new virtual machine named FacBPC appears on Virtual Box Manager Window76 - 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 '''Dept2PC.vdi''' file and click on the create button. 77 - You will see a new virtual machine named Dept2PC appears on Virtual Box Manager Window 75 78 76 79 ==== Setting up Network Interface ==== 77 - Select the FacAPC VM from left panel on Virtual box, right click and open '''Settings'''80 - Select the Dept1PC VM from left panel on Virtual box, right click and open '''Settings''' 78 81 - Click on the '''Network''' title 79 82 - On '''Adapter 1''' check the '''Enable Network Adapter''' . Then change '''Attached to be''' to the '''Internal Network''' and give the Name of the network as '''VLAN20'''. This virtual interface will connect to a internal virtual bridged network. … … 115 118 address <Your IP Address > 116 119 netmask 255.255.255.0 117 network 192.248. 4.0118 broadcast 192.248. 4.255119 gateway 192.248. 4.254120 network 192.248.6.0 121 broadcast 192.248.6.255 122 gateway 192.248.6.254 120 123 dns-nameservers 192.248.1.161 121 124 }}} … … 128 131 {{{ 129 132 enp0s3 Link encap:Ethernet HWaddr 08:00:27:8c:e0:26 130 inet addr:<your IP address> Bcast:192.248. 4.255 Mask:255.255.255.0133 inet addr:<your IP address> Bcast:192.248.6.255 Mask:255.255.255.0 131 134 inet6 addr: fe80::a00:27ff:fe8c:e026/64 Scope:Link 132 135 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 … … 163 166 - Try ping to some known hosts and see the results. 164 167 {{{ 165 ping 192.248. 4.254168 ping 192.248.6.254 166 169 ping 192.248.1.161 167 170 ping www.google.com 168 171 }}} 169 172 170 ==== FacAPC VM ====173 ==== Dept1PC VM ==== 171 174 As this is a PC inside your virtual LAN it has a private IP address. The address is already configured. You can verify whether it is correct. 172 175 173 - Select the ''' FacAPC''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts176 - Select the '''Dept1PC''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts 174 177 - login to the machine using the following user credentials 175 178 {{{ … … 198 201 }}} 199 202 200 ==== FacBPC VM ====203 ==== Dept2PC VM ==== 201 204 As this is a PC inside your virtual LAN it has a private IP address. The address is already configured. You can verify whether it is correct. 202 205 203 - Select the ''' FacBPC''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts206 - Select the '''Dept2PC''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts 204 207 - login to the machine using the following user credentials 205 208 {{{ … … 235 238 236 239 - First login to CampusLAN VM. 240 - Change to root user . Enter the command '''su'''. And give the password 241 {{{ 242 su 243 password : <class password> 244 }}} 237 245 - Then start up the Dynamips server on your local machine 238 246 {{{ 239 sudodynamips –H 7100 &247 dynamips –H 7100 & 240 248 }}} 241 249 hypervisor will run on port 7100 242 - You can find the topology file in '''/var/dynamips/campus lan.net'''250 - You can find the topology file in '''/var/dynamips/campusLAN.net''' 243 251 - Run the topology file with dynagen 244 252 {{{ 245 sudo dynagen /var/dynamips/campuslan.net253 dynagen /var/dynamips/CampusLAN.net 246 254 }}} 247 255 - Now you have the network topology running. Give the following command in dynagen … … 252 260 {{{ 253 261 Name Type State Server Console 254 AccessRt 3725 stopped localhost:7100 2100262 BorderRt 3725 stopped localhost:7100 2100 255 263 CampusCore 3725 stopped localhost:7100 2200 256 264 FacACore 3725 stopped localhost:7100 2300 257 265 FacBCore 3725 stopped localhost:7100 2400 258 FacASw 3725 stopped localhost:7100 2500259 FacBSw 3725 stopped localhost:7100 2600266 Dept1Sw 3725 stopped localhost:7100 2500 267 Dept2Sw 3725 stopped localhost:7100 2600 260 268 }}} 261 269 - You can see there are 6 devices. But none of them are running. You can also see the numbers of the ports which the console port of devices are running. This will also be helpful to you in next steps … … 266 274 - This Command will be helpful to know on which interface the devices are connected to each other 267 275 {{{ 268 => show device AccessRt269 Router AccessRt is stopped276 => show device BorderRt 277 Router BorderRt is stopped 270 278 Hardware is dynamips emulated Cisco 3725 with 256 MB RAM 271 279 Router's hypervisor runs on localhost:7100, console is on port 2100 … … 279 287 - Now you can start the devices. To start the devices use the start command 280 288 {{{ 281 => start AccessRt289 => start BorderRt 282 290 => start CampusCore 283 291 => start FacACore 284 292 => start FacBCore 285 => start FacASw286 => start FacBSw293 => start Dept1Sw 294 => start Dept2Sw 287 295 }}} 288 296