路由器VoIP功能配置
路由器VoIP功能配置
一、 实验目的
1.
熟悉掌握voip / h.323的基本原理
2.
了解电话接口类型(FXS、FXO、E&M、E1接口)的区别
3.
了解voip的呼叫过程
4.
熟练掌握voip的配置方法
二、 实验设备
1.
路由器 2台
2.
Console线 2条
3.
电话机 2台以上
4.
网线 若干
三、 实验环境
这是一个FXS到FXS之间的实验,如下图:
注意:
为了保证配置不受影响,请在实验之前清除路由器的所有配置后重新启动。
四、 实验要求
路由器A和路由器B之间用接口ethernet0互连,采用H.323协议IP电话通信。
路由器A接口的ipaddress是192.168.1.1/24
路由器B接口的ipaddress是192.168.1.2/24
要求电话6001 6002 7001 7002 可以相互打IP电话。
五、 实验步骤
在做VoIP时,在路由器上需配置两个部分:
1、路由器到电话机之间的配置,配置每个接口的电话号码;
2、路由器之间的voip拨号规则配置,配置电话号码和IP地址的对应关系。
配置步骤
(1) 配置路由器A
[Router] interface Ethernet0
[Router-Ethernet0] ip address 192.168.1.2 255.255.255.0
[Router] voice-setup
[Router-voice] dial-program
[Router-voice-dial] entity 1 voip
[Router-voice-dial-entity1] address ip 192.168.1.1
[Router-voice-dial-entity1] fast-connect
[Router-voice-dial-entity1] match-template 7...
(对端电话号码,点表示最后一位任意)
[Router-voice-dial] entity 2 pots
[Router-voice-dial-entity2] match-template 6001
(本地Line0上的电话号码)
[Router-voice-dial-entity2] line 0
//配置POTS 语音实体与语音用户线关联
[Router-voice-dial] entity 3 pots
[Router-voice-dial-entity3] match-template 6002 (本地Line1上的电话号码)
[Router-voice-dial-entity3] line 1
//配置POTS 语音实体与语音用户线关联
(2) 配置路由器B
[Router] interface Ethernet0
[Router-Ethernet0] ip address 192.168.1.1 255.255.255.0
[Router] voice-setup
[Router-voice] dial-program
[Router-voice-dial] entity 1 voip
[Router-voice-dial-entity1] address ip 192.168.1.2
[Router-voice-dial-entity1] fast-connect
[Router-voice-dial-entity1] match-template 6...
(对端电话号码,点表示最后一位任意)
[Router-voice-dial] entity 2 pots
[Router-voice-dial-entity2] match-template 7001
(本地Line0上的电话号码)
[Router-voice-dial-entity2] line 0
//配置POTS 语音实体与语音用户线关联
[Router-voice-dial] entity 3 pots
[Router-voice-dial-entity3] match-template 7002
(本地Line1上的电话号码)
[Router-voice-dial-entity3] line 1
//配置POTS 语音实体与语音用户线关联