torlee 发表于 2018-7-11 08:31:00

cisco voice 小小实验

  目前好像只有PT5.3支持一点语音的实验 。记录一下我的实验过程

  pc0设置为dhcp吧。我们要做DHCP服务。
  Router作为callmangerserver ,分配电话号码。
  有三个地方可作配置,
  第一:7960ip 电话

  为ip电话接上电源
  第二:交换机的配置
  


[*]interface FastEthernet0/1
[*] description access the ip phone
[*] switchport voice vlan 1
[*]为voice流量打标
[*]!
[*]interface FastEthernet0/2
[*] description access thd callmangerserver router
  

  switch(config-if)#switchport voice vlan {vlan-id | dot1p| untagged|none}
  例子:
  switchport voice vlan 1 为voice流量打标为vlan 1,接口封装为trunk
  switchport voice vlan dot1p 为voice 流量打标为vlan 0 ,接口封装为trunk
  switchport voice vlan untagged 不打标,将无法区分voice流量,接口封装为trunk
  switchport voice vlan none 不打标,接口封装为access
  第三,路由器的配置
  


[*]ip dhcp excluded-address 10.1.1.1 10.1.1.10
[*]!
[*]ip dhcp pool pc
[*] network 10.1.1.0 255.255.255.0
[*] option 150 ip 10.1.1.1
[*] dns-server 10.1.1.10
[*]!interface FastEthernet0/0
[*] ip address 10.1.1.1 255.255.255.0
[*] duplex auto
[*] speed auto
[*]!
[*]telephony-service //开启电话服务
[*] max-ephones 26 //最大接入电话数量
[*] max-dn 26   //最大目录数量
[*] ip source-address 10.1.1.1 port 2000 //配置本机IP和开启一个端口与ip电话通信
[*] create cnf-files version-stamp Jan 01 2002 00:00:00
[*]!
[*]创建XML文件,这一条语句我不是很明白
[*]ephone-dn 1
[*] number 1001
[*]!//设置电话1
[*]ephone 1
[*] device-security-mode none
[*] mac-address 0060.3ED1.0957
[*] type 7960
[*] button 1:1
[*]!
[*]//绑定IP电话的MAC地址,类型为7960. button 1:1表示用哪个号码,如上配置所示,电话是
[*]1001.
  

  配置完后正常的现象应该是:


  这还是我第一次做voice的实验 。
页: [1]
查看完整版本: cisco voice 小小实验