LAN Switching Voice and Data Vlan Configuration Example
From DocWiki
(Difference between revisions)
| Line 1: | Line 1: | ||
| + | <nowiki><pre> | ||
Switch# configure terminal | Switch# configure terminal | ||
Switch(config)# interface gigabitethernet1/0/1 <--- example interface | Switch(config)# interface gigabitethernet1/0/1 <--- example interface | ||
| Line 5: | Line 6: | ||
Switch(config-if)# switchport voice vlan 3 <---- exampale voice vlan 3 | Switch(config-if)# switchport voice vlan 3 <---- exampale voice vlan 3 | ||
Switch(config-if)# switchport trunk native vlan 2 <- example data vlan 2 | Switch(config-if)# switchport trunk native vlan 2 <- example data vlan 2 | ||
| - | + | </pre></nowiki> | |
ex. vlan 2 - data vlan | ex. vlan 2 - data vlan | ||
vlan 3 - voice vlan | vlan 3 - voice vlan | ||
[[Category:Configuration Examples]] | [[Category:Configuration Examples]] | ||
Revision as of 17:14, 23 June 2010
<pre> Switch# configure terminal Switch(config)# interface gigabitethernet1/0/1 <--- example interface Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# switchport voice vlan 3 <---- exampale voice vlan 3 Switch(config-if)# switchport trunk native vlan 2 <- example data vlan 2 </pre>
ex. vlan 2 - data vlan
vlan 3 - voice vlan