
23-1.PVS.pkt 파일 실행ciscoconciscoconf t
! VLAN 1 인터페이스 설정
int vlan 1
ip address 192.168.100.2 255.255.255.0
no shutdown
ip default-gateway 192.168.100.254
! VTP 설정
vtp domain CCNA
vtp password cisco
! 트렁크 포트 설정
int range fa0/20, fa0/24
switchport trunk encapsulation dot1q
switchport mode trunk
! 액세스 포트 설정
int fa0/1
switchport mode access
switchport access vlan 11
spanning-tree portfast
int fa0/2
switchport mode access
switchport access vlan 12
spanning-tree portfast
end
conf t
! VLAN 1 인터페이스 설정
int vlan 1
ip address 192.168.100.3 255.255.255.0
no shutdown
ip default-gateway 192.168.100.254
! VTP 설정
vtp domain CCNA
vtp password cisco
! 트렁크 포트 설정
int range fa0/22, fa0/24
switchport trunk encapsulation dot1q
switchport mode trunk
int fa0/10
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree portfast trunk
! VLAN 생성
vlan 11
name VLAN_A
vlan 12
name VLAN_B
vlan 13
name VLAN_C
vlan 14
name VLAN_D
end
conf t
! VLAN 1 인터페이스 설정
int vlan 1
ip address 192.168.100.4 255.255.255.0
no shutdown
ip default-gateway 192.168.100.254
! VTP 설정
vtp domain CCNA
vtp password cisco
! 트렁크 포트 설정
int range fa0/20, fa0/24
switchport trunk encapsulation dot1q
switchport mode trunk
end
show vlan brief
show vtp status
show vtp password
conf t
int fa0/0
no shutdown
int fa0/0.1
encapsulation dot1q 1
ip address 192.168.100.254 255.255.255.0
int fa0/0.2
encapsulation dot1q 2
ip address 192.168.100.254 255.255.255.0
int fa0/0.3
encapsulation dot1q 3
ip address 192.168.100.254 255.255.255.0
...
int fa0/0.14
encapsulation dot1q 14
ip address 192.168.100.254 255.255.255.0
end
📌 PVST란?
• PVST(Per VLAN Spanning Tree)는 VLAN마다 독립적인 STP를 구성
• VLAN별로 서로 다른 루트 브리지를 지정해 트래픽 로드 밸런싱 가능
✅ 확인 명령어
show spanning-tree
→ SW1, SW2, SW3에서 VLAN 1, 11~14에 대해 STP 동작 여부 확인