Pada pembahasan kali ini, saya memiliki topologi perulangan yaitu switch dengan root (utama) dan non root (backup), menggunakan STP (Spanning Tree Protocol), suatu protokol yang berfungsi untuk mencegah terjadinya looping pada proses pengiriman data, akan tetapi pada topologi superlab yang pertama saya post ini, tidak menkonfigurasi STP saja, di antaranya : Vlan, VTP, Native Vlan, Intervlan Routing, Port Security dan Wirelles, oke langsung saja ke pembahasanya.

Pertama kita setting router1
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
ROUTER1 R1# configure terminal Enter configuration commands, one per line. End with CNTL/Z. R1(config)#interface fastEthernet 0/0.10 R1(config-subif)#encapsulation dot1Q 10 R1(config-subif)#ip address 172.16.10.1 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)#exit R1(config)#interface fastEthernet 0/0.20 R1(config-subif)#encapsulation dot1Q 20 R1(config-subif)#ip address 172.16.20.1 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)#exit R1(config)#interface fastEthernet 0/0.43 R1(config-subif)#encapsulation dot1Q 43 R1(config-subif)#ip address 172.16.43.1 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)#exit R1(config)#interface fastEthernet 0/0.67 R1(config-subif)#encapsulation dot1Q 67 R1(config-subif)#ip address 172.16.67.1 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)# R1(config)#interface fastEthernet 0/0 R1(config-if)#no shutdown #NATIVE DI VLAN 43 Router1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#interface fastEthernet 0/0.43 Router1(config-subif)#encapsulation dot1Q 43 Router1(config-subif)#encapsulation dot1Q 43 native Router1(config-subif)# |
Setting masing2 Switch, ipaddress vlan, gateway, password
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
SW_DS1(config)#interface vlan 43 %LINK-5-CHANGED: Interface Vlan43, changed state to up SW_DS1(config-if)#exit SW_DS1(config)#ip default-gateway 172.16.43.1 SW_DS1(config)#end Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SW_AC2 SW_AC2(config)#interface vlan 43 SW_AC2(config-if)#ip address 172.16.43.12 255.255.255.0 SW_AC2(config-if)#exit SW_AC2(config)#ip default-gateway 172.16.43.1 SW_AC2(config)#do wr Building configuration... [OK] SW_AC2(config)# SW_AC3>en Password: SW_AC3#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC3(config)#interface vlan 43 SW_AC3(config-if)#ip address 172.16.43.13 255.255.255.0 SW_AC3(config-if)#exit SW_AC3(config)#ip default-gateway 172.16.43.1 SW_AC3(config)#do wr Building configuration... [OK] SW_AC3(config)# SW_AC2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC2(config)#banner motd #Authorized Access Only# SW_AC2(config)#enable secret class SW_AC2(config)#line console 0 SW_AC2(config-line)#password cisco SW_AC2(config-line)#login local SW_AC2(config-line)#exit SW_AC2(config)#line vty 0 4 SW_AC2(config-line)#password cisco SW_AC2(config-line)#end SW_AC2#wr Building configuration... [OK] #SWITCH 1 SW_DS1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_DS1(config)#interface range fastEthernet 0/19 - 24 SW_DS1(config-if-range)#switchport mode trunk SW_DS1(config-if-range)#switchport trunk native vlan 43 SW_DS1(config-if-range)# #SWITCH 2 SW_AC2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC2(config)#interface range fastEthernet 0/19 - 24 SW_AC2(config-if-range)#switchport mode trunk SW_AC2(config-if-range)#switchport trunk native vlan 43 #SWITCH 3 SW_AC3(config)#interface range fastEthernet 0/19 - 24 SW_AC3(config-if-range)#switchport mode trunk SW_AC3(config-if-range)#switchport trunk native vlan 43 |
Konfigurasi VTP server dan VTP Client
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
SW_DS1(config)#vtp mode server Device mode already VTP SERVER. SW_DS1(config)#vtp domain CCNA Changing VTP domain name from NULL to CCNA SW_DS1(config)#vtp password cisco SW_AC2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC2(config)#vtp mode client Setting device to VTP CLIENT mode. SW_AC2(config)#vtp domain CCNA Domain name already set to CCNA. SW_AC2(config)#vtp password cisco Setting device VLAN database password to cisco SW_AC2(config)# SW_AC3#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC3(config)#vtp mode client Setting device to VTP CLIENT mode. SW_AC3(config)#vtp domain CCNA Domain name already set to CCNA. SW_AC3(config)#vtp password cisco Setting device VLAN database password to cisco SW_AC3(config)# |
Setting Vlan
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
SW_AC2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC2(config)#interface range fastEthernet 0/1 - 10 SW_AC2(config-if-range)#switchport mode access SW_AC2(config-if-range)#switchport access vlan 10 SW_AC2(config-if-range)#exit SW_AC2(config)#interface range fastEthernet 0/11 - 17 SW_AC2(config-if-range)#switchport mode access SW_AC2(config-if-range)#switchport access vlan 20 SW_AC3(config)#interface range fastEthernet 0/1 - 10 SW_AC3(config-if-range)#switchport mode access SW_AC3(config-if-range)#switchport access vlan 10 SW_AC3(config-if-range)#exit SW_AC3(config)#interface range fastEthernet 0/11 - 17 SW_AC3(config-if-range)#switchport mode access SW_AC3(config-if-range)#switchport access vlan 20 SW_AC3(config-if-range)#exit SW_AC3(config)#interface fastEthernet 0/18 SW_AC3(config-if)#switchport mode access SW_AC3(config-if)#switchport access vlan 67 SW_AC3(config-if)# SW_AC3(config-if)#end SW_AC3# %SYS-5-CONFIG_I: Configured from console by console SW_AC3#wr Building configuration... [OK] SW_AC3# |
Setting STP & Port Security
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
SW_DS1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_DS1(config)#spanning-tree vlan 1,10,20,43,67 priority 4096 SW_DS1(config)#end SW_DS1# SW_AC2>en Password: SW_AC2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC2(config)#spanning-tree vlan 1,10,20,43,67 priority 8192 SW_AC3#configure terminal Enter configuration commands, one per line. End with CNTL/Z. SW_AC3(config)#interface fastEthernet 0/2 SW_AC3(config-if)#switchport mode access SW_AC3(config-if)#switchport port-security SW_AC3(config-if)#switchport port-security mac-address sticky SW_AC3(config-if)#switchport port-security violation shutdown SW_AC3(config-if)#switchport port-security maximum 2 SW_AC3(config-if)#do wr Building configuration... [OK] SW_AC3(config-if)# |
Mungkin itu saja, di pojok kanan bawah, ada nilainya, dan ada waktu di pojok bawah kiri, jangan ngeliat lamanya ya itu waktu ngoprek santai hehe sekian dari saya terimakasih saya lampiran filenya untuk belajar
