思科交换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设置的相关文章: