Konfigurasi Switch 1
Part 1: Configure VLANs
S1>ena
S1#configure
terminal
S1(config)#enable
password cisco
S1(config)#line
consol 0
S1(config-line)#password
cisco
S1(config-line)#login
S1(config-line)#line
vty 0 4
S1(config-line)#password
cisco
S1(config-line)#login
Create VLANs
S1(config-line)#vlan
10
S1(config-vlan)#vlan
20
S1(config-vlan)#vlan
30
S1(config-vlan)#vlan
40
S1(config-vlan)#vlan
50
S1(config-vlan)#vlan
60
S1(config-vlan)#vlan
70
S1(config-vlan)#vlan
80
S1(config-vlan)#vlan
99
S1(config-vlan)#exit
S1(config)#interface
fastEthernet 0/6
S1(config-if)#switchport
mode access
S1(config-if)#switchport
access vlan 30
S1(config-if)#no
shutdown
Verify the VLANs
S1(config)#do
show vlan brief
Assign
the trunks to native VLAN 99
S1(config)#int
range fa0/1-4
S1(config-if-range)#switchport
mode trunk
S1(config-if-range)#switchport
native vlan 99
S1(config-if-range)#no
shutdown
S1(config-if-range)#exit
S1(config)#interface vlan 99
S1(config-if)#ip
address 172.31.99.1 255.255.255.0
S1(config-if)#no shutdown
Part 2: Configure Spanning Tree PVST+ and Load Balancing
Configure STP
mode
S1(config)#spanning-tree
mode pvst
Configure Spanning Tree PVST+
load balancing
S1(config)#spanning-tree vlan 1,10,30,50,70 root primary
S1(config)#end
S1#show spanning-tree
Part 3: Configure PortFast and BPDU Guard
Configure
PortFast on the switches
S1(config)#interface
fastEthernet 0/6
S1(config-if)#spanning-tree
portfast
Configure BPDU
guard on the switches
S1(config-if)#spanning-tree
bpduguard enable
S1(config-if)#no shutdown
Konfigurasi switch 2
Part 1: Configure VLANs
S2>enable
S2#configure
terminal
S2(config)#enable
password cisco
S2(config)#line
consol 0
S2(config-line)#password
cisco
S2(config-line)#login
S2(config-line)#line
vty 0 4
S2(config-line)#password
cisco
S2(config-line)#login
Create VLANs
S2(config-line)#vlan
10
S2(config-vlan)#vlan
20
S2(config-vlan)#vlan
30
S2(config-vlan)#vlan
40
S2(config-vlan)#vlan
50
S2(config-vlan)#vlan
60
S2(config-vlan)#vlan
70
S2(config-vlan)#vlan
80
S2(config-vlan)#vlan
99
S2(config-vlan)#exit
S2(config-if)#interface
fastEthernet 0/18
S2(config-if)#switchport
mode access
S2(config-if)#switchport
access vlan 20
S2(config-if)#no
shutdown
S2(config-if)#end
Verify the VLANs
S2#show vlan brief
Assign the trunks to native VLAN
99
S2(config-if-range)#interface
range fastEthernet 0/1-4
S2(config-if-range)#switchport
mode trunk
S2(config-if-range)#switchport
native vlan 99
S2(config-if-range)#exit
S2(config-if)#interface
vlan 99
S2(config-if)#ip
address 172.31.99.2 255.255.255.0
S2(config-if)#no shutdown
Part 2: Configure Spanning Tree PVST+ and Load Balancing
Configure STP
mode
S2(config)#spanning-tree
mode pvst
Configure Spanning Tree PVST+
load balancing
S2(config)#spanning-tree
vlan 1,10,20,30,40,50,60,70,80,99 root secondary
S2(config)#end
S2#show spanning-tree
Part 3: Configure PortFast and BPDU Guard
Configure
PortFast on the switches
S2(config)#interface
fastEthernet 0/18
S2(config-if)#spanning-tree
portfast
Configure BPDU
guard on the switches
S2(config-if)#spanning-tree
bpduguard enable
S2(config-if)#no
shutdown
S2(config-if)#exit
S2#show running-config
Konfigurasi
switch 3
Part 1: Configure VLANs
S3>enable
S3#conf terminal
S3(config)#enable password cisco
S3(config)#line consol 0
S3(config-line)#password cisco
S3(config-line)#login
S3(config-line)#line vty 0 4
S3(config-line)#password cisco
S3(config-line)#login
Create VLANs
S3(config-line)#vlan 10
S3(config-vlan)#vlan 20
S3(config-vlan)#vlan 30
S3(config-vlan)#vlan 40
S3(config-vlan)#vlan 50
S3(config-vlan)#vlan 60
S3(config-vlan)#vlan 70
S3(config-vlan)#vlan 80
S3(config-vlan)#vlan 99
S3(config-vlan)#exit
S3(config)#interface fastEthernet
0/11
S3(config-if)#switchport mode
access
S3(config-if)#switchport access
vlan 10
S3(config-if)#no shutdown
S3(config-if)#end
Verify the VLANs
S3#show vlan brief
Assign the trunks to native VLAN
99
S3#configure
terminal
S3(config)#interface
range fastEthernet 0/1-4
S3(config-if-range)#switchport
mode trunk
S3(config-if-range)#switchport
native vlan 99
S3(config-if-range)#exit
S3(config)#interface
vlan 99
S3(config-if)#ip
address 172.31.99.3 255.255.255.0
S3(config-if)#no
shutdown
S3(config-if)#exit
Part 2: Configure Spanning Tree PVST+ and Load Balancing
Configure STP
mode
S3(config)#spanning-tree
mode pvst
Configure Spanning Tree PVST+
load balancing
S3(config)#spanning-tree
vlan 20,40,60,80 root primary
S3(config)#end
S3#show
spanning-tree
Part 3: Configure PortFast and BPDU Guard
Configure
PortFast on the switches
S3(config)#interface
fastEthernet 0/11
S3(config-if)#spanning-tree
portfast
Configure BPDU
guard on the switches
S3(config-if)#spanning-tree
bpduguard enable
S3(config-if)#no
shutdown
S3(config-if)#exit
S3#show running-config
Jangan lupa untuk selalu menyimpan konfigurasi di setiap switch dengan memasukkan perintah
copy running-config.
Baiklah teman-teman, semoga postingan saya ini bisa membantu dan bermanfaat. ^^
Jangan lupa untuk selalu menyimpan konfigurasi di setiap switch dengan memasukkan perintah
copy running-config.
Baiklah teman-teman, semoga postingan saya ini bisa membantu dan bermanfaat. ^^