发的Cisco 3640 VoIP配置实例太实用太实在!怎么办、怎么办?

发布于 2022-09-11 06:54:09 字数 5685 浏览 31 评论 2

本帖最后由 中关村村草 于 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#

复制代码

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我最亲爱的 2022-09-11 23:23:34

回复 2# send_linux

   

天暗了我发光 2022-09-11 13:26:10

谢谢分享:)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文