본문 바로가기
인프라

한드림넷 SG2452G VLAN 설정

by 아이티이즈 2024. 7. 30.
반응형


1. VLAN 생성

SG2452G>en
SG2452G#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SG2452G(config)#vlan database
SG2452G(config-vlan)#vlan 10 bridge 1
SG2452G(config-vlan)#end

 

2. 스위치 포트에 VLAN 설정 (Access Mode)

SG2452G>en
SG2452G#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SG2452G(config)#interface range ge1-8  < 1~ 8번 포트 선택)
% ge1-8 Selected
SG2452G(config-if-range)#switchport access vlan 10
% ge18-22 Selected
SG2452G(config-if-range)#end

 

 

3. Trunk VLAN 설정


SG2452G#en
SG2452G#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SG2452G(config)#interface range ge10
% ge10 Selected
SG2452G(config-if-range)#switchport trunk allowed 10

 

4. .VLAN 제거

SG2452G#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SG2452G(config)#vlan database
SG2452G(config-vlan)#no vlan 7 bridge 1
SG2452G(config-vlan)#end
반응형