modul praktikum jaringan komputer laboratorium jaringan ... · pdf filekelompok sb1 modul...
Embed Size (px)
TRANSCRIPT
MODUL
PRAKTIKUM JARINGAN KOMPUTER LABORATORIUM JARINGAN KOMPUTER
FAKULTAS TEKNIK ELEKTRO - UNISMA
Oleh :
Disetujui : ...... / ....... / ................ ./Malang
LABORATORIUM JARINGAN KOMPUTER JURUSAN
TEKNIK ELEKTRO - INFORMATIKA FAKULTAS TEKNIK UNIVERSITAS ISLAM MALANG
2009
NAMA
NRP
AS-PRAK
JURUSAN
KELOMPOK SB1
1
LABORATORIUM JARINGAN KOMPUTER JURUSAN TEKNIK ELEKTRO - INFORMATIKA
FAKULTAS TEKNIK UNIVERSITAS ISLAM MALANG 20092010
LAPORAN KEGIATAN Judul Praktikum : .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Nama Kelompok : ...............................................................................
......................................................................
......................................................................
......................................................................
......................................................................
................. ........... ... ................. ........... ... ........
Deskripsi Praktikum :
......................................................................
......................................................................
......................................................................
................. ........... ... ................. ........... ... ........
1. Alat dan Bahan
2. Langkah Kerja
3. Analisis
2
LABORATORIUM JARINGAN KOMPUTER JURUSAN TEKNIK ELEKTRO - INFORMATIKA FAKULTAS
TEKNIK UNIVERSITAS ISLAM MALANG 20092010
4. Kesimpulan
5. Saran
Diketahui Ass. praktikum
Malang, ..........................................
( )
3
LABORATORIUM JARINGAN KOMPUTER JURUSAN TEKNIK ELEKTRO - INFORMATIKA FAKULTAS
TEKNIK UNIVERSITAS ISLAM MALANG 20092010
MODUL I
ESTABLISHING A LOCAL AREA NETWORK
I. DESCRIPTION (MATERI )
1. Objectives
To establish a local Area Network consisting of three personal computers running the
Linux operating system, and a hub.
Physically connect computers (cabling)
Configure IP addresses using ifconfig
Manipulate routing table using route
2. Background Reading
Knowledge of network addressing standards and Linux system administration relating
to Local Area Networks is necessary for this lab. Online Linux documentation can be
found at www.tldp.org, also there are some other web site like ilmukomuter.com,
tebarilmu.org and linux.or.id. Specifically, read the man pages on ifconfig, route ,
traceroute and chkconfig. For information about network cabling and addressing,
Implementasi Jaringan Komputer dengan Linux Red Hat by Husni, Andi Publisher, is
recommended. If you have enough time, read books about CCNA (Cisco Certified
Network Associate) Exam Guide is a better.
II. BEGINNING ASSIGMENT (TUGAS PENDAHULUAN)
1. What do you khow about LAN? 2. Mention and Description the component of LAN ?
III. PRACTICUM (PRAKTIKUM)
A. Required Equipment (Alat dan Bahan)
1. Four PCs (with Linux OS), include PC Gateway. At LabSI, there are 12 PCs, so you can devide your class to 3 groups.
2. PCs should be equipped with Network Interface Cards (three PCs with one card but gateway PC must have 2 ethernet card)
3. One switch 4. One Router with Ethernet interface 5. Cables (UTP Cat 5e or 6)
B. PROCEDURE (Langkah-langkah praktikum)
1. Setup a physical LAN
a) First, determine which cables are necessary for the available hardware b) Insert one end of the cable into the Switch and the other end of the cable into the host
computer.
c) Connect all host computers to the Switch as in the figure below
http://www.tldp.org/http://ilmukomuter.com/http://tebarilmu.org/http://linux.or.id/
4
LABORATORIUM JARINGAN KOMPUTER JURUSAN TEKNIK ELEKTRO - INFORMATIKA FAKULTAS
TEKNIK UNIVERSITAS ISLAM MALANG 20092010
Sample Lab A
2. Host set-up (e.g. IP address and netmask) using iJconJig
a) iJconJig command usage for this part of the lab will be to configure network interface devices. This includes adding the IP address and the netmask for the host.
b) Boot each host machine and log on with your user-name. c) Open a new terminal on each host and log on as root.
$ su -
# password
d) Check network interface settings using iJconJig # ifconfig a
e) Verify that eth0 exists on each host by checking the output from above J) Set the ethernet interface at each host using iJconJig
This will assign an ip address and network mask to the host. The following is a sample.
For host 1: #ifconfig eth0 192.168.1.1 netmask 255.255.255.0
g) Verify communication among the machines by using the ping command. On host 1 ping the other two hosts. #ping 192.168.1.2
------- output ----
#ping 192.168.1.3
------- output ----
On host A run traceroute to the other hosts
#traceroute 192.168.1.2
o u t p u t
#traceroute 192.168.1.3
o u t p u t
h) Changes using iJconJig at this point are not permanent and will be lost on reboot. To make the configuration effective on reboot you need to edit the file /etc/sysconfig/networks-
scripts/ifcfg-eth0 to have the following settings.
# contents of ifcfg-eth0
DEVICE = eth0
BROADCAST = 192.168.1.255
IPADDR = 192.168.1.1
NETMASK = 255.255.255.0
NETWORK = 192.168.1.0
ONBOOT = yes
5
LABORATORIUM JARINGAN KOMPUTER JURUSAN TEKNIK ELEKTRO - INFORMATIKA FAKULTAS
TEKNIK UNIVERSITAS ISLAM MALANG 20092010
BOOTPROTO = none
i) Check that the network script has been added to the default init levels. # chkconfig --list
j) If the network script is not on add it using chkconfig. This command adds the network script to the current run level.
# chkconfig --add network
3. Manipulate routing tables using route
a) The route command is used to look at the hosts routing table and can be used to add or delete routes from the table. It has the following syntax: route add|del net|-host target [gateway] [metric] [device]
route manipulates the kernel's IP routing table. Its primary use is to set up static routes to
specific hosts or networks via an interface after it has been configured with the ifconfig
command. The command route with no arguments displays the routing table.
b) After the steps from part 2 the route to the network 192.168.1.0 will be in the routing table. Verify the network is in the routing table using the route command.
# route
c) To illustrate the use and functionality of the command route, we will delete an entry and add an entry to the table. Delete the network 192.168.1.0 using the route command.
# route del net 192.168.1.0 netmask 255.255.255.0
d) Check the routing table and verify that the network has been removed from the routing table.
# route
e) Verify the deleted network is no longer reachable. # ping 192.168.1.3
f) Add individual hosts to the routing table to allow communication. # route add host 192.168.1.2 dev eth0 #
route add host 192.168.1.3 dev eth0
g) Verify these hosts are in the routing table. # route
h) Use the ping command to verify communication among the machines has been restored. # ping 192.168.1.2
# ping 192.168.1.3
i) Notice the machines were reachable when either the network or the individual host was in the routing table. Note also that the exercise manipulating the routing table was
unnecessary since the ifconfig command places the network in the routing table for us.
C. QUESTION (PER TANYAAN)
1. Make a UTP cable to connect directly PC1 to PC2. You have to remember the formula 1-3 2-6 to make a crossover cable.
2. Read your references, mainly CCNA Study Guide or related books, and configure your Cisco Router, at least the address of Ethernet 0.
3. Please login to your Linux gateway. Use command ip route to configure the gateway,
so your three clients can connect to Router (Cisco) via Gateway. Note that Cisco Router
and three client are in different network (/30 and /24)
4. At home, use your Boson Network Designer to design network diagram of Engineering Faculty, University of Trunojoyo.
Note: You can use your Boson Network Designer dan Simulator to simulate above problem, but
there are not any Linux shell provided by Boson. Ask your Instructor or Network Engineer to get
network devices like switch, router, and PCs. These devices are available at LabSI, at least for the
first meeting of this lab.
6
LABORATORIUM JARINGAN KOMPUTER JURUSAN TEKNIK ELEKTRO - INFORMATIKA FAKULTAS
TEKNIK UNIVERSITAS ISLAM MALANG 20092010
MODUL II
CONNECTING TWO LANS USING ROUTER(S)
IV. DESCRIPTION (MA TERI)
1. Objectives
Connect two LANs using a router.
Setup LAN connections
Configure Minicom (underLinux) or Hyperterminal (under Windows)
Assign IP addresses to the router interfaces for network configuration.
2. Background Reading
Go to the Cisco website, or use the Cisco Sybex publication, and read about user mode, user
exec mode, configure terminal, and configure interface. Also, look at how to reset a password.
What register is used for the default configuration of the r