SIMULASI DI CISCO PACKET TRACER
Configuration :
- Vlan (Virtual Local Area Network)
- Inter Vlan Routing
- VTP (Virtual Trunking Protocol)
- Vlan Management
- STP (Spanning Tree Protocol) mode PVST (Per-Vlan Spanning Tree)
- NAT (Network Address Translation) PAT
- DHCP (Dynamic Host Control Protocol)
- Routing Static Default
Langkah-langkah Configurasi & Routing
ROUTER
Router>enable
Router#configure terminal
Router(config)#hostname rian
rian(config)#interface fastEthernet 0/1
rian(config-if)#ip address 192.168.1.1 255.255.255.224
rian(config-if)#no shutdown
rian(config-if)#ip nat inside
rian(config-if)#exit
rian(config)#interface fastEthernet 0/0
rian(config-if)#ip address 222.124.194.2 255.255.255.248
rian(config-if)#no shutdown
rian(config-if)#ip nat outside
rian(config-if)#exit
rian(config)#interface fastEthernet 0/1.2
rian(config-subif)#encapsulation dot1Q 2
rian(config-subif)#ip address 192.168.1.33 255.255.255.224
rian(config-subif)#ip nat inside
rian(config-subif)#exit
rian(config)#interface fastEthernet 0/1.3
rian(config-subif)#encapsulation dot1Q 3
rian(config-subif)#ip address 192.168.1.65 255.255.255.224
rian(config-subif)#ip nat inside
rian(config-subif)#exit
rian(config)#interface fastEthernet 0/1.4
rian(config-subif)#encapsulation dot1Q 4
rian(config-subif)#ip address 192.168.1.97 255.255.255.224
rian(config-subif)#ip nat inside
rian(config-subif)#exit
rian(config)#interface fastEthernet 0/1.5
rian(config-subif)#encapsulation dot1Q 5
rian(config-subif)#ip address 192.168.1.129 255.255.255.128
rian(config-subif)#ip nat inside
rian(config-subif)#exit
rian(config)#ip dhcp pool vlan2
rian(dhcp-config)#default-router 192.168.1.33
rian(dhcp-config)#network 192.168.1.32 255.255.255.224
rian(dhcp-config)#dns-server 222.124.194.18
rian(dhcp-config)#exit
rian(config)#ip dhcp pool vlan3
rian(dhcp-config)#default-router 192.168.1.65
rian(dhcp-config)#network 192.168.1.64 255.255.255.224
rian(dhcp-config)#dns-server 222.124.194.18
rian(dhcp-config)#exit
rian(config)#ip dhcp pool vlan4
rian(dhcp-config)#default-router 192.168.1.97
rian(dhcp-config)#network 192.168.1.96 255.255.255.224
rian(dhcp-config)#dns-server 222.124.194.18
rian(dhcp-config)#exit
rian(config)#ip dhcp pool vlan5
rian(dhcp-config)#default-router 192.168.1.129
rian(dhcp-config)#network 192.168.1.128 255.255.255.128
rian(dhcp-config)#dns-server 222.124.194.18
rian(dhcp-config)#exit
rian(config)#ip route 0.0.0.0 0.0.0.0 222.124.194.1
rian(config)#ip nat inside source list 11 interface fastEthernet 0/0 overload
rian(config)#access-list 11 permit any
rian(config)#enable secret rian
rian(config)#line console 0
rian(config-line)#password unsri
rian(config-line)#login
rian(config-line)#exit
rian(config)#line vty 0 15
rian(config-line)#password unsri
rian(config-line)#login
rian(config-line)#exit
rian(config)#service password-encryption
rian(config)#^Z
rian#copy running-config startup-config
SWITCH 1
Switch>enable
Switch#configure terminal
Switch(config)#hostname s1
s1(config)#vtp mode server .
s1(config)#vtp domain rian
s1(config)#vtp password rian
s1(config)#interface range fastEthernet 0/1-24
s1(config-if-range)#shutdown
s1(config-if-range)#exit
s1(config)#interface range fastEthernet 0/1-5
s1(config-if-range)#no shutdown
s1(config-if-range)#switchport mode trunk
s1(config-if-range)#switchport trunk native vlan 1
s1(config-if-range)#exit
s1(config)#interface fastEthernet 0/6
s1(config-if)#switchport mode access
s1(config-if)#switchport access vlan 4
s1(config-if)#no shutdown
s1(config-if)#exit
s1(config)#vlan 2
s1(config-vlan)#name lecture
s1(config-vlan)#exit
s1(config)#vlan 3
s1(config-vlan)#name student
s1(config-vlan)#exit
s1(config)#vlan 4
s1(config-vlan)#name staff
s1(config-vlan)#exit
s1(config)#vlan 5
s1(config-vlan)#name hotspot
s1(config-vlan)#exit
s1(config)#interface vlan 1
s1(config-if)#ip address 192.168.1.2 255.255.255.224
s1(config-if)#no shutdown
s1(config-if)#exit
s1(config)#ip default-gateway 192.168.1.1
s1(config)#enable secret rian
s1(config)#line console 0
s1(config-line)#password unsri
s1(config-line)#login
s1(config-line)#exit
s1(config)#line vty 0 15
s1(config-line)#password unsri
s1(config-line)#login
s1(config-line)#exit
s1(config)#service password-encryption
s1(config)#spanning-tree vlan 4 priority 4096
s1(config)#^Z
s1#copy running-config startup-config
SWITCH 2
Switch>enable
Switch#configure terminal
Switch(config)#hostname s2
s2(config)#vtp mode client
s2(config)#vtp domain rian
s2(config)#vtp password rian
s2(config)#interface range fastEthernet 0/1-24
s2(config-if-range)#shutdown
s2(config-if-range)#exit
s2(config)#interface range fastEthernet 0/1-4
s2(config-if-range)#no shutdown
s2(config-if-range)#switchport mode trunk
s2(config-if-range)#switchport trunk native vlan 1
s2(config-if-range)#exit
s2(config)#interface fastEthernet 0/5
s2(config-if)#no shutdown
s2(config-if)#switchport mode access
s2(config-if)#switchport access vlan 2
s2(config-if)#exit
s2(config)#interface fastEthernet 0/6
s2(config-if)#no shutdown
s2(config-if)#switchport mode access
s2(config-if)#switchport access vlan 3
s2(config-if)#exit
s2(config)#interface fastEthernet 0/7
s2(config-if)#no shutdown
s2(config-if)#switchport mode access
s2(config-if)#switchport access vlan 4
s2(config-if)#exit
s2(config)#interface fastEthernet 0/8
s2(config-if)#no shutdown
s2(config-if)#switchport mode access
s2(config-if)#switchport access vlan 5
s2(config-if)#exit
s2(config)#interface vlan 1
s2(config-if)#ip address 192.168.1.3 255.255.255.224
s2(config-if)#no shutdown
s2(config-if)#exit
s2(config)#ip default-gateway 192.168.1.1
s2(config)#enable secret rian
s2(config)#line console 0
s2(config-line)#password unsri
s2(config-line)#login
s2(config-line)#exit
s2(config)#line vty 0 15
s2(config-line)#password unsri
s2(config-line)#login
s2(config-line)#exit
s2(config)#service password-encryption
s2(config)#spanning-tree vlan 2 priority 4096
s2(config)#spanning-tree vlan 3 priority 4096
s3(config)#^Z
s2#copy running-config startup-config
SWITCH 3
Switch>enable
Switch#configure terminal
Switch(config)#hostname s3
s3(config)#vtp mode client
s3(config)#vtp domain rian
s3(config)#vtp password rian
s3(config)#interface range fastEthernet 0/1-24
s3(config-if-range)#shutdown
s3(config-if-range)#exit
s3(config)#interface range fastEthernet 0/1-4
s3(config-if-range)#no shutdown
s3(config-if-range)#switchport mode trunk
s3(config-if-range)#switchport trunk native vlan 1
s3(config-if-range)#exit
s3(config)#interface fastEthernet 0/5
s3(config-if)#no shutdown
s3(config-if)#switchport mode access
s3(config-if)#switchport access vlan 2
s3(config-if)#exit
s3(config)#interface fastEthernet 0/6
s3(config-if)#no shutdown
s3(config-if)#switchport mode access
s3(config-if)#switchport access vlan 3
s3(config-if)#exit
s3(config)#interface fastEthernet 0/7
s3(config-if)#no shutdown
s3(config-if)#switchport mode access
s3(config-if)#switchport access vlan 4
s3(config-if)#exit
s3(config)#interface fastEthernet 0/8
s3(config-if)#no shutdown
s3(config-if)#switchport mode access
s3(config-if)#switchport access vlan 5
s3(config-if)#exit
s3(config-if)#ip address 192.168.1.4 255.255.255.224
s3(config-if)#no shutdown
s3(config-if)#exit
s3(config)#ip default-gateway 192.168.1.1
s3(config)#enable secret rian
s3(config)#line console 0
s3(config-line)#password unsri
s3(config-line)#login
s3(config-line)#exit
s3(config)#line vty 0 15
s3(config-line)#password unsri
s3(config-line)#login
s3(config-line)#exit
s3(config)#spanning-tree vlan 5 priority 4096
s3(config)#service password-encryption
s3(config)#^Z
s3#copy running-config startup-config
Penjelasan . .
- Shutdown berfungsi untuk mematikan port interface.
- No shutdown berfungsi untuk menghidupkan port interface.
- Mode Trunk berfungsi agar setiap vlan bisa lewat dan switch bisa saling berhubungan. Setiap switch yang lewat maka akan di anggap member vlan 1.
- Mode server - client : 3 switch yg berbeda pisikal , tetapi apabila di set sebagai server dan client maka 3 switch yg berbeda pisikal itu akan saling berhubungan dan menjadi satu pisikal , tetapi dengan syarat domain dan password client harus mengikuti server .
- Vlan : Fungsi dari vlan ialah untuk memecah broadcast. Dengan adanya vlan maka broadcast akan sesuai dengan vlan nya masing-masing .
- Mode access : berfungsi untuk meng-gruping vlan. Maka setiap port yang di mode access akan menjadi member vlan.
- Interface vlan 1 di gunakan untuk vlan manajemen . interface vlan 1 harus menggunakan password secret,console,dan vty. Dengan adanya vlan manajemen maka router atau switch bisa di konfigurasi jarak jauh atau bisa di konfig tanpa melalui router atau switch nya .
- Spanning tree mode pvst digunakan agar setiap switch yang ada bisa di set sebagai root bridge vlan. Dengan kata lain semua vlan tidak bergantung pada satu root bridge/switch saja .
- Encapsulation di gunakan untuk pembungkusan vlan agar antar vlan bisa saling berhubungan atau di sebut inter vlan routing .
- Ip dhcp pool di buat agar setiap user yang berada di dalam network akan mendapatkan ip secara otomatis dari router.
- Dns – server mungkin sebagai kamus penterjemah biner pada link web browser.
- NAT adalah proses translasi dari ip private menjadi ip public. Maka pada saat user ip private mengirim data ke network luar melalui router maka ip private nya akan di translasi menjadi ip public.
- Service password encruption di buat agar password yang kita buat akan di ubah menjadi kode-kode agar tidak terlihat.
- Ip nat inside source list 11interface fastEthernet 0/0 overload mungkin maksud nya ip nat yang ada di network apabila mengirim data keluar maka akan melalui interface fastEthernet 0/0.
SUPPORT:
www.labjarkom.ilkom.unsri.ac.id
FREE DOWNLOAD PACKET TRACER (TOPOLOGI)
Tidak ada komentar:
Posting Komentar