Catatan Dan Sharing Information

Saturday, October 15, 2016

Konfigurasi Router On Stick - Cisco Packet Tracer



RBJ
Title
:
Konfigurasi Router On Stick
Issue Date
:
13 Oktober 2016
Prepare by
:
Agung Ma’ruf
Teacher
:
Suyatno, S.Kom



SMK AL-BAHRI KOTA BEKASI


ROUTER ON STICK

Untuk menghubungkan vlan yang berbeda, dibutuhkan perangkat layer 3 baik itu router atau switch layer 3. Cara pertama adalah dengan menggunkan  1 router melalui 1 interface. Teknik ini diisebut router on stick.
Kekeurangan  dari teknik ini akan jadi  colustion domain karena hanya menggunakan 1 interface.
Ada 2 Trunking protocol yang bisa digunakan :
a. ISL = Cisco Proprietary
b. IEE 80211Q (dot1Q)

konfigurasi 2 switch sudah saya bahas di postingan saya sebelumnya. Jika konfigurasi Vlan 2 switch sudah paham. Sekarang ditambah 1 router, dan cukup menambahkan script ini pada router. 

Router(config)#interface FastEthernet 0/0.10


Router(config-subif)#interface FastEthernet 0/0.10


Router(config-subif)#ip address 100.100.2.1 255.255.255.0


Router(config)#interface FastEthernet 0/0.20


Router(config-subif)#interface FastEthernet 0/0.20


Router(config-subif)#ip address 200.200.2.1 255.255.255.0


Kemudian cek dengan perintah:


Router# sh ip int br

Berikut hasil pingnya :  


Konfigurasi Vlan 2 Switch - Cisco Packet Tracer



RBJ
Title
:
Konfigurasi Vlan 2 Switch
Issue Date
:
11 Oktober 2016
Prepare by
:
Agung Ma’ruf
Teacher
:
Suyatno, S.Kom



SMK AL-BAHRI KOTA BEKASI


VLAN TRUNK 

Cara Konfigurasi Vlan Trunk

Trunk berfungsi untuk melewatkan traffic VLAN dari switch yang berbeda, antara switch 1 ke switch 2 yang terhubung. Pc0, pc1, pc 2 dan  pc3 ini masuk VLAN 2. Pc 4, pc5, pc6, pc7 ini termasuk vlan 3.
Konfigurasi Switch0 :
Switch>enable
Switch#vlan database
Switch(vlan)#vlan 100 name Guru
VLAN 100 added:
    Name: Guru
Switch(vlan)#vlan 200 name Siswa
VLAN 200 added:
    Name: Siswa
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface fastEthernet0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 100
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 100
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 200
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 200
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/5
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up
Switch(config-if)#no shutdown
Switch(config-if)#do write
Building configuration..
[OK]

Konfigurasi Switch1 :

Switch>enable
Switch#vlan database
Switch(vlan)#vlan 100 name Guru
VLAN 100 added:
    Name: Guru
Switch(vlan)#vlan 200 name Siswa
VLAN 200 added:
    Name: Siswa
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface fastEthernet0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 100
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 100
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 200
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 200
Switch(config-if)#no shutdown
Switch(config-if)# interface fastEthernet0/5
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up
Switch(config-if)#no shutdown
Switch(config-if)#do write
Building configuration..
[OK]

Berikut hasil pingnya :