KEMBAR78
Create VLANs & Assign Names | PDF
0% found this document useful (0 votes)
21 views1 page

Create VLANs & Assign Names

The document provides a step-by-step guide for configuring VLANs on a switch, including creating VLANs, assigning access ports, and setting up trunk ports. It also covers configuring native VLANs for untagged traffic and voice VLANs for IP phones. Finally, it includes a command to display all configured VLANs.

Uploaded by

moath.dibian2020
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Create VLANs & Assign Names

The document provides a step-by-step guide for configuring VLANs on a switch, including creating VLANs, assigning access ports, and setting up trunk ports. It also covers configuring native VLANs for untagged traffic and voice VLANs for IP phones. Finally, it includes a command to display all configured VLANs.

Uploaded by

moath.dibian2020
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Create VLANs & Assign Names:

Switch(config)# vlan 10
Switch(config-vlan)# name SALES
Switch(config-vlan)# exit
----------------------------------------------------------------------------------
Assign Access Ports to VLANs:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# switchport mode access # Set as access port
Switch(config-if)# switchport access vlan 10 # Assign to VLAN 10
Switch(config-if)# exit
----------------------------------------------------------------------------------
Trunk Port Configuration (802.1Q):
Switch(config)# interface gigabitethernet0/24
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation dot1q # Required on some older
switches
Switch(config-if)# switchport trunk allowed vlan all
Switch(config-if)# switchport trunk allowed vlan 10,20,30
Switch(config-if)# exit
----------------------------------------------------------------------------------
Set Native VLAN (Untagged Traffic):
Switch(config-if)# switchport trunk native vlan 99 # VLAN 99 = native
----------------------------------------------------------------------------------
Voice VLAN Configuration (For IP Phones):
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10 # Data VLAN
Switch(config-if)# switchport voice vlan 20 # Voice VLAN
Switch(config-if)# mls qos trust cos # Enable QoS for voice
Switch(config-if)# exit
----------------------------------------------------------------------------------
Show All VLANs:
Switch# show vlan brief

You might also like