Changes between Initial Version and Version 4 of ipv6vmconf


Ignore:
Timestamp:
May 6, 2017, 6:14:29 PM (8 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ipv6vmconf

    v1 v4  
     1= IPv6 in a Campus Network Hands - On =
     2
     3In this Hands-on yu will get a virtual campus LAN and through out the lab session you will configure the devices (Cisco based) in both IPv4 and IPv6. After all the configuratons you will get a virtual campus network with dual stack.
     4
     5To simulate the Campus network you will use !Dynagen/Dynamips.
     6
     7For this hands-on we will give you a Virtual Hard Disk and Usng that you can create a virtual machine (Ubuntu 64 installed) with !Dynagen/Dynamips installed. You will also find the network topology file in the VM as well.
     8
     9Other than dynagen/dynamips installed VM you will get  another two virtual hard disks which you can used as user PC's in two different VLANS in your virtual campus LAN.
     10
     11== Setting up the Virtualbox ==
     12
     13=== Installation of virtualbox and Downloading virtual hard disks ===
     14
     15 - Download and install virtualbox 5.0.x​
     16 - Download the Virtual Hard disks from the LEARN mirror. You can get them by following links
     17    * [http://192.248.4.40/ipv6/campuslan.vdi campuslan.vdi]
     18    * [http://192.248.4.40/ipv6/FacAPC.vdi FacAPC.vdi]
     19    * [http://192.248.4.40/ipv6/FacBPC.vdi FacBPC.vdi]
     20 - Note down the location of downloaded vdi files
     21
     22=== Creating the VM campuslan ===
     23
     24 - Start virtualbox and Click on '''New''' button (at top-right) to create new virtual machine
     25 - Enter name of the VM as '''campuslan'''
     26 - Select OS Type: '''Linux'''
     27 - Select Version: '''Ubuntu (64-bit)'''
     28 - Then click on Continue button
     29 - Set VM's memory size to '''1536MB''' and click on Continue button
     30 - 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.
     31 - You will see a new virtual machine named campuslan appears on Virtual Box Manager Window
     32
     33==== Setting up Network Interfaces ====
     34
     35 - Select the campuslan VM from left panel on Virtual box, right click and open '''Settings'''
     36 - Click on the '''Network''' title
     37 - 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 (Can be connect from out side).
     38 - Click on '''Advanced''' drop down list and change the '''promiscuous mode''' to '''Allow All'''
     39 - On '''Adapter 2''' 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.
     40 - Click on '''Advanced''' drop down list and change the '''promiscuous mode''' to '''Allow All'''
     41 - 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.
     42 - Click on '''Advanced''' drop down list and change the promiscuous mode to '''Allow All'''
     43 - Click '''OK'''
     44
     45=== Creating the VM FacAPC ===
     46 - Start virtualbox and Click on '''New''' button (at top-right) to create new virtual machine
     47 - Enter name of the VM as '''FacAPC'''
     48 - Select OS Type: '''Linux'''
     49 - Select Version: '''Ubuntu (64-bit)'''
     50 - Then click on Continue button
     51 - Set VM's memory size to '''512MB''' and click on Continue button
     52 - 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.
     53 - You will see a new virtual machine named FacAPC appears on Virtual Box Manager Window
     54
     55==== Setting up Network Interface ====
     56 - Select the FacAPC VM from left panel on Virtual box, right click and open '''Settings'''
     57 - Click on the '''Network''' title
     58 - 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.
     59 - Click on '''Advaned''' drop down list and change the '''promiscuous mode''' to '''Allow All'''
     60 - Click '''OK'''
     61
     62=== Creating the VM FacBPC ===
     63 - Start virtualbox and Click on '''New''' button (at top-right) to create new virtual machine
     64 - Enter name of the VM as '''FacBPC'''
     65 - Select OS Type: '''Linux'''
     66 - Select Version: '''Ubuntu (64-bit)'''
     67 - Then click on Continue button
     68 - Set VM's memory size to '''512MB''' and click on Continue button
     69 - 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.
     70 - You will see a new virtual machine named FacBPC appears on Virtual Box Manager Window
     71
     72==== Setting up Network Interface ====
     73 - Select the FacAPC VM from left panel on Virtual box, right click and open '''Settings'''
     74 - Click on the '''Network''' title
     75 - 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.
     76 - Click on '''Advaned''' drop down list and change the '''promiscuous mode''' to '''Allow All'''
     77 - Click '''OK'''
     78
     79=== Setting UP IP Addresses ===
     80
     81==== campuslan VM ====
     82
     83Before running Dynagen you have to assign IP address to the VM's network interfaces.
     84
     85 - Select the '''campuslan''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts
     86 - login to the machine using the following user credentials
     87{{{
     88usrname  : learn
     89password : <classpassword>
     90}}}
     91 - Then change the '''interfaces''' file. Root password is the same as class password
     92{{{
     93sudo vi /etc/network/interfaces
     94}}}
     95 - locate the following lines
     96{{{
     97iface enp0s3 inet static
     98 address 192.168.56.2
     99 netmask 255.255.255.0
     100 network 192.168.56.0
     101 broadcast 192.168.56.255
     102 gateway 192.168.56.1
     103 dns-nameservers 192.248.1.161
     104}}}
     105 - Change it to the following lines. You can find your IP Address from this table
     106{{{
     107iface enp0s3 inet static
     108 address <Your IP Address >
     109 netmask 255.255.255.0
     110 network 192.248.4.0
     111 broadcast 192.248.4.255
     112 gateway 192.248.4.254
     113 dns-nameservers 192.248.1.161
     114}}}
     115 - Save and Exit the editor (type ''':wq''')
     116 - When you completed the IP settings , restart the Interfaces
     117{{{
     118sudo /etc/init.d/networking restart
     119}}}
     120 - Confirm the correct IP settings by '''ipconfig''' command. Your result should be something like the following. Check the IP address of enp0s3 Interface and see whether the other interfaces are up
     121{{{
     122enp0s3    Link encap:Ethernet  HWaddr 08:00:27:8c:e0:26
     123          inet addr:<your IP address>  Bcast:192.248.4.255  Mask:255.255.255.0
     124          inet6 addr: fe80::a00:27ff:fe8c:e026/64 Scope:Link
     125          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     126          RX packets:1120 errors:0 dropped:0 overruns:0 frame:0
     127          TX packets:7550 errors:0 dropped:0 overruns:0 carrier:0
     128          collisions:0 txqueuelen:1000
     129          RX bytes:99387 (99.3 KB)  TX bytes:567441 (567.4 KB)
     130
     131enp0s8    Link encap:Ethernet  HWaddr 08:00:27:f0:f7:66
     132          inet6 addr: fe80::a00:27ff:fef0:f766/64 Scope:Link
     133          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     134          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     135          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
     136          collisions:0 txqueuelen:1000
     137          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)
     138
     139enp0s9    Link encap:Ethernet  HWaddr 08:00:27:51:68:d3
     140          inet6 addr: fe80::a00:27ff:fe51:68d3/64 Scope:Link
     141          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     142          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     143          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
     144          collisions:0 txqueuelen:1000
     145          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)
     146
     147lo        Link encap:Local Loopback
     148          inet addr:127.0.0.1  Mask:255.0.0.0
     149          inet6 addr: ::1/128 Scope:Host
     150          UP LOOPBACK RUNNING  MTU:65536  Metric:1
     151          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
     152          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
     153          collisions:0 txqueuelen:1
     154          RX bytes:11840 (11.8 KB)  TX bytes:11840 (11.8 KB)
     155}}}
     156 - Try ping to some known hosts and see the results.
     157{{{
     158ping 192.248.4.254
     159ping 192.248.1.161
     160ping www.google.com
     161}}}
     162
     163==== FacAPC VM ====
     164As 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.
     165
     166 - Select the '''FacAPC''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts
     167 - login to the machine using the following user credentials
     168{{{
     169usrname  : learn
     170password : <classpassword>
     171}}}
     172 - Check the IP address by using the command '''ifconfig'''. The result should be as following.
     173{{{
     174enp0s3    Link encap:Ethernet  HWaddr 08:00:27:e9:76:20
     175          inet addr:10.0.10.1  Bcast:10.0.10.255  Mask:255.255.255.0
     176          inet6 addr: fe80::a00:27ff:fee9:7620/64 Scope:Link
     177          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     178          RX packets:198 errors:0 dropped:0 overruns:0 frame:0
     179          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
     180          collisions:0 txqueuelen:1000
     181          RX bytes:23291 (23.2 KB)  TX bytes:15516 (15.5 KB)
     182
     183lo        Link encap:Local Loopback
     184          inet addr:127.0.0.1  Mask:255.0.0.0
     185          inet6 addr: ::1/128 Scope:Host
     186          UP LOOPBACK RUNNING  MTU:65536  Metric:1
     187          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
     188          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
     189          collisions:0 txqueuelen:1
     190          RX bytes:11840 (11.8 KB)  TX bytes:11840 (11.8 KB)
     191}}}
     192
     193==== FacBPC VM ====
     194As 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.
     195
     196 - Select the '''FacBPC''' VM from left panel on Virtual box, right click '''Start''' and wait till the VM starts
     197 - login to the machine using the following user credentials
     198{{{
     199usrname  : learn
     200password : <classpassword>
     201}}}
     202 - Check the IP address by using the command '''ifconfig'''. The result should be as following.
     203{{{
     204enp0s3    Link encap:Ethernet  HWaddr 08:00:27:e6:60:87
     205          inet addr:10.0.20.1  Bcast:10.0.20.255  Mask:255.255.255.0
     206          inet6 addr: fe80::a00:27ff:fee6:6087/64 Scope:Link
     207          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     208          RX packets:286 errors:0 dropped:0 overruns:0 frame:0
     209          TX packets:830 errors:0 dropped:0 overruns:0 carrier:0
     210          collisions:0 txqueuelen:1000
     211          RX bytes:35607 (35.6 KB)  TX bytes:61166 (61.1 KB)
     212
     213lo        Link encap:Local Loopback
     214          inet addr:127.0.0.1  Mask:255.0.0.0
     215          inet6 addr: ::1/128 Scope:Host
     216          UP LOOPBACK RUNNING  MTU:65536  Metric:1
     217          RX packets:686 errors:0 dropped:0 overruns:0 frame:0
     218          TX packets:686 errors:0 dropped:0 overruns:0 carrier:0
     219          collisions:0 txqueuelen:1
     220          RX bytes:58320 (58.3 KB)  TX bytes:58320 (58.3 KB)
     221}}}