VLAN Command List


VLAN Command List

To configure a simple VLAN, first create the VLAN, and then assign ports to that VLAN. The following table shows common VLAN configuration commands.

Task

Command(s)

Define a VLAN
Giving the VLAN a name is optional. VLAN names must be unique.

switch(config)#vlan <1-4094>
switch(config-vlan)#name WORD

Delete a VLAN
When you delete a VLAN, all ports assigned to the VLAN remain associated with the deleted VLAN, and are therefore inactive. You must reassign the ports to the appropriate VLAN.

switch(config)#no vlan <1-4094>

Assign ports to the VLAN
Note: If you assign a port to a VLAN that does not exist, the VLAN will be created automatically.

switch(config-if)#switchport access vlan <1-4094>

Show a list of VLANs on the system

switch#show vlan
switch#show vlan brief

Show information for a specific VLAN

switch#show vlan id <1-4064>

Example
The following commands create VLAN 12 named IS_VLAN, identifies port 0/12 as having only workstations attached to it, and assigns the port to VLAN 12.

switch#config t
switch(config)#vlan 12
switch(config-vlan)#name IS_VLAN
switch(config-vlan)#interface fast 0/12
switch(config-if)#switchport access vlan 12


Credit: Testout 640-802 CCNA Notes
คำสำคัญ (Tags): #ccna#network#vlan#vlan command
หมายเลขบันทึก: 319837เขียนเมื่อ 12 ธันวาคม 2009 20:49 น. ()แก้ไขเมื่อ 22 มิถุนายน 2012 09:51 น. ()สัญญาอนุญาต: ครีเอทีฟคอมมอนส์แบบ แสดงที่มา-ไม่ใช้เพื่อการค้า-ไม่ดัดแปลงจำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท