思科交換Voice VLAN怎么設(shè)置(2)
思科交換Voice VLAN怎么設(shè)置
配置流量的優(yōu)先級(jí)
1) 進(jìn)入全局模式 configure terminal
2) 進(jìn)入接口模式 ineterface 接口
3) 設(shè)置從IP電話接入端口收到數(shù)據(jù)報(bào)的優(yōu)先級(jí)
switchport priority extend [cos 值|trust]
cos 值:取值為0-7,7為最高
trust:配置電話接入端口信任從PC收到的數(shù)據(jù)優(yōu)先級(jí)
案例
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設(shè)置的相關(guān)文章: