SlideShare una empresa de Scribd logo
1 de 9
Descargar para leer sin conexión
VLAN Configuration Commands
Table of Contents
Table of Contents
Chapter 1 VLAN Configuration Commands ....................................................................................... 1
1.1 VLAN Configuration Commands........................................................................................... 1
1.1.1 vlan............................................................................................................................. 1
1.1.2 name .......................................................................................................................... 2
1.1.3 switchport pvid............................................................................................................ 3
1.1.4 switchport mode ......................................................................................................... 3
1.1.5 switchport trunk .......................................................................................................... 4
1.1.6 show vlan ................................................................................................................... 6
- I -
VLAN Configuration Commands
Chapter 1 VLAN Configuration Commands
1.1 VLAN Configuration Commands
VLAN configuration commands include:
vlan
name
switchport pvid
switchport mode
switchport trunk
show vlan
1.1.1 vlan
To add a VLAN, use the vlan command. Use the no form of this command to delete a
VLAN.
[no] vlan vlan-id
Parameter
Parameter Description
vlan-id ID of the VLAN. Range is from 1 to 4094。
Default
none
Command mode
global
Instruction
Use this command to enter VLAN configuration mode and to modify some attributes of
the VLAN.
- 1 -
VLAN Configuration Commands
Example
This example shows how to add a new VLAN:
Switch_config#
Switch_config#vlan 2
Switch_config_vlan_2#
1.1.2 name
To assign a name to a VLAN, use the name command. Use the no form of this
command to remove the name assigned to a VLAN.
[no] name str
Parameter
Parameter Description
str Name of the defined VLAN。The name consists of up to 32
characters.
Default
The default VLAN name is ‘Default’. Other VLAN name is VLANxxxx (xxxx is 4-digit
stack ID)
Command mode
VLAN configuration mode
Instruction
This command can modify VLAN name to indicate special VLAN according to special
requirements.
Example
The following command modify vlan200 to main405.
Switch_config#
Switch_config#
Switch_config#vlan 200
Switch_config_vlan_200#name ?
WORD The ascii name of VLAN(32bytes)
Switch_config_vlan_200#name main405
- 2 -
VLAN Configuration Commands
1.1.3 switchport pvid
To configure port VLAN of in the access mode, use the switchport pvid command.
switchport pvid vlan-id
no switchport pvid
Parameter
Parameter Description
vlan-id VLAN ID of the port。 Range is from 1 to 4094。
Default
All ports are subordinate to VLAN 1.
Command mode
interface configuration mode
Instruction
Vlan of the pvid must exist before configuring this command. The port can be access
mode or frame relay mode.
Example
The following example configures interface fastethernet 0/1 as the access interface of
VLAN 10:
Switch(config)#interface f0/1
Switch(config)#vlan10
Switch(config-f0/1)#switchport pvid 10
1.1.4 switchport mode
To configure the interface mode, use the switchport mode command.
switchport mode {access | dot1q-tunnel | trunk}
Parameter
Parameter Description
access Sets a nontrunking, nontagged single VLAN Layer 2 interface.
- 3 -
VLAN Configuration Commands
dot1q-tunnel Sets the trunking mode to TUNNEL unconditionally.
trunk Specifies a trunking VLAN Layer 2 interface.
Default
Access mode
Command mode
interface configuration mode
Instruction
If you enter access mode, the interface goes into permanent nontrunking mode and
negotiates to convert the link into a nontrunk link even if the neighboring interface does
not agree to the change.
If you enter trunk mode, the interface goes into permanent trunking mode and
negotiates to convert the link into a trunk link even if the neighboring interface does not
agree to the change.
If you enter dot1q-tunnel mode, the port is set unconditionally as an 802.1Q tunnel
port.
The switchport mode command conflicts with 802.1X protocol. You cannot configure
802.1X protocol in trunk mode. 802.1X protocol is valid only in access mode.
Example
The following example configures the port to the trunk mode:
Switch(config-f0/1)#switchport mode trunk
1.1.5 switchport trunk
To set the trunk characteristics, use the switchport trunk commands. To reset all of the
trunking characteristics back to the original defaults, use the no form of this command.
[no] switchport trunk {vlan-allowed vlan-list} | {vlan-untagged vlan-list }
Parameter
Parameter Description
vlan-allowed Sets the list of allowed VLANs that transmit traffic from this
interface in tagged format. Value is from 1 to 4094.
vlan-untagged Sets the list of allowed VLANs that transmit traffic from this
interface in untagged format.Value is from 1 to 4094.
- 4 -
VLAN Configuration Commands
Default
The default native vlan ID is 1.
The valid VLAN ID is from 1 to 4094 (all VLANs).
Command mode
interface configuration
Instruction
You can use this command on an interface no matter it is in access or trunk mode. But
this command is valid only when the interface is in trunking mode.
The vlan-allowed parameter sets the list of allowed VLANs that transmit traffic from this
interface in tagged format. The vlan-untagged parameter sets the list of allowed VLANs
that transmit traffic from this interface in untagged format.
The vlan-list format is all | none | add | remove | except vlan-list[,vlan-list...] where:
•all—Specifies all VLANs from 1 to 1005. Beginning with Cisco IOS Release 12.4(15)T,
the valid VLAN ID range is from 1 to 4094.
•none—Indicates an empty list. This keyword is not supported in the switchport trunk
allowed vlan form of the command.
•add—Adds the defined list of VLANs to those currently set instead of replacing the
list.
•remove—Removes the defined list of VLANs from those currently set instead of
replacing the list.
•except—Lists the VLANs that should be calculated by inverting the defined list of
VLANs.
•vlan-list—Is either a single VLAN number from 1 to 1005 or a continuous range of
VLANs described by two VLAN numbers, the lesser one first, separated by a hyphen
that represents the VLAN IDs of the allowed VLANs when this port is in trunking mode.
Beginning with Cisco IOS Release 12.4(15)T, the valid VLAN ID range is from 1 to
4094.
Example
The following example configures VLAN ID range to 1-10:
Switch(config-f0/1)#switchport trunk vlan-allowed 1-10,20-30,55
Switch(config-f0/1)#switchport trunk vlan-untagged 2-1000
- 5 -
VLAN Configuration Commands
1.1.6 show vlan
To display VLAN information, use the show vlan command.
show vlan [id vlan-id | interface intf-id]
Parameter
Parameter Description
id Displays information about a single VLAN that is identified by a
VLAN ID number; valid values are from 1 to 4094.
interface Displays the specified interface
Default
none
Command mode
EXEC/ All configuration modes
Instruction
none
Example
The following example shows all VLAN information:
Switch#sho vlan
VLAN Status Name Ports
---- ------- ---------------- -------------------------------------------------
1 Static Default F0/1, F0/2, F0/3, F0/4, F0/5, F0/6, F0/7, F0/8
F0/9, F0/10, F0/11, F0/12, F0/13, F0/14, F0/15
F0/16, F0/17, F0/18, F0/19, F0/20, F0/21, F0/22
F0/23, F0/24, G1/1, G2/1, P1
2 Static VLAN0002 F0/3
3 Static VLAN0003 F0/3
4 Static VLAN0004 F0/3
5 Static VLAN0005 F0/3
6 Static VLAN0006 F0/3
Status: indicates the source of VLAN. Static: indicates the VLAN is formed by
configuration. Dynamic: indicates the VLAN is dynamically formed by GVRP protocol.
The following example shows the concrete information of a VLAN:
- 6 -
VLAN Configuration Commands
Switch> show vlan id 1
VLAN id: 1, Name: default, TotalPorts:11
Ports Atttributes
-----------------------------------------------------------------
F0/1 Trunk,Untagged
F0/2 Access
F0/5 Trunk,Untagged
F0/7 Trunk,Tagged
F0/8 Trunk,Tagged
F0/9 Trunk,Tagged
F0/11 Access
F0/12 Access
F0/14 Trunk,Tagged
F0/15 Trunk,Tagged
F0/16 Trunk,Untagged
The following example shows the relevant information about a VLAN on an interface:
Switch#sho vlan int f0/6
Interface VLAN
Name Property PVID Vlan-Map uTagg-VLan-Map
-------------------- -------- ---- ---------------- ----------------
FastEthernet0/6 Trunk 1 3,5,7,9,11,13,15 none
17,19
Switch#sho vlan int f0/7
Interface VLAN
Name Property PVID Vlan-Map uTagg-VLan-Map
-------------------- -------- ---- ---------------- ----------------
FastEthernet0/7 Access 7 7 ----
- 7 -

Más contenido relacionado

La actualidad más candente

Expl sw chapter_06_inter_vlan
Expl sw chapter_06_inter_vlanExpl sw chapter_06_inter_vlan
Expl sw chapter_06_inter_vlan
aghacrom
 
How to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switchHow to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switch
IT Tech
 
Final exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wirelessFinal exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wireless
kratos2424
 
Inter-VLAN Routing
Inter-VLAN RoutingInter-VLAN Routing
Inter-VLAN Routing
rmosate
 
Vlan switch port modes
Vlan switch port modesVlan switch port modes
Vlan switch port modes
IT Tech
 
Concepts: Management VLAN
Concepts: Management VLANConcepts: Management VLAN
Concepts: Management VLAN
Jelmer de Reus
 
KPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_finalKPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_final
Fisal Anwari
 

La actualidad más candente (17)

CCNA- part 9 vlan
CCNA- part 9 vlanCCNA- part 9 vlan
CCNA- part 9 vlan
 
Expl sw chapter_06_inter_vlan
Expl sw chapter_06_inter_vlanExpl sw chapter_06_inter_vlan
Expl sw chapter_06_inter_vlan
 
App Note Vlan Br Vlanid Transl
App Note Vlan Br Vlanid TranslApp Note Vlan Br Vlanid Transl
App Note Vlan Br Vlanid Transl
 
How to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switchHow to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switch
 
VTP
VTPVTP
VTP
 
VLAN
VLANVLAN
VLAN
 
Cap6 intervlan routing
Cap6   intervlan routingCap6   intervlan routing
Cap6 intervlan routing
 
Final exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wirelessFinal exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wireless
 
Inter-VLAN Routing
Inter-VLAN RoutingInter-VLAN Routing
Inter-VLAN Routing
 
Vlan switch port modes
Vlan switch port modesVlan switch port modes
Vlan switch port modes
 
Day 14.2 configuringvla ns
Day 14.2 configuringvla nsDay 14.2 configuringvla ns
Day 14.2 configuringvla ns
 
Concepts: Management VLAN
Concepts: Management VLANConcepts: Management VLAN
Concepts: Management VLAN
 
CCNA Lab 5-Configuring Inter-VLAN Routing
CCNA Lab 5-Configuring Inter-VLAN RoutingCCNA Lab 5-Configuring Inter-VLAN Routing
CCNA Lab 5-Configuring Inter-VLAN Routing
 
Cisco 2960 basic configuration – vlan configuration
Cisco 2960 basic configuration – vlan configurationCisco 2960 basic configuration – vlan configuration
Cisco 2960 basic configuration – vlan configuration
 
Ccna 9
Ccna  9Ccna  9
Ccna 9
 
VLAN Trunking Protocol (VTP)
VLAN Trunking Protocol (VTP)VLAN Trunking Protocol (VTP)
VLAN Trunking Protocol (VTP)
 
KPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_finalKPUCC-Rs instructor ppt_chapter3_final
KPUCC-Rs instructor ppt_chapter3_final
 

Destacado

Vmware tools-installation-configuration
Vmware tools-installation-configurationVmware tools-installation-configuration
Vmware tools-installation-configuration
Ram Prasad Ohnu
 
Chapter 14 - Sw Conf
Chapter 14 - Sw ConfChapter 14 - Sw Conf
Chapter 14 - Sw Conf
phanleson
 
Cisco Router Basic Configuration
Cisco Router Basic ConfigurationCisco Router Basic Configuration
Cisco Router Basic Configuration
Prof. Erwin Globio
 
Lab practice 1 configuring basic routing and switching (with answer)
Lab practice 1   configuring basic routing and switching (with answer) Lab practice 1   configuring basic routing and switching (with answer)
Lab practice 1 configuring basic routing and switching (with answer)
Arz Sy
 
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm
 
Introduction of firewall slides
Introduction of firewall slidesIntroduction of firewall slides
Introduction of firewall slides
rahul kundu
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracer
Anabia Anabia
 

Destacado (17)

Vmware tools-installation-configuration
Vmware tools-installation-configurationVmware tools-installation-configuration
Vmware tools-installation-configuration
 
Configuracion de swicth
Configuracion de swicthConfiguracion de swicth
Configuracion de swicth
 
Chapter 14 - Sw Conf
Chapter 14 - Sw ConfChapter 14 - Sw Conf
Chapter 14 - Sw Conf
 
Open Ecosystem VMWare Installation
Open Ecosystem VMWare InstallationOpen Ecosystem VMWare Installation
Open Ecosystem VMWare Installation
 
Cisco Router Basic Configuration
Cisco Router Basic ConfigurationCisco Router Basic Configuration
Cisco Router Basic Configuration
 
Lecture 4 firewalls
Lecture 4 firewallsLecture 4 firewalls
Lecture 4 firewalls
 
VMware ESXi 6.0 Installation Process
VMware ESXi 6.0 Installation ProcessVMware ESXi 6.0 Installation Process
VMware ESXi 6.0 Installation Process
 
Firewalls
FirewallsFirewalls
Firewalls
 
VLAN Network for Extreme Networks
VLAN Network for Extreme NetworksVLAN Network for Extreme Networks
VLAN Network for Extreme Networks
 
Virtuals LAN
Virtuals LANVirtuals LAN
Virtuals LAN
 
Router commands
Router commandsRouter commands
Router commands
 
Lab practice 1 configuring basic routing and switching (with answer)
Lab practice 1   configuring basic routing and switching (with answer) Lab practice 1   configuring basic routing and switching (with answer)
Lab practice 1 configuring basic routing and switching (with answer)
 
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
Alphorm.com Support de la Formation Cisco CCNP SWITCH (examen 300-115)
 
Vlan
Vlan Vlan
Vlan
 
Firewall Design and Implementation
Firewall Design and ImplementationFirewall Design and Implementation
Firewall Design and Implementation
 
Introduction of firewall slides
Introduction of firewall slidesIntroduction of firewall slides
Introduction of firewall slides
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracer
 

Similar a 06 vlan configuration commands (20)

Vlan truks
Vlan truksVlan truks
Vlan truks
 
Vlan
VlanVlan
Vlan
 
Лекц 9
Лекц 9Лекц 9
Лекц 9
 
Vlan lab
Vlan labVlan lab
Vlan lab
 
Day 5 VIRTUAL LANS
Day 5 VIRTUAL LANSDay 5 VIRTUAL LANS
Day 5 VIRTUAL LANS
 
VIRTUAL LANS
VIRTUAL LANSVIRTUAL LANS
VIRTUAL LANS
 
Guia completa vlan
Guia completa vlanGuia completa vlan
Guia completa vlan
 
Virtual LAN and Vlan Trunking Protocol.pptx
Virtual LAN and Vlan Trunking Protocol.pptxVirtual LAN and Vlan Trunking Protocol.pptx
Virtual LAN and Vlan Trunking Protocol.pptx
 
Chapter 8 .vlan.pdf
Chapter 8 .vlan.pdfChapter 8 .vlan.pdf
Chapter 8 .vlan.pdf
 
Config vlans
Config vlansConfig vlans
Config vlans
 
How to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guideHow to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guide
 
VLAN
VLANVLAN
VLAN
 
Vlan.pdf
Vlan.pdfVlan.pdf
Vlan.pdf
 
VLAN Virtual Area Network ,Switch,Ethernet ,VIkram Snehi
VLAN Virtual Area Network ,Switch,Ethernet ,VIkram SnehiVLAN Virtual Area Network ,Switch,Ethernet ,VIkram Snehi
VLAN Virtual Area Network ,Switch,Ethernet ,VIkram Snehi
 
Vlan
VlanVlan
Vlan
 
Scaling-VLANs-PPT.pptx
Scaling-VLANs-PPT.pptxScaling-VLANs-PPT.pptx
Scaling-VLANs-PPT.pptx
 
VLANs_Module_3.pptx
VLANs_Module_3.pptxVLANs_Module_3.pptx
VLANs_Module_3.pptx
 
Vla ns
Vla nsVla ns
Vla ns
 
Vla ns
Vla nsVla ns
Vla ns
 
Vlan Types
Vlan TypesVlan Types
Vlan Types
 

Último

Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Sheetaleventcompany
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
Diya Sharma
 

Último (20)

2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 

06 vlan configuration commands

  • 2. Table of Contents Table of Contents Chapter 1 VLAN Configuration Commands ....................................................................................... 1 1.1 VLAN Configuration Commands........................................................................................... 1 1.1.1 vlan............................................................................................................................. 1 1.1.2 name .......................................................................................................................... 2 1.1.3 switchport pvid............................................................................................................ 3 1.1.4 switchport mode ......................................................................................................... 3 1.1.5 switchport trunk .......................................................................................................... 4 1.1.6 show vlan ................................................................................................................... 6 - I -
  • 3. VLAN Configuration Commands Chapter 1 VLAN Configuration Commands 1.1 VLAN Configuration Commands VLAN configuration commands include: vlan name switchport pvid switchport mode switchport trunk show vlan 1.1.1 vlan To add a VLAN, use the vlan command. Use the no form of this command to delete a VLAN. [no] vlan vlan-id Parameter Parameter Description vlan-id ID of the VLAN. Range is from 1 to 4094。 Default none Command mode global Instruction Use this command to enter VLAN configuration mode and to modify some attributes of the VLAN. - 1 -
  • 4. VLAN Configuration Commands Example This example shows how to add a new VLAN: Switch_config# Switch_config#vlan 2 Switch_config_vlan_2# 1.1.2 name To assign a name to a VLAN, use the name command. Use the no form of this command to remove the name assigned to a VLAN. [no] name str Parameter Parameter Description str Name of the defined VLAN。The name consists of up to 32 characters. Default The default VLAN name is ‘Default’. Other VLAN name is VLANxxxx (xxxx is 4-digit stack ID) Command mode VLAN configuration mode Instruction This command can modify VLAN name to indicate special VLAN according to special requirements. Example The following command modify vlan200 to main405. Switch_config# Switch_config# Switch_config#vlan 200 Switch_config_vlan_200#name ? WORD The ascii name of VLAN(32bytes) Switch_config_vlan_200#name main405 - 2 -
  • 5. VLAN Configuration Commands 1.1.3 switchport pvid To configure port VLAN of in the access mode, use the switchport pvid command. switchport pvid vlan-id no switchport pvid Parameter Parameter Description vlan-id VLAN ID of the port。 Range is from 1 to 4094。 Default All ports are subordinate to VLAN 1. Command mode interface configuration mode Instruction Vlan of the pvid must exist before configuring this command. The port can be access mode or frame relay mode. Example The following example configures interface fastethernet 0/1 as the access interface of VLAN 10: Switch(config)#interface f0/1 Switch(config)#vlan10 Switch(config-f0/1)#switchport pvid 10 1.1.4 switchport mode To configure the interface mode, use the switchport mode command. switchport mode {access | dot1q-tunnel | trunk} Parameter Parameter Description access Sets a nontrunking, nontagged single VLAN Layer 2 interface. - 3 -
  • 6. VLAN Configuration Commands dot1q-tunnel Sets the trunking mode to TUNNEL unconditionally. trunk Specifies a trunking VLAN Layer 2 interface. Default Access mode Command mode interface configuration mode Instruction If you enter access mode, the interface goes into permanent nontrunking mode and negotiates to convert the link into a nontrunk link even if the neighboring interface does not agree to the change. If you enter trunk mode, the interface goes into permanent trunking mode and negotiates to convert the link into a trunk link even if the neighboring interface does not agree to the change. If you enter dot1q-tunnel mode, the port is set unconditionally as an 802.1Q tunnel port. The switchport mode command conflicts with 802.1X protocol. You cannot configure 802.1X protocol in trunk mode. 802.1X protocol is valid only in access mode. Example The following example configures the port to the trunk mode: Switch(config-f0/1)#switchport mode trunk 1.1.5 switchport trunk To set the trunk characteristics, use the switchport trunk commands. To reset all of the trunking characteristics back to the original defaults, use the no form of this command. [no] switchport trunk {vlan-allowed vlan-list} | {vlan-untagged vlan-list } Parameter Parameter Description vlan-allowed Sets the list of allowed VLANs that transmit traffic from this interface in tagged format. Value is from 1 to 4094. vlan-untagged Sets the list of allowed VLANs that transmit traffic from this interface in untagged format.Value is from 1 to 4094. - 4 -
  • 7. VLAN Configuration Commands Default The default native vlan ID is 1. The valid VLAN ID is from 1 to 4094 (all VLANs). Command mode interface configuration Instruction You can use this command on an interface no matter it is in access or trunk mode. But this command is valid only when the interface is in trunking mode. The vlan-allowed parameter sets the list of allowed VLANs that transmit traffic from this interface in tagged format. The vlan-untagged parameter sets the list of allowed VLANs that transmit traffic from this interface in untagged format. The vlan-list format is all | none | add | remove | except vlan-list[,vlan-list...] where: •all—Specifies all VLANs from 1 to 1005. Beginning with Cisco IOS Release 12.4(15)T, the valid VLAN ID range is from 1 to 4094. •none—Indicates an empty list. This keyword is not supported in the switchport trunk allowed vlan form of the command. •add—Adds the defined list of VLANs to those currently set instead of replacing the list. •remove—Removes the defined list of VLANs from those currently set instead of replacing the list. •except—Lists the VLANs that should be calculated by inverting the defined list of VLANs. •vlan-list—Is either a single VLAN number from 1 to 1005 or a continuous range of VLANs described by two VLAN numbers, the lesser one first, separated by a hyphen that represents the VLAN IDs of the allowed VLANs when this port is in trunking mode. Beginning with Cisco IOS Release 12.4(15)T, the valid VLAN ID range is from 1 to 4094. Example The following example configures VLAN ID range to 1-10: Switch(config-f0/1)#switchport trunk vlan-allowed 1-10,20-30,55 Switch(config-f0/1)#switchport trunk vlan-untagged 2-1000 - 5 -
  • 8. VLAN Configuration Commands 1.1.6 show vlan To display VLAN information, use the show vlan command. show vlan [id vlan-id | interface intf-id] Parameter Parameter Description id Displays information about a single VLAN that is identified by a VLAN ID number; valid values are from 1 to 4094. interface Displays the specified interface Default none Command mode EXEC/ All configuration modes Instruction none Example The following example shows all VLAN information: Switch#sho vlan VLAN Status Name Ports ---- ------- ---------------- ------------------------------------------------- 1 Static Default F0/1, F0/2, F0/3, F0/4, F0/5, F0/6, F0/7, F0/8 F0/9, F0/10, F0/11, F0/12, F0/13, F0/14, F0/15 F0/16, F0/17, F0/18, F0/19, F0/20, F0/21, F0/22 F0/23, F0/24, G1/1, G2/1, P1 2 Static VLAN0002 F0/3 3 Static VLAN0003 F0/3 4 Static VLAN0004 F0/3 5 Static VLAN0005 F0/3 6 Static VLAN0006 F0/3 Status: indicates the source of VLAN. Static: indicates the VLAN is formed by configuration. Dynamic: indicates the VLAN is dynamically formed by GVRP protocol. The following example shows the concrete information of a VLAN: - 6 -
  • 9. VLAN Configuration Commands Switch> show vlan id 1 VLAN id: 1, Name: default, TotalPorts:11 Ports Atttributes ----------------------------------------------------------------- F0/1 Trunk,Untagged F0/2 Access F0/5 Trunk,Untagged F0/7 Trunk,Tagged F0/8 Trunk,Tagged F0/9 Trunk,Tagged F0/11 Access F0/12 Access F0/14 Trunk,Tagged F0/15 Trunk,Tagged F0/16 Trunk,Untagged The following example shows the relevant information about a VLAN on an interface: Switch#sho vlan int f0/6 Interface VLAN Name Property PVID Vlan-Map uTagg-VLan-Map -------------------- -------- ---- ---------------- ---------------- FastEthernet0/6 Trunk 1 3,5,7,9,11,13,15 none 17,19 Switch#sho vlan int f0/7 Interface VLAN Name Property PVID Vlan-Map uTagg-VLan-Map -------------------- -------- ---- ---------------- ---------------- FastEthernet0/7 Access 7 7 ---- - 7 -