Sie sind auf Seite 1von 5

NET2003: Linux Administration

Lab 01: Virtualization

Lab Objectives:
After this lab students should be able to: Install VirtualBox Boot a copy of Damn Small Linux ( DSL ) Confi ure multiple net!or"s in VirtualBox

art A: !o"t#are $o#nload and %nstallation


!te& 1: !o"t#are $o#nload Do!nload the follo!in soft!are: VirtualBox: http:##!!!$%irtualbox$or # &ireshar": http:##!!!$!ireshar"$or # Damn Small Linux '$'$() ( IS* ): http:##!!$damnsmalllinux$or #

!te& 2: %nstall Virtual'ox and (ires)ar* in +our )ost O! !te& 3: ,reate a Virtual -ac)ine "or +our $!L Damn Small Linux is a %ery S+ALL %ersion of Linux$ &e !ill be usin it as a client to test our ser%er ser%ices$ *peratin System:

+emory:

,ard Dri%e ( -eep all your hard dri%es in the same location )

./0 1))2 3 )(4Virtuali5ation 6 % ($7 6 ( # 7

Attach IS* ima e as the CD

.o! you should be able to boot the ne! machine In order to !or" properly8 you may need to disable 9+ouse Inte ration:

!te& .: ,reate a second Virtual -ac)ine "or +our $!L

./0 1))2 3 )(4Virtuali5ation 6 % ($7 6 1 # 7

art ': Virtual'ox Net#or* -odes


0he second part of the lab !ill help you understand the different net!or" modes that VB pro%ides$ ;ou !ill be ma"in chan es in the V+<s settin s to chan e the net!or" mode that the .IC !or"s on8 and capturin pac"ets to see the differences$ Before you start: =ind your host<s I> address Create a directory NET2003 Create a subdirectory Lastname_01 ( use your lastname8 )( indicates lab)( )8 you !ill store all the output files for this lab in this directory$ At the end of the lab8 you !ill compress the directory and submit it to BB !te& 1: ,on"i/ure $!L to use NAT as t)e net#or* mode ?emember that NAT is the default .et!or" mode used in VirtualBox8 so you don<t "no! ha%e to ma"e any chan es to your initial confi uration$ /nable pac"et capture in your DSL ( Damn Small Linux ) V+$
root@Luna:~# VBoxManage modifyvm "DSL" --nictrace1 on --nictracefile1 DSL_nat.pcap

.otice that 9DSL: refers to the name of your V+$ If need it8 chan e the name for the one you are usin $ Sho! information about your V+ confi uration:
root@Luna:~# VBoxManage showvminfo DSL ! DSL"NAT#txt

Sa%e the information output in a file DSL"NAT#txt$ >lease notice that command i%e abo%e is in Linux8 and it sa%es the output into the file DSL"NAT#txt8 this command should !or" in D*S ( !indo!s command prompt ) too$ Be sure that the file is stored in the appropriate directory$ Start DSL Capture some IC+> pac"ets *pen a terminal >in the host *S ( assumin your host is @ (A1$(BC$)$()) )
root@Luna:~# $ing %& ' ()*#(+,#-#(--

0he Linux pin 8 sends B' bytes pac"ets until you stop it usin DC$ &indo!s8 sends four 21 bytes pac"ets8 and then stops$ 0he abo%e commands sends Eust 2 pac"ets ( 6c 2 ) Stop DSL
./0 1))2 3 )(4Virtuali5ation 6 % ($7 6 2 # 7

Disable pac"et capture in your DSL ( Damn Small Linux ) V+$


root@Luna:~# VBoxManage modifyvm "DSL" --nictrace1 off

?e%ie! your capture file !ith &ireshar"$

!te& 2: ,on"i/ure $!L to use 'rid/ed as t)e net#or* mode Fsin the settin menu8 chan e your net!or"in mode from .A0 to brid ed$ Brid ed your .IC to one of your host .IC cards$ /nable pac"et capture in your DSL V+$
root@Luna:~# VBoxManage modifyvm "DSL" --nictrace1 on --nictracefile1 DSL_Bridged.pcap

Sho! information about your V+ confi uration:


root@Luna:~# VBoxManage showvminfo DSL ! DSL"Bri.ge.#txt

Be sure that the file is stored in the appropriate directory$ Start DSL >in the host *S8 and oo le$ca Stop DSL Disable pac"et capture ?e%ie! your capture file !ith &ireshar"

!te& 3: ,on"i/ure $!L001 and +our $!L002 to use %nternal Net#or*in/ as t)e net#or* mode Fsin the settin menu8 chan e your net!or"in mode to Internal .et!or"in 8 for both your DSL6)( and DSL6)1 %ms$ /nable a D,C> ser%er for the Internal net!or"in 8 use the follo!in parameters: .et!or" Address: B1$22$1)7$) # 1C D,C> ser%er: B1$22$1)7$( Lo!er I>: B1$22$1)7$7 ,i h I>: B1$22$1)7$(2 /nable pac"et capture for DSL8 use internal#$&a$ as your capture file$ Start both DSL6)( and DSL6)1 =ind the I> address for your DSL6)1 V+ =rom DSL6)(: >in DSL6)1 >in the host *S Stop the machines Disable pac"et capture ?e%ie! your capture file !ith &ireshar"

./0 1))2 3 )(4Virtuali5ation 6 % ($7 6 ' # 7

!te& .: ,on"i/ure $!L001 and $!L002 to use 1ost Onl+ as t)e net#or* mode Fsin the settin menu8 chan e your net!or"in mode to ,ost *nly8 for both the DSLs Chec" the ,ost *nly settin s$ =ile G >references G .et!or" G Settin s /nable pac"et capture in your DSL6)(8 use hostonl/#$&a$ as your capture file$ =rom DSL6)(: >in DSL6)1 >in the host *S Stop the %ms Disable pac"et capture ?e%ie! your capture file !ith &ireshar" !te& 2: 3&load +our "iles to '' Compress all your directory !ith all the files Submit your files to BB

./0 1))2 3 )(4Virtuali5ation 6 % ($7 6 7 # 7

Das könnte Ihnen auch gefallen