思科交换Voice VLAN怎么设置(2)
思科交换Voice VLAN怎么设置
配置流量的优先级
1) 进入全局模式 configure terminal
2) 进入接口模式 ineterface 接口
3) 设置从IP电话接入端口收到数据报的优先级
switchport priority extend [cos 值|trust]
cos 值:取值为0-7,7为最高
trust:配置电话接入端口信任从PC收到的数据优先级
案例
Switch(config)#inter f0/4
Switch(config-if)#switchport priority extend cos 7
Switch#show interface f0/4 switchport
Name: Fa0/4
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: dot1p
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: 7
----------------------------------------------------------------------------
Switch(config-if)#switchport priority extend trust
Switch#show interf f0/4 switch
Name: Fa0/4
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: dot1p
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: trusted
----------------------------------------------------------------
Switch#show running interfa f0/4
Building configuration...
Current configuration : 139 bytes
!
interface FastEthernet0/4
switchport voice vlan dot1p
switchport priority extend trust
mls qos trust cos
spanning-tree portfast
end
案例
CCIE-LAB(YY)
题目要求
Configure SW1 interface f0/15 to support a future cisco 7960 IP phone connection.The Cisco 7960 IP phone supports 802.1q. Voice traffic uses VLAN 200 named VLAN_VOICE. Data traffic uses VLAN A (VLAN 4).Configure the switch so that traffic on PC connects.
配置
SW1
config terminal
mls qos
vlan 200
name VLAN_VOICE
inteface f0/15
switchport trunk encapsulation 802.1q
switchport mode trunk
switchport trunk native vlan 4
switchport voice vlan 200
思科交换Voice VLAN设置的相关文章: