Cisco | Vlan, PVST, HSRP dan EtherChannel (Part-2)
Switch 1
S1 config)#hostname S1
S1(config)#vlan 5
S1(config-vlan)#ex
S1(config)#vlan 100
S1(config-vlan)#ex
S1(config)#spanning-tree mode pvst
S1(config)#interface ra gigabitEthernet 1/0/1-2
S1(config-if)#switchport trunk encapsulation dot1q
S1(config-if)#switchport mode trunk
S1(config-if-range)#switchport trunk allowed vlan 1-1005
S1(config-if-range)#ex
#Konfigurasi Etherchannel
S1(config)#interface ra gigabitEthernet 1/0/4-5
S1(config-if-range)#channel-group 1 mode on
S1(config-if-range)#ex
S1(config)#interface port-channel 1
S1(config-if)#switchport trunk encapsulation dot1q
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk allowed vlan 1-1005
#Konfigurasi HSRP (Sebagai Active)
S1(config)#interface vlan 1
S1(config)#ip address 192.168.1.253 255.255.255.0
S1(config-if)#standby 1 ip 192.168.1.1
S1(config-if)#standby 1 priority 110
S1(config-if)#standby 1 preempt
S1(config-if)#ex
S1(config)#interface vlan 5
S1(config)#ip address 192.168.5.253 255.255.255.0
S1(config-if)#standby 1 ip 192.168.5.1
S1(config-if)#standby 1 priority 110
S1(config-if)#standby 1 preempt
S1(config-if)#ex
S1(config)#interface vlan 100
S1(config)#ip address 192.168.100.253 255.255.255.0
S1(config-if)#standby 1 ip 192.168.100.1
S1(config-if)#standby 1 priority 110
S1(config-if)#standby 1 preempt
S1(config)#spanning-tree vlan 1,100 root primary
S1(config)#spanning-tree vlan 5 root secondary
S1(config)#ip routing
Switch 2
Switch(config)#hostname S2
S2(config)#vlan 5
S2(config-vlan)#ex
S2(config)#vlan 100
S2(config-vlan)#ex
S2(config)#spanning-tree mode pvst
S2(config)#
S2(config)#interface ra gigabitEthernet 1/0/1-2
S2(config-if)#switchport trunk encapsulation dot1q
S2(config-if-range)#switchport mode trunk
S2(config-if-range)#switchport trunk allowed vlan 1-1005
S2(config-if-range)#ex
#Konfigirasi Etherchannel
S2(config)#interface ra gigabitEthernet 1/0/4-5
S2(config-if-range)#channel-group 1 mode on
S2(config-if-range)#ex
S2(config)#interface port-channel 1
S2(config-if)#switchport trunk encapsulation dot1q
S2(config-if)#switchport mode trunk
S2(config-if)#switchport trunk allowed vlan 1-1005
#Konfigirasi HSRP (Passive)
S2(config)#interface vlan 1
S2(config-if)#standby 1 ip 192.168.1.1
S2(config-if)#standby 1 preempt
S2(config-if)#ex
S2(config)#interface Vlan1
S2(config)#ip address 192.168.1.254 255.255.255.0
S2(config-if)#standby 1 ip 192.168.1.1
S2(config-if)#standby 1 preempt
S2(config-if)#ex
S2(config)#interface Vlan5
S2(config)#ip address 192.168.5.254 255.255.255.0
S2(config-if)#standby 1 ip 192.168.5.1
S2(config-if)#standby 1 preempt
S2(config-if)#ex
S2(config)#interface Vlan100
S2(config)#ip address 192.168.100.254 255.255.255.0
S2(config-if)#standby 1 ip 192.168.100.1
S2(config-if)#standby 1 preempt
S2(config-if)#ex
S2(config)#spanning-tree vlan 5 root primary
S2(config)#spanning-tree vlan 1,100 root secondary
S2(config)#ip routing
Switch 3
Switch(config)#hostname S3
S3(config)#vlan 5
S3(config-vlan)#ex
S3(config)#vlan 100
S3(config-vlan)#ex
S3(config)#spanning-tree mode pvst
S3(config)#interface ra gigabitEthernet 1/0/1-2
S3(config-if)#switchport trunk encapsulation dot1q
S3(config-if-range)#switchport mode trunk
S3(config-if-range)#switchport trunk allowed vlan 1-1005
S3(config-if-range)#ex
S3(config)#interface ra gigabitEthernet 1/0/3
S3(config)#speed 100
S3(config-if)#switchport trunk encapsulation dot1q
S3(config-if-range)#switchport mode trunk
S3(config-if-range)#switchport trunk allowed vlan 1-1005
S3(config-if-range)#ex
Switch 4
Switch(config)#hostname S4
S4(config)#vlan 5
S4(config-vlan)#ex
S4(config)#vlan 100
S4(config-vlan)#ex
S4(config)#spanning-tree mode pvst
S4(config)#interface ra gigabitEthernet 1/0/1-2
S4(config-if)#switchport trunk encapsulation dot1q
S4(config-if-range)#switchport mode trunk
S4(config-if-range)#switchport trunk allowed vlan 1-1005
S4(config-if-range)#ex
S4(config)#interface ra gigabitEthernet 1/0/3
S4(config)#speed 100
S4(config-if)#switchport trunk encapsulation dot1q
S4(config-if-range)#switchport mode trunk
S4(config-if-range)#switchport trunk allowed vlan 1-1005
S4(config-if-range)#ex
Switch 5
Switch(config)#hostname S5
S5(config)#vlan 5
S5(config-vlan)#ex
S5(config)#vlan 100
S5(config-vlan)#ex
S5(config)#spanning-tree mode pvst
S5(config)#
S5(config)#interface fa0/1
S5(config-if)#switchport mode trunk
S5(config-if)#switchport trunk allowed vlan 1-1005
S5(config-if)#ex
S5(config)#
S5(config)#interface fa0/5
S5(config-if)#switchport mode access
S5(config-if)#switchport access vlan 1
S5(config-if)#spanning-tree portfast
S5(config-if)#spanning-tree bpduguard enable
S5(config-if)#ex
S5(config)#interface fa0/6
S5(config-if)#switchport mode access
S5(config-if)#switchport access vlan 5
S5(config-if)#spanning-tree portfast
S5(config-if)#spanning-tree bpduguard enable
S5(config-if)#ex
Switch 6
Switch(config)#hostname S6
S6(config)#vlan 5
S6(config-vlan)#ex
S6(config)#vlan 100
S6(config-vlan)#ex
S6(config)#spanning-tree mode pvst
S6(config)#
S6(config)#interface fa0/1
S6(config-if)#switchport mode trunk
S6(config-if)#switchport trunk allowed vlan 1-1005
S6(config-if)#ex
S6(config)#
S6(config)#interface fa0/5
S6(config-if)#switchport mode access
S6(config-if)#switchport access vlan 1
S6(config-if)#spanning-tree portfast
S6(config-if)#spanning-tree bpduguard enable
S6(config-if)#ex
S6(config)#interface fa0/6
S6(config-if)#switchport mode access
S6(config-if)#switchport access vlan 5
S6(config-if)#spanning-tree portfast
S6(config-if)#spanning-tree bpduguard enable
S6(config-if)#ex
Setelah selesai semua konfigrasi masing-masing switch, seting IP PC dengan segment network berdasarkan VLAN masing-masing.
Dan jangan lupa bahwa IP Gateway dimasing-masing komputer adalah IP standby dari HSRP.
Verifikasi.
Posting Komentar untuk " Cisco | Vlan, PVST, HSRP dan EtherChannel (Part-2)"