Pertama kita buat topologinya seperti ini
Switch#en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/2-3
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport moaccess
Switch(config-if-range)#switchport moaccess
Switch(config-if-range)#switchport access vlan 50
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Switch(config)#int range fa 0/4-5
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 60
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Langkah selanjutnya kita seting ROUTER 0 untuk memberi IP pada Gig0/0 dan Gig0/1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int 0/0
^
% Invalid input detected at '^' marker.
Router(config)#int gig 0/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#int gig 0/1
Router(config-if)#ip add 192.168.10.5 255.255.255.252
Router(config-if)#no shut
Jika sudah kita kasih ip di semua PC
selanjutnya kita akan setting SWITCH 1 dan SWITCH 2 untuk membuat Vlan
Switch#enSwitch#vlan daSwitch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 50 name LUTHFIVLAN 50 added: Name: LUTHFISwitch(vlan)#vlan 60 name SONUVLAN 60 added: Name: SONUSwitch(vlan)#exAPPLY completed.Exiting....
Selanjutnya, kita akan membagi pc tersebut ke dalam dua vlan yaitu vlan 50 dan vlan 60. Buka SWITCH 1 dan tuliskan :
Switch#en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa 0/2-3
Switch(config-if-range)#en
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode a
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 50
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Switch(config)#int range fa 0/4-5
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode as
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 60
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Lalu Buka SWITCH 2 untuk membagi pc tersebut ke dalam vlan yang sama pada SWITCH 1
Switch#enSwitch#vlan daSwitch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 50 name LUTHFIVLAN 50 added: Name: LUTHFISwitch(vlan)#vlan 60 name SONUVLAN 60 added: Name: SONUSwitch(vlan)#exAPPLY completed.Exiting....
Selanjutnya, kita akan membagi pc tersebut ke dalam dua vlan yaitu vlan 50 dan vlan 60. Buka SWITCH 1 dan tuliskan :
Switch#en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa 0/2-3
Switch(config-if-range)#en
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode a
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 50
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Switch(config)#int range fa 0/4-5
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode as
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 60
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Switch#en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/2-3
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport moaccess
Switch(config-if-range)#switchport moaccess
Switch(config-if-range)#switchport access vlan 50
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Switch(config)#int range fa 0/4-5
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 60
Switch(config-if-range)#no shut
Switch(config-if-range)#ex
Langkah selanjutnya kita seting ROUTER 0 untuk memberi IP pada Gig0/0 dan Gig0/1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int 0/0
^
% Invalid input detected at '^' marker.
Router(config)#int gig 0/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#int gig 0/1
Router(config-if)#ip add 192.168.10.5 255.255.255.252
Router(config-if)#no shut
Lanjut Kemudian dilanjutkan dengan konfigurasi router seperti di bawah ini :
Router(config)#int gig 0/1.50
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1.50, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.50, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 50
Router(config-subif)#ip add 192.168.50.129 255.255.255.128
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#int gig 0/1.60
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1.60, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.60, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 60
Router(config-subif)#ip add 192.168.60.65 255.255.255.192
Router(config-subif)#no shut
Lanjut kita akan menghubungkan kedua Vlan dengan membuat konfigurasi Trunk di kedua switch seperti di bawah ini:
Switch(config)#int fa 0/1
Switch(config-if)#swi
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#ex
Switch(config)#int fa 0/6
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
Kemudian Kita akan memberi ip di servernya seperti gambar di bawah ini:
Buat juga DNS Nya
Jika sudah cek DNS nya dengan membuka web browser di pc dengan mengetikan IP atau Domain Nya yang telah di buat
ip
domain
Konfigurasi membuat Vlan Cisco Paket Tracer
4/
5
Oleh
Unknown