Rabu, 17 Agustus 2011

Konfigurasi STP Switching dan Routing



Berikut konfigurasinya:


Switch 1:
Switch1(config)# vtp mode server
Device mode already VTP SERVER
Switch1(config)# vtp domain latihan
Changing VTP domain name from NULL to latihan
Switch1(config)# vtp password cisco
Setting device VLAN database password to cisco
Switch1(config)#interface range fa0/1-5
Switch1(config-if-range)#switchport mode trunk
Switch1(config-if-range)#switchport trunk native vlan 1
Switch1(config-if-range)#no shutdown
Switch1(config-if-range)#exit
Switch1(config)# vlan 10
Switch1(config-vlan)# name students
Switch1(config-vlan)#exit
Switch1(config)# vlan 20
Switch1(config-vlan)# name lecture
Switch1(config-vlan)#exit
Switch1(config)# vlan 30
Switch1(config-vlan)# name staff
Switch1(config-vlan)#exit
Switch1(config)# vlan 40
Switch1(config-vlan)# name inherent
Switch1(config-vlan)#exit
Switch1(config)# vlan 50
Switch1(config-vlan)# name wireless
Switch1(config-vlan)#exit
Switch1(config)# interface vlan 1
Switch1(config-if)#ip address 192.168.1.11 255.255.255.0
Switch1(config-if)# no shutdown
Switch1(config-if)# exit
Switch1(config)# interface range fa0/6-10
Switch1(config-if-range)#switchport mode access
Switch1(config-if-range)#switchport access vlan 10
Switch1(config-if-range)#interface range fa0/11-15
Switch1(config-if-range)#switchport mode access
Switch1(config-if-range)#switchport access vlan 20
Switch1(config-if-range)#interface range fa0/16-20
Switch1(config-if-range)#switchport mode access
Switch1(config-if-range)#switchport access vlan 30
Switch1(config-if-range)#interface range fa0/21-24
Switch1(config-if-range)#switchport mode access
Switch1(config-if-range)#switchport access vlan 40
Switch1(config-if-range)#exit
Switch1(config-if)#exit
Switch(config)#ip default-gateway 192.168.10.10
Switch1(config)#end


Switch 2: 
Switch2(config)# vtp mode client
Setting device to VTP CLIENT mode
Switch2(config)# vtp domain latihan
Changing VTP domain name from NULL to latihan
Switch2(config)# vtp password cisco
Setting device VLAN database password to cisco
Switch2(config)#interface range fa0/1-5
Switch2(config-if-range)#switchport mode trunk
Switch2(config-if-range)#switchport trunk native vlan 1
Switch2(config-if-range)#exit
Switch2(config)#interface range fa0/24
Switch2(config-if-range)#switchport mode trunk
Switch2(config-if-range)#switchport trunk native vlan 1
Switch2(config-if-range)#exit
Switch2(config)# interface vlan 1
Switch2(config-if)#ip address 192.168.1.12 255.255.255.0
Switch2(config-if)# no shutdown
Switch2(config-if)# exit
Switch2(config)# interface range fa0/6-10
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 10
Switch2(config-if-range)#interface range fa0/11-15
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 20
Switch2(config-if-range)#interface range fa0/16-19
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 30
Switch2(config-if-range)#interface range fa0/20-23
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 40
Switch1(config-if-range)#exit
Switch2(config-if-range)#interface range fa0/24
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 50
Switch1(config-if-range)#exit
Switch1(config-if)#exit
Switch(config)#ip default-gateway 192.168.10.10
Switch1(config)#end


Switch 3:
Switch3(config)# vtp mode server
Setting device to VTP CLIENT mode
Switch3(config)# vtp domain latihan
Changing VTP domain name from NULL to latihan
Switch3(config)# vtp password cisco
Setting device VLAN database password to cisco
Switch3(config)#interface range fa0/1-5
Switch3(config-if-range)#switchport mode trunk
Switch3(config-if-range)#switchport trunk native vlan 1
Switch3(config-if-range)#exit
Switch3(config)#interface range fa0/24
Switch3(config-if-range)#switchport mode trunk
Switch3(config-if-range)#switchport trunk native vlan 1
Switch3(config-if-range)#exit
Switch3(config)# interface vlan 1
Switch3(config-if)#ip address 192.168.1.13 255.255.255.0
Switch3(config-if)# no shutdown
Switch3(config-if)# exit
Switch3(config)# interface range fa0/6-10
Switch3(config-if-range)#switchport mode access
Switch3(config-if-range)#switchport access vlan 10
Switch3(config-if-range)#interface range fa0/11-15
Switch3(config-if-range)#switchport mode access
Switch3(config-if-range)#switchport access vlan 20
Switch2(config-if-range)#switchport access vlan 20
Switch2(config-if-range)#interface range fa0/16-19
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 30
Switch2(config-if-range)#interface range fa0/20-23
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 40
Switch1(config-if-range)#exit
Switch2(config-if-range)#interface range fa0/24
Switch2(config-if-range)#switchport mode access
Switch2(config-if-range)#switchport access vlan 50
Switch1(config-if-range)#exit
Switch1(config-if)#exit
Switch(config)#ip default-gateway 192.168.10.10
Switch1(config)#end

Router 1:
Router1(config)#interface fastethernet 0/0
Router1(config-if)#no shutdown
Router1(config-if)#interface fastethernet 0/0.1
Router1(config-subif)#encapsulation dot1q 1
Router1(config-subif)#ip address 192.168.1.1 255.255.255.0
Router1(config-subif)#exit
Router1(config-if)#interface fastethernet 0/0.10
Router1(config-subif)#encapsulation dot1q 10
Router1(config-subif)#ip address 192.168.10.1 255.255.255.0
Router1(config-subif)#exit
Router1(config-if)#interface fastethernet 0/0.20
Router1(config-subif)#encapsulation dot1q 20
Router1(config-subif)#ip address 192.168.20.1 255.255.255.0
Router1(config-subif)#exit
Router1(config-if)#interface fastethernet 0/0.30
Router1(config-subif)#encapsulation dot1q 1
Router1(config-subif)#ip address 192.168.30.1 255.255.255.0
Router1(config-subif)#exit
Router1(config)#interface fastethernet 0/0
Router1(config-if)# ip address 192.168.2.2 255.255.255.0
Router1(config-if)#no shutdown
Router1(config-if)#exit
Router1(config)#interface fastethernet 0/1
Router1(config-if)# ip address 172.17.10.1 255.255.255.0
Router1(config-if)#no shutdown
Router1(config-if)#exit
Router1(config)#router rip
Router1 (config-router)#network 192.168.10.0
Router1 (config-router)#network 172.17.2.0
Router1 (config)#interface fastethernet 0/0
Router1 (config-if)#ip nat inside
Router1 (config-if)#exit
Router1 (config)# interface fastethernet 0/1
Router1 (config-if)#ip nat outside
Router1 (config-if)#ex
Router1 (config)#ip nat inside source list 1 interface f0/0 overload
Router1 (config)#access-list 1 permit any
Router1(config-if)#end


Router 2:
Router2(config)#interface fastethernet 0/0
Router2(config-if)#ip address 192.168.2.1 255.255.255.0
Router2(config-if)#no shutdown
Router2(config-if)#exit
Router2(config)#interface fastethernet 0/1
Router2(config-if)#ip address 172.17.20.1 255.255.255.0
Router2(config-if)#no shutdown
Router2(config-if)#end


Sumber : http://blog.unsri.ac.id/wahjuve/tugas/konfigurasi-stp-switching-dan-routing/mrdetail/9908

3 komentar:

  1. permisi gan,ikutan belajar
    http://jaketkuning.unsri.ac.id/Sigit/blog/1105/

    BalasHapus
  2. maaf gan,ikutan belajar
    http://jaketkuning.unsri.ac.id/Sigit/blog/1361/

    BalasHapus
  3. maaf gan,ikutan belajar
    http://jaketkuning.unsri.ac.id/Sigit/blog/1361/

    BalasHapus