5.3 VLAN:語音VLAN

1.簡介

  在生產環境中,一般IP語音電話,網絡視頻這一類的數據,都希望延遲,抖動小一點,流量傳輸優先級高一點。於是可以通過配置voice vlan對數據進行標記,以便滿足對數據流的傳輸要求。voice vlan配置很簡單,思科和華爲公用一個拓撲圖。
在這裏插入圖片描述

2.思科

1.創建數據vlan和語音vlan
Switch(config)#vlan 30 ---->數據vlan
Switch(config)#vlan 40 ----->語音vlan

2.啓動LLDP
Switch(config)#lldp run  ----->思科也可以用CDP發現語音vlan配置

3.配置語音和數據vlan
Switch(config)#int ether0/1 ---->不要糾結端口與拓撲圖不一致,以實際端口爲準
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#switchport voice vlan 40
是不是覺得很奇怪,一般access不是隻能通過一個vlan嗎?voice不受影響哦!

4.查看配置
Switch#show int ether0/1 switchport 
Name: Et0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Access Mode VLAN: 30 (VLAN0030)
Voice VLAN: 40 (VLAN0040)

3.華爲

1.創建數據和語音vlan
[SW1]vlan batch 30 40 

2.開啓lldp
[SW1]lldp enable

3.配置端口
[SW1] interface gigabitethernet 0/0/1  ----->別糾結端口與拓撲不一致,以實際端口爲準
[SW1-GigabitEthernet0/0/1]port link-type trunk 
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 30 ----->這裏不能將40加進來,不然報錯哦!
[SW1-GigabitEthernet0/0/1]voice-vlan 40 enable 
[SW1-GigabitEthernet0/0/1] voice-vlan remark-mode vlan ----->這裏設置voice vlan的默認qos優先級,不過eNSP不支持該命令!

4.查看配置
[SW1]display voice-vlan 40 status 
Voice VLAN Configurations: 
-----------------------------------------------------------
Voice VLAN ID            : 40
Voice VLAN status        : Enable
Voice VLAN aging time    : 1440(minutes)
Voice VLAN 8021p remark  : 6 ------>這裏是2層qos (即cos)優先級
Voice VLAN dscp remark   : 46  ------>這裏就是3層qos (即dscp)優先級
-----------------------------------------------------------
Port Information: 
-----------------------------------------------------------
Port                     Add-Mode  Security-Mode  Legacy
-----------------------------------------------------------
GigabitEthernet0/0/1     Auto      Security       Disable

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章