voip就是声音在IP网络中传输(voice one ip),这种传输方式同传统的PSTN电话相比,费用节省了许多,但也有其他一些缺点,主要体现在Qos(服务质量)上。
 
  VOIP_第1张图片
R1的具体配置:
Enbale
Config terminal
Interface serial 0/0
Encapsulation ppp
Ip address 202.140.10.21 255.255.255.0
Clock rate 128000
No shutdown
Exit
 
Dial-peer voice 1 pots
(为语音端口开始配置电话,1是对这个配置的进程ID,取值范围为:1-214758647)
 
Destination-pattern 4002 (指明voip的电话号码)
Port 1/0/0 (将电话号码绑定到端口上)
Exit
 
Dial-peer voice 2 pots
Destination-pattern 4001
Port 1/0/1
 
Dial-peer 10 voip(指明进行voip配置,10为进程的ID,取值范围为:1-214758647)
Destination-parttern 1001(指明对端的电话号码)
Session  target  Ipv4:202.140.10.22(将前面的电话号码映射到相连的路由器的接口上)
Destination-parttern 1002
Session  target  Ipv4:202.140.10.22
 
 
R2的具体配置:
Enable
Config terminal
Interface serlai 0/0
Ip address 202.140.10.22
Encapsulation ppp
No shutdown
Exit
Dial-peer voice 1 pots
Detsination 1001
Port 1/0/0
Exit
Dial-peer voice 2 pots
Destination 1002
Port 1/0/1
Exit
 
Dial-peer voice 20 voip
Destination-pattern 4001
Session t arget  ipv4:202.140.10.21
Destination-pattern 4002
Session t arget  ipv4:202.140.10.21