新闻  |   论坛  |   博客  |   在线研讨会
实现VoIP的基本配置
lulu888 | 2009-05-24 02:21:24    阅读:901   发布文章

--
    实验描述:
  
  本实验通过2只Cisco 2600和1只Cisco 3600路由器,实现蓝色学院分部一和分部二的VoIP 。其中,两个分部利用Cisco 的2620 作为终端设备,总部利用Cisco 的3640 路由器作为中心组网设备,在各专线之间通过祯中继线路连接具体结构如下
  分部一)
  
  Cisco 2600 Voip configuration
  
  Current onfiguration
  
  !
  
  version 12.0
  
  service timestamps debug uptime
  
  service timestamps log uptime
  
  no service password-encryption
  
  !
  
  hostname bluestudy1
  
  !
  
  enable password Cisco
  
  !
  
  ip subnet-zero
  
  !
  
  voice-port 1/0/0
  
  time-port call-disconnect 0
  
  !
  
  voice-port 1/0/1
  
  time-port call-disconnect 0
  
  !
  
  voice-port 1/1/0
  
  time-port call-disconnect 0
  
  !
  
  voice-port 1/1/1
  
  time-port call-disconnect 0
  
  !
  
  dial-peer voice 1 pots
  
  destination-pattern 1234
  
  port 1/1/0
  
  !
  
  dial-peer voice 10 voip
  
  destination-pattern 4321
  
  session target ipv4:199.1.2.2
  
  !
  
  interface Ethernet0/0
  
  no ip address
  
  no ip directed-broadcast
  
  shutdown
  
  !
  
  interface serial0/0
  
  no ip address
  
  no ip directd-broadcast
  
  encapsulation frame-relay
  
  no ip mroute-cache
  
  frame-relay lmi-type ansi
  
  !
  
  interface serial0/0.1 point-to-point
  
  ip address 199.1.1.2 255.255.255.248
  
  no ip directed-broadcast
  
  frame-relay interface-dlci 111
  
  !interface ethernet0/1
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  interface serial 0/1
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  interface serial0/2
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  interface serial0/3
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  router rip
  
  version 2
  
  network 199.1.1.0
  
  !
  
  ip classless
  
  no ip http server
  
  !
  
  !
  
  line con 0
  
  transport input none
  
  line aux
  
  line vty 0 4
  
  password cisco
  
  login
  
  !
  
  no scheduler allocate
  
  end
  
  对于3640的配置,利用它来模拟ISP只要在其广域端口上配置相应地址,与分部一相连用199.1.1.1 255.255.255.248 ,与分部二相连的端口地址配置为 199.1.2.1 255.255.255.248,再配置路由,在199.1.1.0 和199.1.2.0 网络中启动rip two 协议即可.
  分部二
  
  Cisco 2600 Voip configuration
  
  Current configuration
  
  !
  
  version 12.0
  
  service timestamps debug uptime
  
  service timestamps log uptime
  
  no service password-encryption
  
  !
  
  hostname bluestudy2
  
  !
  
  enable password Cisco
  
  !
  
  ip subnet-zero
  
  !
  
  voice-port 1/0/0
  
  time-port call-disconnect 0
  
  !
  
  voice-port 1/0/1
  
  time-port call-disconnect 0
  
  !
  
  voice-port 1/1/0
  
  time-port call-disconnect 0
  
  !
  
  voice-port 1/1/1
  
  time-port call-disconnect 0
  
  !
  
  dial-peer voice 1 pots
  
  destination-pattern 4321
  
  port 1/1/0
  
  !
  
  dial-peer voice 10 voip
  
  destination-pattern 1234
  
  session target ipv4:199.1.1.2
  
  !
  
  interface Ethernet0/0
  
  no ip address
  
  no ip directed-broadcast
  
  shutdown
  
  !
  
  interface serial0/0
  
  no ip address
  
  no ip directd-broadcast
  
  encapsulation frame-relay
  
  no ip mroute-cache
  
  frame-relay lmi-type ansi
  
  !
  
  interface serial0/0.1 point-to-point
  
  ip address 199.1.2.2 255.255.255.248
  
  no ip directed-broadcast
  
  frame-relay interface-dlci 111
  
  !interface ethernet0/1
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  interface serial 0/1
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  interface serial0/2
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  interface serial0/3
  
  no ip address
  
  no ip directed-broadcast
  
  shut down
  
  !
  
  router rip
  
  version 2
  
  network 199.1.2.0
  
  !
  
  ip classless
  
  no ip http server
  
  !
  
  !
  
  line con 0
  
  transport input none
  
  line aux
  
  line vty 0 4
  
  password cisco
  
  login
  
  !
  
  no scheduler allocate
  
  end
   

*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

参与讨论
登录后参与讨论
推荐文章
最近访客