Belajar Linux.. Linux Networking Tools

Sabtu, 23 April 2011

 

Linux Networking Tools
Untuk menunjang kelancaran jaringan diperlukan linux networking tools, sehingga pengguna dapat melihat status jaringannya dengan bantuan beberapa perangkat lunak.
Untuk itu kita membutukan:
  1. Satu buah PC dengan system operasi Linux
  2. Siapkan kabel LAN, Switch.
    Caranya dapat Anda ikuti proses dibawah ini:

  1. Lepaskan kabel lakukan perintah mii-tool
Perintah mii-tool berfungsi untuk mengecek link sudah terhubung atau belum. Mii-tool (Media Independent Interface).
  1. Pasang kabel dan lakukan perintah mii-tool
Apabila sudah keluar eth0 artinya perangkat jaringan kita menggunakan eth0. 100base-TX-FD artinya kita menggunakan kecepatan 100Mbps dan FD adalah Full-Duplex. dan Link ok menandakan perangkat kita sudah siap. Apabila hasilnya bukan link ok artinya ada masalah dengan perangkat kita.
  1. Catat hasil perintah diatas menggunakan perintah #lspci
Apabila ditemukan Network controller atau Ethernet controller, artinya perangkat jaringan sudah siap digunakan.
4.      Rubah IP sesuai dengan DHCP. Jalankan 2 buah konsole (terminal), dimana terminal pertama melakukan ping terhadap alamat broadcast, sedangkan terminal yang satu lagi mencatat jenis koneksi dengan perintah “arp” .
root@lab3-laptop22:/home/lab3# gedit /etc/network/interfaces
gedit1.png
Simpan file diatas, Lalu restart dengan perintah dibawah ini:

root@lab3-laptop22:/home/lab3# /etc/init.d/networking restart

 * Reconfiguring network interfaces...                                                                          RTNETLINK answers: No such process

There is already a pid file /var/run/dhclient.eth0.pid with pid 2900

killed old client process, removed PID file

Internet Systems Consortium DHCP Client V3.1.3

Copyright 2004-2009 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:26:22:15:cf:6f

Sending on   LPF/eth0/00:26:22:15:cf:6f

Sending on   Socket/fallback

DHCPRELEASE on eth0 to 172.22.22.1 port 67

Internet Systems Consortium DHCP Client V3.1.3

Copyright 2004-2009 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:26:22:15:cf:6f

Sending on   LPF/eth0/00:26:22:15:cf:6f

Sending on   Socket/fallback

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3

DHCPOFFER of 172.22.22.109 from 172.22.22.1

DHCPREQUEST of 172.22.22.109 on eth0 to 255.255.255.255 port 67

DHCPACK of 172.22.22.109 from 172.22.22.1

bound to 172.22.22.109 -- renewal in 237728 seconds.
                                                                                                         [ OK ]
Coba lihat hasil pengubahan IP Address menggunakan perintah ifconfig:
root@lab3-laptop22:/home/lab3# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:26:22:15:cf:6f 

          inet addr:172.22.22.109  Bcast:172.22.22.255  Mask:255.255.255.0

          inet6 addr: fe80::226:22ff:fe15:cf6f/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:16 errors:0 dropped:0 overruns:0 frame:0

          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:3521 (3.5 KB)  TX bytes:5280 (5.2 KB)

          Interrupt:18

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:46 errors:0 dropped:0 overruns:0 frame:0

          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:3996 (3.9 KB)  TX bytes:3996 (3.9 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1e:65:73:ce:4e 

          inet6 addr: fec0::b:21e:65ff:fe73:ce4e/64 Scope:Site

          inet6 addr: 2002:ac0a:71:b:21e:65ff:fe73:ce4e/64 Scope:Global

          inet6 addr: fe80::21e:65ff:fe73:ce4e/64 Scope:Link

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:61360 errors:0 dropped:0 overruns:0 frame:0

          TX packets:2470 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:11110347 (11.1 MB)  TX bytes:251797 (251.7 KB)

Coba ping alamat broadcast yang tertampil pada ifconfig, caranya ketik perintah ping –b <alamat broadcast> :
root@lab3-laptop22:/home/lab3# ping -b 172.22.22.255

WARNING: pinging broadcast address

PING 172.22.22.255 (172.22.22.255) 56(84) bytes of data.

64 bytes from 172.22.22.1: icmp_seq=1 ttl=64 time=2.42 ms

64 bytes from 172.22.22.1: icmp_seq=2 ttl=64 time=1.17 ms

64 bytes from 172.22.22.1: icmp_seq=3 ttl=64 time=1.20 ms

64 bytes from 172.22.22.1: icmp_seq=4 ttl=64 time=1.24 ms

64 bytes from 172.22.22.1: icmp_seq=5 ttl=64 time=1.29 ms

64 bytes from 172.22.22.1: icmp_seq=6 ttl=64 time=1.21 ms

64 bytes from 172.22.22.1: icmp_seq=7 ttl=64 time=1.18 ms

64 bytes from 172.22.22.1: icmp_seq=8 ttl=64 time=1.16 ms

64 bytes from 172.22.22.1: icmp_seq=9 ttl=64 time=1.34 ms

64 bytes from 172.22.22.1: icmp_seq=10 ttl=64 time=1.19 ms

64 bytes from 172.22.22.1: icmp_seq=11 ttl=64 time=1.20 ms

64 bytes from 172.22.22.1: icmp_seq=12 ttl=64 time=1.20 ms

64 bytes from 172.22.22.1: icmp_seq=13 ttl=64 time=1.21 ms

64 bytes from 172.22.22.1: icmp_seq=14 ttl=64 time=1.24 ms

64 bytes from 172.22.22.1: icmp_seq=15 ttl=64 time=1.06 ms

64 bytes from 172.22.22.1: icmp_seq=16 ttl=64 time=1.25 ms

64 bytes from 172.22.22.1: icmp_seq=17 ttl=64 time=1.14 ms

64 bytes from 172.22.22.1: icmp_seq=18 ttl=64 time=1.11 ms

64 bytes from 172.22.22.1: icmp_seq=19 ttl=64 time=1.13 ms

64 bytes from 172.22.22.1: icmp_seq=20 ttl=64 time=1.15 ms

64 bytes from 172.22.22.1: icmp_seq=21 ttl=64 time=1.25 ms

64 bytes from 172.22.22.1: icmp_seq=22 ttl=64 time=1.11 ms

64 bytes from 172.22.22.1: icmp_seq=23 ttl=64 time=1.32 ms

64 bytes from 172.22.22.1: icmp_seq=24 ttl=64 time=1.14 ms
Ini hasilnya jika Anda ketik perintah arp:
lab3@lab3-laptop22:~$ arp

Address                  HWtype  HWaddress           Flags Mask            Iface

192.168.1.1             ether   00:18:f8:4a:4d:49   C                     wlan0

  1. Ganti IP PC menjadi 192.168.0.*/24, kemudian catat hasil dari perintah “ifconfig” dan “route”.
Pada praktek kali ini saya menggunakan IP Address 192.168.0.15
Coba ubah IP menggunakan perintah dibawah ini:
root@lab3-laptop22:/home/lab3# ifconfig eth0 192.168.0.15 netmask 255.255.255.0
Lalu catat hasil pada dari perintah ifconfig dibawah ini:
root@lab3-laptop22:/home/lab3# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:26:22:15:cf:6f 

          inet addr:192.168.0.15  Bcast:192.168.0.255  Mask:255.255.255.0

          inet6 addr: fe80::226:22ff:fe15:cf6f/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:455 errors:0 dropped:0 overruns:0 frame:0

          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:98495 (98.4 KB)  TX bytes:12862 (12.8 KB)

          Interrupt:18

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:47 errors:0 dropped:0 overruns:0 frame:0

          TX packets:47 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:4075 (4.0 KB)  TX bytes:4075 (4.0 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1e:65:73:ce:4e 

          inet addr:192.168.1.122  Bcast:192.168.1.255  Mask:255.255.255.0

          inet6 addr: fec0::b:21e:65ff:fe73:ce4e/64 Scope:Site

          inet6 addr: 2002:ac0a:71:b:21e:65ff:fe73:ce4e/64 Scope:Global

          inet6 addr: fe80::21e:65ff:fe73:ce4e/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:64619 errors:0 dropped:0 overruns:0 frame:0

          TX packets:2517 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:11463573 (11.4 MB)  TX bytes:259904 (259.9 KB)

Catat hasil pengubahan IP menggunakan perintah route:
root@lab3-laptop22:/home/lab3# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.1.0     *               255.255.255.0   U     2      0        0 wlan0

192.168.0.0    *               255.255.255.0   U     0      0        0 eth0


6.      Ganti IP PC menjadi DHCP, kemudian catat hasil dari perintah “ifconfig” dan “route”
Untuk mengubah IP PC menjadi DHCP Anda dapat langsung melakukan perintah restart atau mengubahnya pada /etc/network/interfaces.
 Pada praktek ini langsung menggunakan perintah restart seperti dibawah ini:
root@lab3-laptop22:/home/lab3# /etc/init.d/networking restart

 * Reconfiguring network interfaces...                                                                          RTNETLINK answers: No such process

There is already a pid file /var/run/dhclient.eth0.pid with pid 3288

killed old client process, removed PID file

Internet Systems Consortium DHCP Client V3.1.3

Copyright 2004-2009 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/



Listening on LPF/eth0/00:26:22:15:cf:6f

Sending on   LPF/eth0/00:26:22:15:cf:6f

Sending on   Socket/fallback

DHCPRELEASE on eth0 to 172.22.22.1 port 67

Ignoring unknown interface wlan0=wlan0.

Internet Systems Consortium DHCP Client V3.1.3

Copyright 2004-2009 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/



Listening on LPF/eth0/00:26:22:15:cf:6f

Sending on   LPF/eth0/00:26:22:15:cf:6f

Sending on   Socket/fallback

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3

DHCPOFFER of 172.22.22.109 from 172.22.22.1

DHCPREQUEST of 172.22.22.109 on eth0 to 255.255.255.255 port 67

DHCPACK of 172.22.22.109 from 172.22.22.1

bound to 172.22.22.109 -- renewal in 263636 seconds.
Gunakan ifconfig untuk melihat hasil dan IP PC telah berganti menjadi DHCP:
root@lab3-laptop22:/home/lab3# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:26:22:15:cf:6f 

          inet addr:172.22.22.109  Bcast:172.22.22.255  Mask:255.255.255.0

          inet6 addr: fe80::226:22ff:fe15:cf6f/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:144 errors:0 dropped:0 overruns:0 frame:0

          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:26492 (26.4 KB)  TX bytes:5162 (5.1 KB)

          Interrupt:18

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:48 errors:0 dropped:0 overruns:0 frame:0

          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:4173 (4.1 KB)  TX bytes:4173 (4.1 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1e:65:73:ce:4e 

          inet addr:192.168.1.122  Bcast:192.168.1.255  Mask:255.255.255.0

          inet6 addr: fec0::b:21e:65ff:fe73:ce4e/64 Scope:Site

          inet6 addr: 2002:ac0a:71:b:21e:65ff:fe73:ce4e/64 Scope:Global

          inet6 addr: fe80::21e:65ff:fe73:ce4e/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:66597 errors:0 dropped:0 overruns:0 frame:0

          TX packets:2531 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:11702154 (11.7 MB)  TX bytes:261258 (261.2 KB)
Gunakan perintah route untuk melihat hasilnya:
root@lab3-laptop22:/home/lab3# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

172.22.22.0          *               255.255.255.0   U     0      0        0 eth0

192.168.1.0          *               255.255.255.0   U     2      0        0 wlan0

link-local             *               255.255.0.0     U     1000   0        0 eth0

default         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0

default         172.22.22.1     0.0.0.0         UG    100    0        0 eth0

7.      Pastikan PC menggunakan IP DHCP, kemudian catat hasil dari ping, traceroute dan mtr pada target berikut
1. 10.252.13.90
2. 202.154.187.7
3. www.eepis-its.edu
4. www.yahoo.com

root@lab3-laptop22:/home/lab3# ping 10.252.13.90

PING 10.252.13.90 (10.252.13.90) 56(84) bytes of data.
Target diatas tidak berhasil di Ping karena tidak ada koneksi ke internet.

8.      Catat kondisi PC dengan perintah “netstat -nlptu”

root@lab3-laptop22:/home/lab3# netstat -nlptu

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name

tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1052/cupsd     

tcp6       0      0 ::1:631                 :::*                    LISTEN      1052/cupsd     

udp        0      0 0.0.0.0:68              0.0.0.0:*                           3540/dhclient3 

udp        0      0 0.0.0.0:68              0.0.0.0:*                           3331/dhclient  

udp        0      0 0.0.0.0:5353            0.0.0.0:*                           527/avahi-daemon: r

udp        0      0 0.0.0.0:59882           0.0.0.0:*                           527/avahi-daemon: r

9.      Buka halaman http://www.eepis-its.edu dengan web browser, kemudian sebelum koneksi selesai, buka terminal dan catat hasil koneksi dengan perintah “netstat -natu”

root@lab3-laptop22:/home/lab3# netstat -natu

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address           Foreign Address         State     

tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN    

tcp6       0      0 ::1:631                 :::*                    LISTEN    

udp        0      0 0.0.0.0:68              0.0.0.0:*                         

udp        0      0 0.0.0.0:68              0.0.0.0:*                          

udp        0      0 0.0.0.0:5353            0.0.0.0:*                         

udp        0      0 0.0.0.0:59882           0.0.0.0:*  

Hasil diatas merupakan perintah dari netstat-natu, namun tidak ada koneksi internet.

  1. ping ke komputer lain yang masih terdapat dalam 1 jaringan.
root@lab3-laptop22:/home/lab3# ping 172.22.22.101
PING 172.22.22.101 (172.22.22.101) 56(84) bytes of data.
64 bytes from 172.22.22.101: icmp_seq=1 ttl=64 time=2.68 ms
64 bytes from 172.22.22.101: icmp_seq=2 ttl=64 time=0.372 ms
64 bytes from 172.22.22.101: icmp_seq=3 ttl=64 time=0.364 ms
64 bytes from 172.22.22.101: icmp_seq=4 ttl=64 time=0.247 ms
64 bytes from 172.22.22.101: icmp_seq=5 ttl=64 time=0.285 ms
64 bytes from 172.22.22.101: icmp_seq=6 ttl=64 time=0.343 ms
64 bytes from 172.22.22.101: icmp_seq=7 ttl=64 time=0.356 ms
64 bytes from 172.22.22.101: icmp_seq=8 ttl=64 time=0.230 ms
64 bytes from 172.22.22.101: icmp_seq=9 ttl=64 time=0.253 ms
64 bytes from 172.22.22.101: icmp_seq=10 ttl=64 time=0.366 ms
64 bytes from 172.22.22.101: icmp_seq=11 ttl=64 time=0.363 ms
64 bytes from 172.22.22.101: icmp_seq=12 ttl=64 time=0.366 ms
64 bytes from 172.22.22.101: icmp_seq=13 ttl=64 time=0.296 ms
64 bytes from 172.22.22.101: icmp_seq=14 ttl=64 time=0.366 ms
64 bytes from 172.22.22.101: icmp_seq=15 ttl=64 time=0.244 ms
64 bytes from 172.22.22.101: icmp_seq=16 ttl=64 time=0.259 ms
^C
--- 172.22.22.101 ping statistics ---
16 packets transmitted, 16 received, 0% packet loss, time 15002ms
rtt min/avg/max/mdev = 0.230/0.461/2.681/0.576 ms
     
Tugas
1.    Lampirkan manual dari perintah: lscpi
root@lab3-laptop22:/home/lab3# lspci

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)

00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)

00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)

00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)

00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)

00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)

00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)

00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)

00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)

00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)

00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)

00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)

00:1f.2 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)

00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)

00:1f.5 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)

00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 03)

04:00.0 Network controller: Intel Corporation Wireless WiFi Link 5100

05:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5764M Gigabit Ethernet PCIe (rev 10)

07:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller

07:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller

07:00.3 System peripheral: JMicron Technology Corp. MS Host Controller

07:00.4 System peripheral: JMicron Technology Corp. xD Host Controller

08:00.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller (rev 40)

2.    Lampirkan manual dari :mii-tool
root@lab3-laptop22:/home/lab3# mii-tool

eth0: negotiated 100baseTx-FD flow-control, link ok

3.    Lampirkan manual dari: arp

lab3@lab3-laptop22:~$ arp

Address                  HWtype  HWaddress           Flags Mask            Iface

192.168.1.2             ether   00:18:f8:4a:4d:49   C                     wlan0

4.    Lampirkan manual dari: ifconfig
root@lab3-laptop22:/home/lab3# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:26:22:15:cf:6f 

          inet addr:172.22.22.109  Bcast:172.22.22.255  Mask:255.255.255.0

          inet6 addr: fe80::226:22ff:fe15:cf6f/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:1039 errors:0 dropped:0 overruns:0 frame:0

          TX packets:130 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:159828 (159.8 KB)  TX bytes:24922 (24.9 KB)

          Interrupt:18

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:71 errors:0 dropped:0 overruns:0 frame:0

          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:6517 (6.5 KB)  TX bytes:6517 (6.5 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1e:65:73:ce:4e 

          inet6 addr: fec0::b:21e:65ff:fe73:ce4e/64 Scope:Site

          inet6 addr: 2002:ac0a:71:b:21e:65ff:fe73:ce4e/64 Scope:Global

          inet6 addr: fe80::21e:65ff:fe73:ce4e/64 Scope:Link

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:71498 errors:0 dropped:0 overruns:0 frame:0

          TX packets:3283 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:12380341 (12.3 MB)  TX bytes:340885 (340.8 KB)

5.    Lampirkan manual dari : route
root@lab3-laptop22:/home/lab3# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

172.22.22.0     *               255.255.255.0   U     0      0        0 eth0

link-local      *               255.255.0.0     U     1000   0        0 eth0

default         172.22.22.1     0.0.0.0         UG    100    0        0 eth0
6.    Lampirkan manual dari :ping
root@lab3-laptop22:/home/lab3# ping

Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline]

            [-p pattern] [-s packetsize] [-t ttl] [-I interface or address]

            [-M mtu discovery hint] [-S sndbuf]

            [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination

7.    Lampirkan manual dari : traceroute
root@lab3-laptop22:/home/lab3# traceroute

The program 'traceroute' can be found in the following packages:

 * traceroute

 * traceroute-nanog

Try: apt-get install <selected package>

8.    Lampirkan manual dari: mtr
root@lab3-laptop22:/home/lab3# mtr

                               My traceroute  [v0.75]

lab3-laptop22 (::)                                                              Thu Apr 21 12:59:46 2011

Keys:  Help   Display mode   Restart statistics   Order of fields   quit

                                                                Packets               Pings

 Host                                                         Loss%   Snt   Last   Avg  Best  Wrst StDev

  1. ::1                                                        0.0%    35    0.1   0.1   0.1   0.1   0.0

9.    Lampirkan manula dari netstat
root@lab3-laptop22:/home/lab3# netstat

unix  3      [ ]         STREAM     CONNECTED     7179     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     7178    

unix  2      [ ]         DGRAM                    7177    

unix  3      [ ]         STREAM     CONNECTED     7135     @/tmp/gdm-session-kJvlYvqN

unix  3      [ ]         STREAM     CONNECTED     7134    

unix  3      [ ]         STREAM     CONNECTED     7131     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     7130    

unix  2      [ ]         DGRAM                    7129    

unix  3      [ ]         STREAM     CONNECTED     6601     @/tmp/.X11-unix/X0

unix  3      [ ]         STREAM     CONNECTED     6600    

unix  3      [ ]         STREAM     CONNECTED     6587     @/tmp/.X11-unix/X0

unix  3      [ ]         STREAM     CONNECTED     6586    

unix  3      [ ]         STREAM     CONNECTED     6484     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     6483    

unix  3      [ ]         STREAM     CONNECTED     6411     @/tmp/.X11-unix/X0

unix  3      [ ]         STREAM     CONNECTED     6410    

unix  3      [ ]         STREAM     CONNECTED     5805     /var/run/acpid.socket

unix  3      [ ]         STREAM     CONNECTED     5804    

unix  2      [ ]         DGRAM                    4921    

unix  3      [ ]         STREAM     CONNECTED     4910     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     4909    

unix  3      [ ]         STREAM     CONNECTED     4868     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     4867    

unix  3      [ ]         STREAM     CONNECTED     4842     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     4841    

unix  2      [ ]         DGRAM                    4830    

unix  3      [ ]         STREAM     CONNECTED     4827     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     4826    

unix  2      [ ]         DGRAM                    4633    

unix  2      [ ]         DGRAM                    4620    

unix  3      [ ]         STREAM     CONNECTED     4354     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     4353    

unix  2      [ ]         DGRAM                    4351    

unix  2      [ ]         DGRAM                    3215    

unix  3      [ ]         STREAM     CONNECTED     3210     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     3209    

unix  3      [ ]         STREAM     CONNECTED     3202     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     3201    

unix  3      [ ]         STREAM     CONNECTED     3195     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     3194    

unix  2      [ ]         DGRAM                    3191    

unix  3      [ ]         STREAM     CONNECTED     3184     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     3183    

unix  3      [ ]         STREAM     CONNECTED     3178    

unix  3      [ ]         STREAM     CONNECTED     3177    

unix  2      [ ]         DGRAM                    3174    

unix  3      [ ]         STREAM     CONNECTED     3134     /var/run/dbus/system_bus_socket

unix  3      [ ]         STREAM     CONNECTED     3133    

unix  3      [ ]         STREAM     CONNECTED     3132    

unix  3      [ ]         STREAM     CONNECTED     3131    

unix  3      [ ]         DGRAM                    2960    

unix  3      [ ]         DGRAM                    2959    

unix  3      [ ]         STREAM     CONNECTED     2909     @/com/ubuntu/upstart

 kesimpulannya: belajar linux networking asyik ko.. hehe..


CIDR Classless Inter-Domain Routing

Kamis, 21 April 2011

Classless Inter-Domain Routing (disingkat menjadi CIDR) adalah sebuah cara alternatif untuk mengklasifikasikan alamat-alamat IP berbeda dengan sistem klasifikasi ke dalam kelas A, kelas B, kelas C, kelas D, dan kelas E. Disebut juga sebagai supernetting. CIDR merupakan mekanisme routing yang lebih efisien dibandingkan dengan cara yang asli, yakni dengan membagi alamat IP jaringan ke dalam kelas-kelas A, B, dan C. 
Masalah yang terjadi pada sistem yang lama adalah bahwa sistem tersebut meninggalkan banyak sekali alamat IP yang tidak digunakan. Sebagai contoh, alamat IP kelas A secara teoritis mendukung hingga 16 juta host komputer yang dapat terhubung, sebuah jumlah yang sangat besar. Dalam kenyataannya, para pengguna alamat IP kelas A ini jarang yang memiliki jumlah host sebanyak itu, sehingga menyisakan banyak sekali ruangan kosong di dalam ruang alamat IP yang telah disediakan. CIDR dikembangkan sebagai sebuah cara untuk menggunakan alamat-alamat IP yang tidak terpakai tersebut untuk digunakan di mana saja. Dengan cara yang sama, kelas C yang secara teoritis hanya mendukung 254 alamat tiap jaringan, dapat menggunakan hingga 32766 alamat IP, yang seharusnya hanya tersedia untuk alamat IP kelas B.
pada hakekatnya semua pertanyaan tentang subnetting akan berkisar di empat permasalahan yaitu : Jumlah Subnet, Jumlah Host per Subnet, Blok subnet, dan Alamat Host-Broadcast.”
Tidak semua subnet mask bisa dugunakan untuk melakukan subnetting. oleh sebab itu sebelum kita praktek penghitungan metode ini, kita harus tahu dulu Subnet Mask berapa sajakah yang bisa digunakan untuk melakukan subnetting, yaitu :
subnet mask yang bisa digunakan untuk melakukan subnetting pun berbeda-beda mengikuti kelas-kelasnya yaitu :
kelas C : /25 sampai /30 (/25, /26, /27, /28, /29, /30)
kelas B : /17 sampai /30 (/17, /18, /19, /20, /21, /22, /23, /24, /25, /26, /27, /28, /29, /30)
kelas A : sampai subnet mask dari /8 sampai /30 (/8,/9,/10,/11,/12,/13,/14,/15,/16,/17,/18,/19,/20,/21,/22,/23,/24,/25,/26,/27,/28,/29,/30)

Subnetting pada IP ADDRESS kelas C
subnet mask yang bisa digunakan untuk melakukan subnetting adalah /25 sampai /30
misal network address 192.168.1.0/26.
kita akan cari tahu Jumlah subnet, Jumlah Host per subnet, Blok subnet, dan alamat Host dan broadcast yang valid.
analisa-nya seperti ini:
192.168.1.0 adalah kelas C (karena oktet pertama dalam range 192-223)
/26=255.255.255.192= 11111111.11111111.11111111.11000000

karena kelas C, kita akan bermain di oktet terakhit.
Jumlah subnet = 2 pangkat x, (x adalah banyaknya binary 1 pada oktet terakhir subnet mask)
jadi jumlah subnet adalah 2 pangkat 2 = 4 subnet
Jumlah Host per subnet = 2 pangkat y dikurangi 2 (y adalah jumlah binary 0 pada oktet terakhir subnet mask)
jadi jumlah Host per subnet adalah 2 pangkat 6 dikurangi 2 = 62 Host
Blok subnet = 255 dikurangi angka desimal oktet terakhir subnet mask
blok subnet-nya = 256-192 = 64, 64+64 = 128, 128+64 = 192
jadi jumlah seluruh blok subnet = 0,64,128,192
blok subnet ke 1 = 192.168.1.0
blok subnet ke 2 = 192.168.1.64
blok subnet ke 3 = 192.168.1.128
blok subnet ke 4 = 192.168.1.192

Host dan broadcast yang valid sebagai berikut:
-host pertama adalah satu angka setelah subnet
-host terakhir adalah satu angka sebelum broadcast
-broadcast adalah satu angka sebelum subnet berikutnya
lebih jelasnya perhatikan tabel dibawah ini :

Subnetting pada IP ADDRESS kelas B
subnet mask yang bisa digunakan untuk melakukan subnetting adalah /17 sampai /30
penghitungan CIDR /17 sampai /24 berbeda dengan perhitungan CIDR /25 sampai /30
CIDR /17 sampai /24 perhitunganya sama persis dengan subnetting kelas C, cuma permainannya pada oktet ke 3.
sedangkan CIDR /25 sampai /30, blok subnet kita mainkankan di oktet ke 4 (seperti kelas C) namun setelah oktet ke 3 berjalan maju dari 0,1,2,3,4,5 dan seterusnya
kita coba menghitung 2 soal yang menggunakan CIDR /17 sampai /24 dan CIDR /25 sampai /30
misal 172.16.0.0/18 dan 172.16.0.0/25
Yang pertama 172.16.0.0/18
analisa-nya :
172.16.0.0 = kelas B (karena oktet pertama dalam range 128-191)
/18 = 255.255.192.0 = 11111111.11111111.11000000.00000000

CIDR /17 sampai /24 perhitunganya sama persis dengan subnetting kelas C, cuma permainannya pada oktet ke 3.
karena CIDR yang di pakai dalam range /17 sampai /24, blok subnet kita mainkan di oktet ke tiga
Jumlah subnet = 2 pangkat x, (x adalah banyaknya binary 1 pada 2 oktet terakhir subnet mask)
jadi jumlah subnet adalah 2 pangkat 2 = 4 subnet
Jumlah Host per subnet = 2 pangkat y dikurangi 2 (y adalah jumlah binary 0 pada 2 oktet terakhir subnet mask)
jadi jumlah Host per subnet adalah 2 pangkat 14 dikurangi 2 = 16.382 Host
Blok subnet = 255 dikurangi angka desimal oktet ke 3 subnet mask
blok subnet-nya = 256-192 = 64, 64+64 = 128, 128+64 = 192
jadi jumlah seluruh blok subnet = 0,64,128,192
blok subnet ke 1 = 172.16.0.0
blok subnet ke 2 = 172.16.0.64
blok subnet ke 3 = 172.16.0.128
blok subnet ke 4 = 172.16.0.192
Host dan broadcast yang valid sebagai berikut:
lebih jelasnya perhatikan tabel dibawah ini :
saya ingatkan sekali lagi, blok subnet kita mainkan di oktet ke 3
permainan host ID tetap di oktet terakhir

Contoh yang kedua 172.16.0.0/25
analisa-nya :
172.16.0.0 = kelas B (karena oktet pertama dalam range 128-191)
/25 = 255.255.255.128 = 11111111.11111111.11111111.10000000

Karena CIDR yang di pakai dalam range /25 sampai /30, blok subnet kita mainkan di oktet ke 2, namun setelah oktet ke tiga berjalan maju 1,2,3,4 dan seterusnya
Jumlah subnet = 2 ^ x, (x adalah banyaknya binary 1 pada dua oktet terakhir subnet mask)
jadi jumlah subnet adalah 2 pangkat 9 = 512 subnet
jadi jumlah Host per subnet adalah 2 pangkat 7 dikurangi 2 = 126 Host
Blok subnet = 255 dikurangi angka desimal oktet ke 3 subnet mask
jadi blok subnet-nya = 256-128 = 128
jadi jumlah seluruh blok subnet = 0,128 (namun setelah oktet ke tiga berjalan maju 0,1,2,3,4, sampai 255)
ok, kita majukan dulu oktet ketiga.
172.16.0.x
172.16.1.x
172.16.2.x
172.16.3.x
sampai…
172.16.255.x
setelah oktet ke 3 maju, sekarang kita masukkan blok subnet yaitu angka 0 dan 128.
172.16.0.0 dan 172.16.0.128
172.16.1.0 dan 172.16.1.128
172.16.2.0 dan 172.16.2.128
172.16.3.0 dan 172.16.3.128
172.16.255.0 dan 172.16.255.128
————– + —————— +
256 subnet dan 256 subnet ========= 512 subnet
List-nya seperti ini:
Blok Subnet ke 1 = 172.16.0.0
Blok Subnet ke 2 = 172.16.0.128
Blok Subnet ke 3 = 172.16.1.0
Blok Subnet ke 4 = 172.16.1.128
Blok Subnet ke 5 = 172.16.2.0
Blok Subnet ke 6 = 172.16.2.128
Blok Subnet ke 7 = 172.16.3.0
Blok Subnet ke 8 = 172.16.3.128
Sampai…
Blok Subnet ke 511 = 172.16.255.0
Blok Subnet ke 512 = 172.16.255.128
Host dan broadcast yang valid sebagai berikut:

Subnetting kelas A
Subnet mask yang bisa digunakan untuk melakukan subnetting pada kelas A adalah semua subnet mask mulai /8 sampai /30.
sebenarnya konsepnya sama dengan kelas C dan B. yang membedakan hanya di OKTET mana kita mainkan blok subnet.
kelas C di oktet ke 4 (terakhir)=kelas B di oktet ke 3 dan 4 (2 oktet terakhir)
kelas A di oktet ke 2,3 dan 4 (3 oktet terakhir)
misal 10.0.0.0/16
analisa-nya:
10.0.0.0
kelas A (karena oktet pertama dalam range 1-126)
/16 = 255.255.0.0 = 11111111.11111111.00000000.00000000

Jumlah subnet = 2 pangkat 8 = 256
Jumlah Host per subnet = 2 pangkat 16 dikurangi 2 = 65.534 host
blok subnet = 256 dikurangi 255 = 1
jadi keseluruhan blok-nya = 0,1,2,3,4 sampai 255
lebih jelasnya sebagai berikut:
Blok Subnet prtama = 10.0.0.0
Blok Subnet ke dua = 10.1.0.0
Blok Subnet ke tiga = 10.2.0.0
Blok Subnet kempat = 10.3.0.0
sampai…
Blok Subnet ke 254 = 10.254.0.0
Blok Subnet ke 256 = 10.255.0.0
alamat Host dan broadcase yang valid
referensi**


Wireless Distribution System

Senin, 18 April 2011

Jaringan WLAN AccessPoint - AccessPoint  

Pengertian WDS (Wireless Distribution System)

 

Sebuah Wireless Distribution System (WDS) adalah suatu sistem yang memungkinkan interkoneksi nirkabel jalur akses dalam IEEE 802.11 jaringan. Hal ini memungkinkan jaringan nirkabel yang akan diperluas menggunakan beberapa jalur akses tanpa memerlukan kabel tulang punggung untuk menghubungkan mereka, seperti yang secara tradisional diperlukan. Terkemuka WDS atas keuntungan dari solusi lain adalah bahwa ia melindungi alamat-alamat MAC klien frame di link antara jalur akses. Sebuah jalur akses dapat berupa utama, relay atau remote base station. Sebuah stasiun basis utama biasanya tersambung ke kabel Ethernet.Sebuah base station relay relay data antara BTS terpencil, klien nirkabel atau stasiun relay baik utama atau base station relay lain. Sebuah stasiun pangkalan terpencil menerima koneksi dari klien nirkabel dan melewati mereka pada relay atau stasiun utama. Sambungan antara "klien" yang dibuat dengan menggunakan alamat MAC daripada dengan menentukan IP tugas.

Semua base station dalam Sistem Distribusi Nirkabel harus dikonfigurasi untuk menggunakan saluran radio yang sama, metode enkripsi (none, WEP atau WPA) dan kunci enkripsi. Mereka dapat dikonfigurasi untuk berbagai service set identifier. WDS juga mensyaratkan bahwa setiap base station dapat dikonfigurasi untuk meneruskan kepada orang lain dalam sistem.

WDS dapat juga disebut sebagai modus repeater karena muncul untuk menjembatani dan menerima klien nirkabel pada waktu yang sama (tidak seperti menjembatani tradisional). Perlu dicatat, bahwa throughput dalam metode ini dibelah dua untuk semua klien yang terhubung tanpa kabel.

Teknik WDS..

WDS mungkin tidak kompatibel antara produk yang berbeda (bahkan kadang-kadang dari vendor yang sama) karena tidak bersertifikat oleh Wi-Fi Alliance.

WDS dapat digunakan untuk menyediakan dua mode wireless AP-to-AP konektivitas:

Wireless Bridging di mana AP WDS hanya berkomunikasi dengan satu sama lain dan tidak mengizinkan klien nirkabel atau Stasiun (STA) untuk mengaksesnya Wireless AP Mengulangi di mana berkomunikasi satu sama lain dan dengan nirkabel Stas.

Dua kerugian untuk menggunakan WDS adalah:

- Nirkabel maksimum throughput efektif adalah halved setelah retransmission pertama (hop) yang dibuat. Sebagai contoh, dalam kasus dua router terhubung melalui WDS, dan komunikasi dilakukan antara komputer yang tersambung ke router A dan sebuah laptop yang tersambung tanpa kabel dengan menggunakan router B jalur akses, throughput ini dibelah dua, karena Router B harus Retransmit informasi selama komunikasi dari kedua belah pihak. Namun, dalam hal komunikasi antara komputer yang tersambung ke router A dan komputer yang terhubung ke Router B, throughput tidak dibelah dua karena tidak perlu Retransmit informasi.
- Ditetapkan secara dinamis dan memutar kunci enkripsi biasanya tidak didukung dalam WDS sambungan. Ini berarti bahwa dinamika Wi-Fi Protected Access (WPA) dan tugas kunci dinamis teknologi dalam banyak kasus tidak dapat digunakan, meskipun WPA menggunakan pra-berbagi kunci adalah mungkin. Hal ini disebabkan tidak adanya standardisasi dalam bidang ini, yang dapat diselesaikan dengan mendatang 802.11s standar. Akibatnya hanya statis kunci WEP atau WPA dapat digunakan dalam koneksi WDS, termasuk Stas yang mengasosiasikan ke WDS AP yang berulang. Apple baru-baru ini memungkinkan BTS WDS dengan WPA, meskipun dalam beberapa kasus diperlukan update firmware. Firmware untuk SAP36g Super Renasis Access Point dan sebagian besar pihak ketiga firmware untuk Linksys WRT54G (S) / GL mendukung enkripsi AES WPA2-PSK menggunakan Mixed Mode keamanan, dan enkripsi TKIP menggunakan WPA-PSK, ketika beroperasi dalam modus WDS. Namun, modus ini mungkin tidak kompatibel dengan unit lain berjalan saham atau firmware alternatif.


Followers

Wahyuni Eka Sari. Diberdayakan oleh Blogger.

What's Up Bebh??