Cisco VoIP配置
环境:
PackerTracer 7.1.1
CM :router 2811
SW:3650
IP 电话:7960
拓扑:
一, 划分单独voice vlan 把相关接口划入voice vlan中
二, Voip的电话需要一个IP地址,配置一个DHCP用来给电话分配地址
三, 在CM上注册话机
四, 测试接打是否正常
相关配置如下:
1. 交换机配置:
interface GigabitEthernet1/0/1
switchport access vlan 100
switchport mode access
switchport nonegotiate
!
interface GigabitEthernet1/0/2
switchport voice vlan 100
!
interface GigabitEthernet1/0/3
switchport voice vlan 100
2. 路由器配置:
ip dhcp pool VOIP
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
option 150 ip 192.168.1.254
!
interface FastEthernet0/0
ip address 192.168.1.254 255.255.255.0
duplex auto
speed auto
!
telephony-service //开启话务服务
max-ephones 20 //定义电话机数量
max-dn 20 //定义电话号码数量
ip source-address 192.168.1.254 port 2000 //定义通过哪个IP和端口提供服务
!
ephone-dn 1 //定义一号线路
number 1001 //分配号码1001
!
ephone-dn 2 //定义二号线路
number 1002 //分配号码 1002
!
ephone 1 //定义第一台电话
device-security-mode none
mac-address 0001.4231.4B77 //绑定硬件MAC地址
type 7960 //定义话机类型
button 1:1 将第一条线路绑定到这台话机上
!
ephone 2
device-security-mode none
mac-address 0001.9630.419B
type 7960
button 1:2