A-A+

Cisco3640路由器配置VOIP的实例和方法

2015年11月21日 站长资讯 暂无评论

voip是把模拟语音信号经过数字化封包后在ip数据网络上传输的技术。下面基于cisco3640路由器的一个实例来介绍配置voip的方法。

  1. Taipei#sh run  
  2. Building configuration...  
  3. Current configuration:  
  4. !  
  5. version 12.0  
  6. service timestamps debug uptime(设定Debug跟踪日志显示其时间)  
  7. service timestamps log uptime(设定看Log时显示其时间)  
  8. no service password-encryption(口令不加密)  
  9. !  
  10. hostname Taipei(主机名)  
  11. !  
  12. enable secret 5 $1$R.66$z.BUjhNsJcIr8KCcS9uxG.  
  13. !  
  14. !  
  15. !  
  16. !  
  17. !  
  18. voice-card 1(定义语音卡1)  
  19. !  
  20. voice-card 3(定义语音卡3)  
  21. !  
  22. ip subnet-zero  
  23. no ip domain-lookup  
  24. !  
  25. isdn voice-call-failure 0  
  26. !  
  27. !  
  28. !  
  29. !  
  30. controller E1 1/0(配置 E1语音卡)  
  31. framing NO-CRC4  
  32. ds0-group 0 timeslots 1-15,17-31 type e&m-wink-start(定义语音卡的类型为E&M卡)  
  33. cas-custom 0  
  34. !  
  35. controller E1 3/0(配置 E1语音卡)  
  36. framing NO-CRC4  
  37. ds0-group 0 timeslots 1-15,17-31 type e&m-wink-start(定义语音卡的类型为E&M卡)  
  38. cas-custom 0   
  39. !  
  40. !  
  41. !  
  42. interface BRI0/0  
  43. no ip address  
  44. no ip directed-broadcast  
  45. shutdown  
  46. isdn guard-timer 0 on-expiry accept  
  47. !  
  48. interface FastEthernet0/0  
  49. no ip address  
  50. no ip directed-broadcast  
  51. shutdown  
  52. duplex auto  
  53. speed auto  
  54. !  
  55. interface Serial0/0  
  56. description "Link to MainLand_ShangHai by NCIC lease line"  
  57. ip address 192.168.1.1 255.255.255.252  
  58. no ip directed-broadcast  
  59. no ip mroute-cache  
  60. no fair-queue  
  61. !  
  62. interface Serial0/1  
  63. no ip address  
  64. no ip directed-broadcast  
  65. shutdown  
  66. clockrate 2000000  
  67. !  
  68. ip classless  
  69. no ip http server  
  70. !  
  71. !  
  72. voice-port 1/0:0(配置模拟语音端口)  
  73. compand-type a-law  
  74. !  
  75. voice-port 3/0:0(配置模拟语音端口)  
  76. compand-type a-law  
  77. !  
  78. dial-peer voice 1 voip (定义拨号对等体到语音)  
  79. destination-pattern +445...(为拨号对等体分配电话号码,其中.为通配符)   
  80. session target ipv4:192.168.1.2(定义Voip路由,为对端的IP地址)  
  81. req-qos guaranteed-delay (语音数据流RVSP的保证,其中Guaranteed-dealy可用于保证整个网络的延时)  
  82. ip precedence 5(IP优先级,5为关键)  
  83. !  
  84. dial-peer voice 2 pots(定义拨号对等体到语音物理端口)  
  85. destination-pattern +3...(定义电话话码以3开头的)  
  86. port 1/0:0(定义语音端口)  
  87. !  
  88. dial-peer voice 3 pots(定义拨号对等体到语音物理端口)  
  89. destination-pattern +3...(定义电话话码以3开头的)  
  90. port 3/0:0(定义语音端口)  
  91. !  
  92. !  
  93. line con 0(设定登陆)  
  94. transport input none  
  95. line aux 0  
  96. line vty 0 4(允许用Telnet)  
  97. password cisco(口令为Cisco)  
  98. login  
  99. !  
  100. end  
  101. Taipei#  

上海一方的3640配置:

  1. ShangHai#sh run  
  2. Building configuration...  
  3. Current configuration:  
  4. !  
  5. version 12.0  
  6. service timestamps debug uptime  
  7. service timestamps log uptime  
  8. no service password-encryption  
  9. !  
  10. hostname ShangHai   
  11. !  
  12. enable secret 5 $1$dB/c$tnrMU9IxFCJdix5ssHAdH/  
  13. !  
  14. !  
  15. !  
  16. !  
  17. !  
  18. voice-card 1  
  19. !  
  20. voice-card 2  
  21. !  
  22. ip subnet-zero  
  23. no ip domain-lookup  
  24. !  
  25. isdn voice-call-failure 0  
  26. !  
  27. !  
  28. !  
  29. !  
  30. controller E1 1/0  
  31. framing NO-CRC4  
  32. ds0-group 0 timeslots 1-15,17-31 type e&m-immediate-start  
  33. cas-custom 0  
  34. !  
  35. controller E1 2/0  
  36. framing N  
  37. ds0-group 0 timeslots 1-15,17-31 type e&m-immediate-start  
  38. cas-custom 0  
  39. !  
  40. !  
  41. !  
  42. interface BRI0/0  
  43. no ip address  
  44. no ip directed-broadcast  
  45. encapsulation ppp  
  46. isdn guard-timer 0 on-expiry accept  
  47. ppp multilink  
  48. !  
  49. interface FastEthernet0/0  
  50. no ip address  
  51. no ip directed-broadcast  
  52. shutdown  
  53. duplex auto  
  54. speed auto  
  55. !  
  56. interface Serial0/0  
  57. no ip address  
  58. no ip directed-broadcast  
  59. no ip mroute-cache   
  60. shutdown  
  61. no fair-queue  
  62. clockrate 2000000  
  63. !  
  64. interface Serial0/1  
  65. ip address 192.168.1.2 255.255.255.252  
  66. no ip directed-broadcast  
  67. !  
  68. ip classless  
  69. !  
  70. no ip http server  
  71. !  
  72. !  
  73. voice-port 1/0:0  
  74. compand-type a-law  
  75. !  
  76. voice-port 2/0:0  
  77. compand-type a-law  
  78. !  
  79. dial-peer voice 20 voip  
  80. destination-pattern +3...  
  81. session target ipv4:192.168.1.1  
  82. req-qos guaranteed-delay  
  83. ip precedence 5  
  84. !  
  85. dial-peer voice 10 pots  
  86. destination-pattern +448...  
  87. port 1/0:0  
  88. !  
  89. dial-peer voice 30 voip  
  90. destination-pattern +4...  
  91. session target ipv4:192.168.1.1  
  92. req-qos guaranteed-delay  
  93. ip precedence 5  
  94. !  
  95. dial-peer voice 40 pots  
  96. destination-pattern +449...  
  97. port 2/0:0  
  98. !  
  99. !  
  100. line con 0  
  101. transport input none  
  102. line aux 0  
  103. line vty 0 4  
  104. password cisco  
  105. login  
  106. !  
  107.   
  108.   
  109. end  
标签:

给我留言