본문 바로가기
Cisco Switch 시작하기

Cisco Switch Interface Trunking and Rapid PVST

by davidfreeforever 2024. 9. 25.

※ 쿠팡 파트너스 활동을 통해 일정액의 수수료를 제공받을 수 있습니다.

1. Interface Trunking Configuration (SW1 G0/1 & SW2 G0/1).

Network Configuration
<Network Configuration>

(1) Access mode configuration for SW1 G1/1 & G1/2 (-> VLAN ID 1개만 연결되는 Interface에 설정.)

SW1>enable
SW1#conf t
SW1 (config)#int g1/1
SW1 (config-if)#switchport mode access
SW1 (config-if)#switchport access vlan 11
SW1 (config-if)#exit
SW1 (config)#int g1/2
SW1 (config-if)#switchport mode access
SW1 (config-if)#switchport access vlan 12
SW1 (config-if)#exit
SW1 (config)#int vlan 11
SW1 (config-if)#no shut
SW1 (config-if)#exit
SW1 (config)#int vlan 12
SW1 (config-if)#no shut

SW1 (config-if)#end

SW1#wr

 

(2) Trunk mode configuration for SW1 G0/1 & SW2 G0/1 (-> VLAN ID 2개 이상 연결되는 Interface에 설정.)

SW1 >enable
SW1#conf t

SW1 (config)#int g0/1

SW1 (config-if)#switchport trunk encapsulation dot1q

SW1 (config-if)#switchport mode trunk
SW1 (config-if)#switchport trunk allowed vlan 11,12

SW1 (config-if)#end

SW1#wr

 

SW2 >enable
SW2#conf t

SW2 (config)#int g0/1

SW2 (config-if)#switchport trunk encapsulation dot1q

SW2 (config-if)#switchport mode trunk
SW2 (config-if)#switchport trunk allowed vlan 11,12

SW2 (config)#int g1/1

SW2 (config-if)#switchport trunk encapsulation dot1q

SW2 (config-if)#switchport mode trunk
SW2 (config-if)#switchport trunk allowed vlan 11,12

SW2 (config-if)#end

SW2#wr

Console Configuration
<Console Configuration>

2. Rapid PVST Configuration.

SW2#conf t
SW2(config)#spanning-tree mode rapid-pvst
SW2(config)#end
SW2#wr

Console Configuration
<Console Configuration>
Running Configuration
<Show Running Configuration>