免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5858 | 回复: 2
打印 上一主题 下一主题

发的Cisco 3640 VoIP配置实例太实用太实在!怎么办、怎么办? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-26 12:47 |只看该作者 |倒序浏览
本帖最后由 中关村村草 于 2010-11-26 12:49 编辑

Cisco 3640 VoIP配置实例



下面是Cisco 3640的VOIP配置,结构是台北和上海两地做VOIP,后接阿尔卡特的PBX,里面有很多需要注意的地方。
台北配置代码:
  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. end

  108. ShangHai#
复制代码

论坛徽章:
49
15-16赛季CBA联赛之福建
日期:2016-06-22 16:22:002015年亚洲杯之中国
日期:2015-01-23 16:25:12丑牛
日期:2015-01-20 09:39:23未羊
日期:2015-01-14 23:55:57巳蛇
日期:2015-01-06 18:21:36双鱼座
日期:2015-01-02 22:04:33午马
日期:2014-11-25 09:58:35辰龙
日期:2014-11-18 10:40:07寅虎
日期:2014-11-13 22:47:15申猴
日期:2014-10-22 15:29:50摩羯座
日期:2014-08-27 10:49:43辰龙
日期:2014-08-21 10:47:58
2 [报告]
发表于 2010-11-28 18:31 |只看该作者
谢谢分享:)

论坛徽章:
0
3 [报告]
发表于 2010-11-30 14:25 |只看该作者
回复 2# send_linux


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP