Vlan 생성
Switch(config)#interface vlan 2
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#interface vlan 3
Switch(config-if)#no shutdown
Switch(config-if)#exit
Vlan 이름추가
Switch(config)#vlan 2
Switch(config-vlan)#name VLAN2
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#name VLAN3
Switch(config-vlan)#exit
Switch#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5
Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24, Gi0/1
Gi0/2
2 VLAN2 active
3 VLAN3 active
13~ 18 포트를 VLAN 2 에 등록
Switch(config)#interface FastEthernet 0/13 ~ 18 까지 동일하게 입력
Switch(config-if)#no shutdown
Switch(config-if)#switchport
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
---- -------------------------------- --------- -------------------------------
1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5
Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10, Fa0/11, Fa0/12, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gi0/1, Gi0/2
2 VLAN2 active Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18
3 VLAN3 active
해당 VLAN 정보 보기
Switch#show vlan id 2
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
2 VLAN2 active Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
2 enet 100002 1500 - - - - - 0 0
Remote SPAN VLAN
----------------
Disabled
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
VLAN Type Ports
---- ----------------- -------------------------------------------------------
댓글 없음:
댓글 쓰기