Tempat belajar Teknologi Informasi dan Ilmu Komputer belajar ilmu komputer dan teknologi informasi, Internet, Networking, Intranet, Anti virus, SEO, Blogger

Mengenal Layer 2 & Layer 3, dalam satu rangkaian network

Buat yang lagi belajar network, ini satu lagi share info mengenai kolaborasi Layer 2 (Datalink) dan Layer 3 (Network) yg di applikasikan dalam sebuah Router. kebetulan router yg dipakai contoh adalah Cisco Router 1841 dengan ditambah module card HWIC-4ESW.

Lagi-2x Packet Tracer4 yg akan mensimulasikan, so..gak perlu beli dulu cisco devicenya…mahal booo..:)361">

Sedikit mengingatkan, secara default router 1841 hanya dilengkapi dengan 1 port console, 1 port Aux, dan 2 port FastEthernet. untuk module HWIC-4ESW harus kita tambahkan sendiri dengan cara 220;drag-drop” pada module yg kosong. tentunya posisi power switch harus OFF terlebih dahulu (liat Gambar. 1, dan Gambar.2)

Gambar.1                    Gambar.2

Sebagai contoh kasus, berikut ini Topology yg akan kita gunakan

man; font-size:12pt”>

High Light pada topology ini adalah :

1. Menggunakan Router untuk menghubungkan tiga  IP Network yang berbeda, tetapi masih menggunakan VLAN yang sama, yaitu VLAN 1
2. Ada 3 bagian yg harus di lakukan configurasi, yaitu : Router, Switch dan PC
3. Koneksi Router dengan Switch, jika terhubung dengan interface Fa0/0 atau Fa0/1 Cable connectionnya menggunakan Straight.
4. Koneksi router dengan switch, jika terhubung dengan HWIC-4ESW maka cable connectionnya harus menggunakan Cross Cable. hal ini dikarenakan HWIC-4ESW adalah L2
5. Process Pengalamatan IP pada interface HWIC-4ESW harus menggunakan VLAN sebagai konektifitasnya

Berikut ini konfigurasi pada masing-masing device :

1. Router Configuration :

— System Configuration Dialog —

Continue with configuration dialog? [yes/no]: n

Press RETURN to get started!

Router>ena
Router#sh ip int brief
Interface              IP-Address      OK? Method Status                Protocol
FastEthernet0/0        unassigned      YES manual administratively down down
FastEthernet0/1        unassigned      YES manual administratively down down
FastEthernet0/0/0      unassigned      YES manual administratively down down
FastEthernet0/0/1      unassigned      YES manual administratively down down
FastEthernet0/0/2      unassigned      YES manual administratively down down
FastEthernet0/0/3      unassigned      YES manual administratively down down
Vlan1                  unassigned      YES manual administratively down down
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/0

Router(config-if)#ip add 192.168.0.1 255.255.255.0

Router(config-if)#no sh

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int fa0/1

Router(config-if)#ip add 192.168.1.1 255.255.255.0

Router(config-if)#no sh

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#int vlan 1

Router(config-if)#ip add 192.168.2.1 255.255.255.0

Router(config-if)#no sh

%LINK-5-CHANGED: Interface Vlan1, changed state to up
Router(config-if)#exit
Router(config)#int fa0/0/0
Router(config-if)#no sh

%LINK-5-CHANGED: Interface FastEthernet0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Destination filename [startup-config]?
Building configuration…
[OK]
Router#sh ip int brief
Interface              IP-Address      OK? Method Status                Protocol
FastEthernet0/0        192.168.0.1     YES manual up                    up
FastEthernet0/1        192.168.1.1     YES manual up                    up
FastEthernet0/0/0      unassigned      YES manual up                    up
FastEthernet0/0/1      unassigned      YES manual administratively down down
FastEthernet0/0/2      unassigned      YES manual administratively down down
FastEthernet0/0/3      unassigned      YES manual administratively down down
Vlan1                  192.168.2.1     YES manual up                    up

Router#

2. Switch Configuration :

Ada 3 Switch yang harus di configure untuk topology ini :

SWITCH KE-1 :

Switch>ena
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int vlan 1

Switch(config-if)#ip add 192.168.0.2 255.255.255.0

Switch(config-if)#no sh
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config-if)#exit
Switch(config)#ip def 192.168.0.1

Switch(config)#host Switch#1

Switch#1(config)#ena pass cisco
Switch#1(config)#line vty 0 4
Switch#1(config-line)#pass cisco
Switch#1(config-line)#login
Switch#1(config-line)#exit
Switch#1(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#1#wr
Destination filename [startup-config]?
Building configuration…
[OK]
Switch#1#

SWITCH KE-2 :

Switch>ena
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int vlan 1

Switch(config-if)#ip add 192.168.1.2 255.255.255.0

Switch(config-if)#no sh

%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config-if)#exit
Switch(config)#ip def 192.168.1.1

Switch(config)#host Switch#2
Switch#2(config)#ena pass cisco
Switch#2(config)#line vty 0 4
Switch#2(config-line)#pass cisco
Switch#2(config-line)#login
Switch#2(config-line)#exit
Switch#2(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#2#wr
Destination filename [startup-config]?
Building configuration…
[OK]
Switch#2#

SWITCH KE-3 :

Switch>ena
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int vlan 1

Switch(config-if)#ip add 192.168.2.2 255.255.255.0

Switch(config-if)#no sh

%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config-if)#exit
Switch(config)#ip def 192.168.2.1

Switch(config)#host Switch#3
Switch#3(config)#ena pass cisco
Switch#3(config)#line vty 0 4
Switch#3(config-line)#pass cisco
Switch#3(config-line)#login
Switch#3(config-line)#exit
Switch#3(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#3#wr
Destination filename [startup-config]?
Building configuration…
[OK]
Switch#3#

3. PC Configuration :

Untuk PC konfigurasi hanya terdapat pada : IP Address, Subnet Mask dan Gateway saja.

Gambar.4 – Setting IP Address         Gambar.5 – Setting Gateway


Gambar.7 – Ping Test PC to Switch



- Untuk Setting Semua PC (PC1 ~ PC15) dapat dilakukan dengan cara yg sama, hanya IP Address, dan Gateway nya saja yg berbeda

Jika Secara Keseluruhan sudah diconfigure atau disetting, maka semua device akan bisa terhubung satu dengan lainnya, PC-SWITCH-ROUTER

Gambar.7 (Sebelum disetting)             Gambar.8 (Sesudah disetting)


Gambar.9 – Ping Test  PC beda IP Network


PC-15 (192.168.2.11) memungkinkan untuk melakukan hubungan dengan PC6 (192.168.1.10) atau pun PC1 (192.168.0.10).

Dengan menggunakan IP network yang berbeda dalam VLAN yang sama (VLAN 1), masing-2x pc dalam IP network berbeda tersebut dapat melakukan komunikasi satu dengan lainnya.


Share and Enjoy:
  • Print
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • Live
  • Twitter
  • Yahoo! Bookmarks
  • Digg
  • PDF
  • RSS
  • Technorati
  • LinkedIn
  • MisterWong
  • Reddit
  • StumbleUpon
Share This Post
Networking

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

2 Responses to “Mengenal Layer 2 & Layer 3, dalam satu rangkaian network”

Leave Comment

(required)

(required)


Enter URL:
Free SEO Tools
44 queries in 0.321 seconds