如何在Cisco交换机上配置语音VLAN

http://blog.chinaunix.net/uid-261392-id-2138837.html

在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.
  Command or Action  Purpose
 Step 1 

enable

Example:

Switch> enable

 
 Step 2 

vlan database

Example:

Switch# vlan database

 
 Step 3 

vlan vlan-number name vlan-name

Example:

Switch(vlan)# vlan 10 name data

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 vlan-number name vlan-name

Example:

Switch(vlan)# vlan 100 name voice

VLAN 100 modified

Name: VOICE

  Specifies the number and name of the VLAN being configured.
 Step 5 

exit

Example:

Switch(vlan)# exit

  Exits this configuration mode.
 Step 6 

wr

Example:

Switch# wr

  Writes the modifications to the configuration file.
 Step 7 

configure terminal

Example:

Switch# configure terminal

  Enters global configuration mode.
 Step 8 

macro global apply cisco-global

Example:

Switch (config)# macro global apply cisco-global

  Applies the Smartports global configuration macro for QoS.
 Step 9 

interface slot-number/port-number

Example:

Switch (config)# interface fastEthernet 0/1

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

Note The slash must be entered between the slot and port numbers.

  

 

 Step 10 

macro apply cisco-phone $AVID number $VVID number

Example:

Switch (config-if)# macro apply cisco-phone $AVID 10 $VVID 100

 

Applies VLAN and QoS settings in Smartports macro to the port being configured.

$AVID number—Data VLAN configured in earlier step.

$VVID number—Voice VLAN configured in earlier step.

 Step 11 

interface slot-number/port-number

Example:

Switch (config-if)# interface fastEthernet 0/24

 

Specifies interface to be configured while in the interface configuration mode.

slot-number/port-numberSlot and port of interface to which the Cisco router is connected.

Note The slash must be entered between the slot and port numbers.

 Step 12 

macro apply cisco-router $NVID number

Example:

Switch (config-if)# macro apply cisco-router $NVID 10

 

Applies the VLAN and QoS settings in Smartports macro to the port being configured.

$NVID number—Data VLAN configured in earlier step.

 Step 13 

end

Example:

Switch(config-if)# end

  Exits to privileged EXEC configuration mode.
 Step 14 

wr

Example:

Switch# wr

  Writes the modifications to the configuration file.
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值