如何在Cisco交换机上配置语音VLAN
2009-05-28 14:49
309 查看
在Cisco交换机上配置两个VLAN(Virtual Local Area Networks),一个用于语音,一个用于数据。
使用Cisco IOS命令来配置交换机
配置两个VLAN,一个用于语音,一个用于数据,并在Cisco Unified CME路由器(Cisco 3825 router)和交换机(Cisco catalyst 3560)之间建立一个trunk,在Cisco Catalyst Switch的一个外部接口上配置Cisco IOS Quality-of-Service(QoS)
主要步骤:
1. enable
2. vlan database
3. vlan vlan-number name vlan-name
4. vlan vlan-number name vlan-name
5. exit
6. wr
7. configure terminal
8. macro global apply cisco-global
9. interface slot-number/port-number
10. macro apply cisco-phone $AVID number $VVID number
11. interface slot-number/port-number
12. macro apply cisco-router $NVID number
13. end
14. wr
详细步骤:
Enters global configuration mode.
使用Cisco IOS命令来配置交换机
配置两个VLAN,一个用于语音,一个用于数据,并在Cisco Unified CME路由器(Cisco 3825 router)和交换机(Cisco catalyst 3560)之间建立一个trunk,在Cisco Catalyst Switch的一个外部接口上配置Cisco IOS Quality-of-Service(QoS)
主要步骤:
1. enable
2. vlan database
3. vlan vlan-number name vlan-name
4. vlan vlan-number name vlan-name
5. exit
6. wr
7. configure terminal
8. macro global apply cisco-global
9. interface slot-number/port-number
10. macro apply cisco-phone $AVID number $VVID number
11. interface slot-number/port-number
12. macro apply cisco-router $NVID number
13. end
14. wr
详细步骤:
Enters global configuration mode.
Command or Action | Purpose | |||
Step 1 | enable [/b] Example: Switch> enable | |||
Step 2 | vlan database [/b] Example: Switch# vlan database [/b] | |||
Step 3 | vlan[/b] vlan-number name vlan-name Example: Switch(vlan)# vlan 10 name data [/b] VLAN 10 modified Name: DATA | Specifies the number and name of the VLAN being configured. • vlan-number—Unique value that you assign to the dial-peer being configured. Range: 2 to 1004. • name—Name of the VLAN to associate to the vlan-number being configured. | ||
Step 4 | vlan[/b] vlan-number name vlan-name Example: Switch(vlan)# vlan 100 name voice [/b] VLAN 100 modified Name: VOICE | Specifies the number and name of the VLAN being configured. | ||
Step 5 | exit [/b] Example: Switch(vlan)# exit [/b] | Exits this configuration mode. | ||
Step 6 | wr [/b] Example: Switch# wr [/b] | Writes the modifications to the configuration file. | ||
Step 7 | configure terminal [/b] Example: Switch# configure terminal [/b] | Enters global configuration mode. | ||
Step 8 | macro[/b] global apply cisco-global [/b] Example: Switch (config)# macro global apply cisco-global [/b] | Applies the Smartports global configuration macro for QoS. | ||
Step 9 | interface[/b] slot-number/port-number Example: Switch (config)# interface fastEthernet 0/1 [/b] | Specifies interface to be configured while in the interface configuration mode. • slot-number/port-number—Slot and port of interface to which Cisco IP phones or PCs are connected.[/b] Note The slash must be entered between the slot and port numbers. | ||
Step 10 | macro apply[/b] [/b]cisco-phone[/b] [/b]$AVID [/b]number $VVID number Example: Switch (config-if)# macro apply cisco-phone $AVID 10 $VVID 100 [/b] | Applies VLAN and QoS settings in Smartports macro to the port being configured. • $AVID [/b]number—Data VLAN configured in earlier step. • $VVID [/b]number—Voice VLAN configured in earlier step. | ||
Step 11 | interface[/b] slot-number/port-number Example: Switch (config-if)# interface fastEthernet 0/24 [/b] | Specifies interface to be configured while in the interface configuration mode. • slot-number/port-number—Slot and port of interface to which the Cisco router is connected.[/b] Note The slash must be entered between the slot and port numbers. | ||
Step 12 | macro apply[/b] cisco-[/b]router[/b] [/b]$NVID [/b]number Example: Switch (config-if)# macro apply cisco-router $NVID 10 [/b] | Applies the VLAN and QoS settings in Smartports macro to the port being configured. • $NVID [/b]number—Data VLAN configured in earlier step. | ||
Step 13 | end [/b] Example: Switch(config-if)# end [/b] | Exits to privileged EXEC configuration mode. | ||
Step 14 | wr [/b] Example: Switch# wr [/b] | Writes the modifications to the configuration file. |
相关文章推荐
- 如何在Cisco交换机上配置语音VLAN
- 基础配置:cisco交换机配置vlan(3)
- H3C交换机如何配置管理VLAN
- 如何配置三层交换机创建VLAN 6
- 如何进行客户VLAN组建配置划分
- 如何给KVM上的VM配置VLAN
- Cisco交换机配置VLAN
- 如何在交换机上配置VLAN的划分
- 如何在三层交换机上实现跨VLAN的DHCP配置
- 在Cisco交换机上配置静态VLAN_实例演示_路由交换
- 快速配置CISCO语音VLAN
- 如何配置三层交换机创建VLAN 7
- CISCO交换机VLAN配置思路
- 如何设置Cisco交换机Vlan 并且监控特定网口的流量
- CISCO Vlan 配置实例-如何配置三层交换机创建VLAN
- 如何在三层交换机上实现跨VLAN的DHCP配置
- 如何在Cisco3825路由器上配置语音-IP电话篇(SCCP)
- CISCO交换机如何删除Vlan