12.1 fxs-fxs的配置
『需求』
四部电话可以互相拨通
【router A】
当前路由器提示视图 |
依次输入的配置命令,重要的命令红色突出显示 |
简单说明 |
|
! |
适用版本vrp1.74 |
[Router] |
interface Serial0 |
进入串口0 |
[Router-Serial0] |
link-protocol ppp |
封装ppp协议 |
[Router-Serial0] |
ip address 1.1.1.1 255.255.255.0 |
配置ip地址 |
|
! |
|
[Router] |
voice-setup |
进入语音特性设置 |
|
! |
|
[Router-voice] |
dial-program |
拨号计划配置 |
|
! |
|
[Router-voice-dial] |
entity 755 voip |
这里755是一个数字,无特殊含义 |
[Router-voice-dial-entity755] |
address ip 2.2.2.2 |
对端被叫电话所在路由器ip地址 |
[Router-voice-dial-entity755] |
match-template 0755.... |
对端被叫号码为0755×××× |
|
! |
|
[Router-voice-dial] |
entity 1001 pots |
这里1001是一个数字,无特殊含义 |
[Router-voice-dial-entity1001] |
match-template 0101001 |
设置本端主叫号码为0101001 |
[Router-voice-dial-entity1001] |
line 0 |
设置此主叫号在subscriber-line0口 |
|
! |
|
[Router-voice-dial] |
entity 1002 pots |
这里1002是一个数字,无特殊含义 |
[Router-voice-dial-entity1002] |
match-template 0101002 |
设置本端主叫号码为0101002 |
[Router-voice-dial-entity1002] |
line 1 |
设置此主叫号在subscriber-line1口 |
|
! |
|
[Router-voice-dial] |
subscriber-line 0 |
|
|
! |
|
[Router-voice-dial] |
subscriber-line 1 |
|
|
! |
|
|
Quit |
|
[Router] |
ip route-static 0.0.0.0 0.0.0.0 serial 0 preference 60 |
|
|
! |
|
【router B】
当前路由器提示视图 |
依次输入的配置命令,重要的命令红色突出显示 |
简单说明 |
|
! |
适用版本vrp1.74 |
[Router] |
interface Serial0 |
|
[Router-Serial0] |
link-protocol ppp |
|
[Router-Serial0] |
ip add 2.2.2.2 255.255.255.0 |
|
|
! |
|
[Router] |
voice-setup |
|
|
! |
|
[Router-voice] |
dial-program |
|
|
! |
|
[Router-voice-dial] |
entity 10 voip |
这里10是一个数字,无特殊含义 |
[Router-voice-dial-entity10] |
address ip 1.1.1.1 |
对端被叫电话所在路由器ip地址 |
[Router-voice-dial-entity10] |
match-template 010.... |
对端被叫号码为010×××× |
|
! |
|
[Router-voice-dial] |
entity 2001 pots |
这里2001是一个数字,无特殊含义 |
[Router-voice-dial-entity2001] |
match-template 07552001 |
设置本端主叫号码为07552001 |
[Router-voice-dial-entity2001] |
line 0 |
设置此主叫号在subscriber-line0口 |
|
! |
|
[Router-voice-dial] |
entity 2002 pots |
这里2002是一个数字,无特殊含义 |
[Router-voice-dial-entity2002] |
match-template 07552002 |
设置本端主叫号码为07552002 |
[Router-voice-dial-entity2002] |
line 1 |
设置此主叫号在subscriber-line1口 |
|
! |
|
[Router-voice-dial] |
subscriber-line 0 |
|
|
! |
|
[Router-voice-dial] |
subscriber-line 1 |
|
|
! |
|
|
quit |
|
[Router] |
ip route-static 0.0.0.0 0.0.0.0 serial 0 preference 60 |
|
|
! |
|