国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 應用 > 聊天交友 > 正文

VoIP語音電話的設計與實現

2020-04-18 13:12:00
字體:
來源:轉載
供稿:網友

  Voice over IP是在IP網絡上傳輸語音流量(例如,電話和傳真)的技術,主要是一種軟件特性,但是,要在Cisco2600/3600系列路由器上實現這個功能,必須首先安裝語音模塊VNM(Voice Network Module),VNM可以裝兩個或四個語音接口卡(VIC),每個接口卡都對應于與語音接口相關的特定信號類型。


  1. 單機實現IP語音電話
  (1)在裝有兩個語音模塊的3600路由器上實現IP語音電話(如下圖所示)。


  (2)基本配置
  dial-peer voice 1 pots
  destination-pattern 111
  port 3/0/0
  !
  dial-peer voice 2 voip
  destination-pattern 222
  session target ipv4:192.16.12.1
  !
  dial-peer voice 4 pots
  destination-pattern 222
  port 3/1/0
  !
  dial-peer voice 3 voip
  destination-pattern 111
  session target ipv4:192.16.12.2
  !
  !
  (3)配置概述
  本實驗是在Cisco3600 Router內部實現的,沒有經過鏈路傳輸,所以不需要優化撥號點和網絡接口的配置,只需配置撥號點:
  ● 要配置源和目標之間的所有連接,在voice port 3/0/0上輸入下面命令:
  dial-peer voice 1 pots
  destination-pattern 111
  port 3/0/0
  !
  dial-peer voice 2 voip
  destination-pattern 222
  session target ipv4:192.16.12.1
  ● 要完成在撥號點1和撥號點4之間的端對端呼叫,在voice port3/1/0上輸入下面命令:
  dial-peer voice 4 pots
  destination-pattern 222
  port 3/1/0
  !
  dial-peer voice 3 voip
  destination-pattern 111
  session target ipv4:192.16.12.2


  2. 路由器間實現IP語音電話
  (1) 站點A有一個Cisco3600路由器,站點B有一個Cisco2600路由器,它們通過DCE/DTE V.35電纜背對背地連接起來。在每個路由器中安裝了一個含有一個VIC-2FXS的NM-2V,提供兩個模擬電話的連接。
  (2)創建并實現撥號方案
  (3)基本配置:
  站點A的基本配置見清單1(站點B的基本配置略)。
  清單1 站點A RouterA的配置
  Current configuration:
  !
  version 12.0
  service timestamps debug uptime //設定Debug跟蹤日志顯示其時間
  service timestamps log uptime //設定看Log時顯示其時間
  no service password-encryption //口令不加密
  !
  hostname router_A
  !
  enable password cisco
  !
  username router_A password 0 cisco
  !
  !
  !
  !
  ip subnet-zero
  no ip domain-lookup
  !
  !
  !
  !
  voice-port 3/0/0
  echo-cancel coverage 16 //啟動回聲消除功能
  !
  voice-port 3/0/1
  !
  !
  dial-peer voice 1 pots //定義撥號對等體到語音物理端口
  destination-pattern 2222 //定義電話號碼
  port 3/0/0 //定義電話號碼
  !
dial-peer voice 2 voip //定義撥號對等體到語音
  destination-pattern 1111 //為撥號對等體分配電話號碼
  req-qos controlled-load //在分配帶寬時,RSVP確保即使帶寬發生擁塞與過載時,數據流也能得到優先處理。
  codec g711ulaw //撥號點的語音編碼速率—64000bps
  ip precedence 5 //IP優先級,5為關鍵
  no vad //禁用語音活動檢測
  session target ipv4:192.168.100.1 //定義Voip路由,為對端的IP地址
  !
  !
  interface Ethernet0/0
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial0/0
  ip address 192.168.100.2 255.255.255.0 // S0/0的IP地址
  no ip directed-broadcast
  no ip mroute-cache
  no fair-queue
  clockrate 2000000
  ip rtp header-compression //配置RTP頭壓縮器
  ip rtp compression-connections 25
  ip rsvp bandwidth 1000 320
  !
  interface Ethernet0/1
  no ip address
  no ip directed-broadcast
  shutdown
  !
  ip classless
  ip route 192.168.100.0 255.255.255.0 192.168.100.1
  no ip http server
  !
  line con 0
  transport input none
  line aux 0
  line vty 0 4
  login
  !
  end
  (4)配置概述
  根據公共的功能,站點A的配置分為4個不同的部分。第1部分在清單2中描述,它為日志和調試命令啟用時間標記,為路由器指定一個主機名稱。
  清單2 站點A的配置的第1部分
  version 12.0
  service timestamps debug uptime //設定Debug跟蹤日志顯示其時間
  service timestamps log uptime //設定看Log時顯示其時間
  no service password-encryption //口令不加密
  !
  hostname router_A
  !
  enable password cisco
  !
  username router_A password 0 cisco
  !
  第2部分在清單4中描述,它提供語音連接的實質內容,語音端口簡單地標識它們連接到的設備。撥號對等體1把電話號碼分配給物理語音端口,撥號對等體2定義VoIP呼叫到站點B。在語音端口3/0/0上啟動回聲消除功能。IP優先級設置為5,設置資源預留協議RSVP為controlled-load,確保即使帶寬發生擁塞與過載時,數據流也能得到優先處理。而且因為多余的帶寬,語音活動檢測被禁止了,并為撥號點配置了語音編碼速率—64000bps。
  清單4 站點A的配置的第2部分
  voice-port 3/0/0
  echo-cancel coverage 16
  !
  voice-port 3/0/1
  !
  !
  dial-peer voice 1 pots
  destination-pattern 2222
  port 3/0/0
  !
  dial-peer voice 2 voip
  destination-pattern 1111
  req-qos controlled-load
  codec g711ulaw
  ip precedence 5
  no vad
  session target ipv4:192.168.100.1
  !
  第3部分在清單5中描述,它配置路由器上的網絡端口。串口0/0連接到DCE V.35電纜,為串行接口增加clockrate接口配置命令。為語音配置RSVP保證在網絡中獲取特定的QoS。配置RTP頭壓縮連接的數量為25。
  清單5 站點A的配置的第5部分
  interface Ethernet0/0
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial0/0
  ip address 192.168.100.2 255.255.255.0
  no ip directed-broadcast
  no ip mroute-cache
  no fair-queue
  clockrate 2000000
  ip rtp header-compression
  ip rtp compression-connections 25
  ip rsvp bandwidth 1000 320
  !
  第4部分如清單6所示,完成整個配置,它分配一條靜態路由到站點B的網絡(192.168.100.0),在這個簡單環境中,不要求IP路由協議。
  清單6 站點A的配置的第4部分
  ip classless
  ip route 192.168.100.0 255.255.255.0 192.168.100.1
  no ip http server
  !

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 镇平县| 铅山县| 南阳市| 光山县| 长寿区| 红桥区| 襄汾县| 交城县| 阳江市| 博湖县| 开原市| 景德镇市| 谷城县| 彭水| 晴隆县| 凯里市| 许昌市| 长汀县| 榆树市| 安顺市| 松江区| 棋牌| 九龙坡区| 乌兰浩特市| 维西| 开化县| 海晏县| 承德市| 永城市| 淅川县| 高淳县| 阿图什市| 邮箱| 黔江区| 辉县市| 清河县| 和林格尔县| 白玉县| 上饶县| 固始县| 鸡西市|