You are on page 1of 13

KONFIGURASI STP SWITCHING DAN ROUTING

Berikut ini adalah sebuah skema jaringan yang menggunakan STP dan Vlan. Jaringan ini juga mengembangkan konsep wireless dan NAT untuk konfigurasi routingnya. Berikut Konfigurasinya : Konfigurasi pada Switch 1 Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S1 S1(config)#enable se S1(config)#enable secret unsri S1(config)#line vty 0 4 S1(config-line)#password unsri

S1(config-line)#login S1(config-line)#exit S1(config)#interface vlan 1 S1(config-if)#ip address 192.168.1.1 255.255.255.0 S1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up S1(config-if)#exit S1(config)#ip default-gateway 192.168.1.99 S1(config)#exit S1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. S1(config)#vtp mode server Device mode already VTP SERVER. S1(config)#vtp domain unsri Changing VTP domain name from NULL to unsri S1(config)#vtp password unsri Setting device VLAN database password to unsri S1(config)#interface range fastEthernet 0/1 - 5 S1(config-if-range)#switchport mode trunk

%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

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up S1(config-if-range)#switchport trunk native vlan 1 S1(config-if-range)#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 inherent S1(config-vlan)#exit S1(config)#vlan 5 S1(config-vlan)#name wireless S1(config-vlan)#exit S1(config)#interface fastEthernet 0/8 S1(config-if)#switchport mode access S1(config-if)#switchport access vlan 2 S1(config-if)#exit S1(config)#interface fastEthernet 0/9 S1(config-if)#switchport mode access S1(config-if)#switchport access vlan 3

S1(config-if)#exit S1(config)#interface fastEthernet 0/7 S1(config-if)#switchport mode access S1(config-if)#switchport access vlan 4 S1(config-if)#exit S1(config)#interface fastEthernet 0/6 S1(config-if)#switchport mode access S1(config-if)#switchport access vlan 5 S1(config-if)#end %SYS-5-CONFIG_I: Configured from console by console S1#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]

Konfigurasi pada switch 2 Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S2 S2(config)#enable secret unsri S2(config)#line vty 0 4 S2(config-line)#password unsri S2(config-line)#login S2(config-line)#exit S2(config)#interface vlan 1 S2(config-if)#ip address 192.168.1.2 255.255.255.0

S2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up S2(config-if)#exit S2(config)#ip default-gateway 192.168.1.99 S2(config)#exit %SYS-5-CONFIG_I: Configured from console by console S2>enable S2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. S2(config)#vtp mode client Setting device to VTP CLIENT mode. S2(config)#vtp domain unsri Domain name already set to unsri. S2(config)#vtp password unsri Setting device VLAN database password to unsri S2(config)#interface range fastEthernet 0/1 - 4 S2(config-if-range)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up S2(config-if-range)#switchport trunk native vlan 1 S2(config-if-range)#exit

S2(config)#interface fastEthernet 0/5 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)#switchport mode access S2(config-if)#switchport access vlan 3 S2(config-if)#exit S2(config)#interface fastEthernet 0/7 S2(config-if)#switchport mode access S2(config-if)#switchport access vlan 4 S2(config-if)#exit S2(config)#end %SYS-5-CONFIG_I: Configured from console by console S2#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]

Konfigurasi switch 3 Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S3 S3(config)#enable secret unsri S3(config)#line vty 0 4 S3(config-line)#password unsri

S3(config-line)#login S3(config-line)#exit S3(config)#interface vlan 1 S3(config-if)#ip address 192.168.1.3 255.255.255.0 S3(config-if)#no shutdown

%LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up S3(config-if)#exit S3(config)#ip default-gateway 192.168.1.99 S3(config)#exit %SYS-5-CONFIG_I: Configured from console by console S3>enable S3#configure terminal Enter configuration commands, one per line. End with CNTL/Z. S3(config)#vtp mode client Setting device to VTP CLIENT mode. S3(config)#vtp domain unsri Domain name already set to unsri. S3(config)#vtp password unsri Setting device VLAN database password to unsri S3(config)#interface range fastEthernet 0/1 - 4 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)#switchport mode access

S3(config-if)#switchport access vlan 2 S3(config-if)#exit S3(config)#interface fastEthernet 0/6 S3(config-if)#switchport mode access S3(config-if)#switchport access vlan 3 S3(config-if)#end %SYS-5-CONFIG_I: Configured from console by console S3#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]

Konfigurasi Router 1 Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#enable secret unsri Router(config)#line vty 0 4 Router(config-line)#password unsri Router(config-line)#login Router(config-line)#exit Router(config)#hostname R1 R1(config)#interface fastEthernet 0/0 R1(config-if)#ip address 192.168.1.99 255.255.255.0 R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#exit R1(config)#interface fastEthernet 0/0.1

%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to upR1(config-subif)#ip ad R1(config-subif)#ip address 192.168.1.99 255.255.255.0

% Configuring IP routing on a LAN subinterface is only allowed if that subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q, or ISL vLAN.

R1(config-subif)#interface fastEthernet 0/0.2 %LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up R1(config-subif)#encapsulation dot1Q 2 R1(config-subif)#ip address 192.168.2.1 255.255.255.0

R1(config-subif)#interface fastEthernet 0/0.3 %LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up R1(config-subif)#encapsulation dot1Q 3 R1(config-subif)#ip address 192.168.3.1 255.255.255.0

R1(config-subif)#interface fastEthernet 0/0.4 %LINK-5-CHANGED: Interface FastEthernet0/0.4, changed state to up R1(config-subif)#encapsulation dot1Q 4 R1(config-subif)#ip address 192.168.4.1 255.255.255.0

R1(config-subif)#interface fastEthernet 0/0.5 %LINK-5-CHANGED: Interface FastEthernet0/0.5, changed state to up R1(config-subif)#encapsulation dot1Q 5 R1(config-subif)#ip address 192.168.5.1 255.255.255.0 R1(config-subif)#end %SYS-5-CONFIG_I: Configured from console by console R1#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Router#configure terminal R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 192.168.1.99 255.255.255.0 R1(config-if)#ip nat outside Router(config-if)#exit R1(config)#interface fastEthernet 0/1 R1(config-if)#ip address 172.17.10.1 255.255.255.0 R1(config-if)#ip nat inside R1(config)#ip nat inside source list 1 pool giat overload R1(config)#end %SYS-5-CONFIG_I: Configured from console by console R1#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]

Konfigurasi router 2 Router>enable Router#configure terminal Router(config)#hostname S2 Enter configuration commands, one per line. End with CNTL/Z. R2(config)#interface FastEthernet0/0 R2(config-if)#ip address 192.168.4.1 255.255.255.0 R2(config-if)#no shutdown R2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)#interface FastEthernet0/1 R2(config-if)#ip address 172.17.1.1 255.255.255.0 R2(config-if)#shutdown

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up R2(config)#end %SYS-5-CONFIG_I: Configured from console by console R2#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]

Untuk Konfigurasi Access List anda dapat mengkonfigurasi seperti diatas: Masuk kedalam PC yang akan di konfigurasi wireless Tekan panel yang dilingkari warna hijau, Lalu ganti tipe yang warna merah dengan yang dilingkari warna kuning.

Pilih PC yang sudah di konfigurasi Pilih icon PC WIRELESS

Maka akan muncul tampilan seperti diatas Lalu pilih connect

Semoga Sukses

You might also like