簡介
本檔案介紹如何瞭解Cisco IOS®平台上撥號對等體的運作狀態。
必要條件
需求
本文檔的讀者應瞭解以下主題:
如果語音網路(VoIP、VoFR、VoATM)和POTS撥號對等體無效,且處於「操作狀態」,則不會考慮將其用於Cisco IOS路由器/網關入站和出站撥號對等體匹配過程。撥號對等體必須符合以下條件之一才能被視為有效/可操作:
-
已設定Destination-pattern和voice-port或session target。
-
已配置傳入called-number。
-
已配置Answer-address。
採用元件
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。本文件所述內容不限於特定軟體和硬體版本。
慣例
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
撥號對等配置無效
基於上述三個規則條件,此表顯示了處於關閉操作狀態的撥號對等體配置示例。
| 撥號對等體示例 |
dial-peer voice 1 pots
port 1/0:23
!--- Invalid dial-peer (rule 1): Has voice-port configured only.
!
dial-peer voice 2 pots
destination-pattern 1T
!--- Invalid dial-peer (rule 1): Has destination-pattern configured only.
!
dial-peer voice 6 voip
session target ipv4:172.16.13.111
!--- Invalid dial-peer (rule 1): Has session target configured only.
!
dial-peer voice 7 voip
destination-pattern 83...
!--- Invalid dial-peer (rule 1): Has destination-pattern configured only.
!
|
注意:無任何子命令的撥號對等體配置語句因違反1、2和3而被視為無效。
有效的撥號對等體配置
根據前三個規則條件,此表顯示處於運行操作狀態的撥號對等體配置示例。
| 有效對等體示例 |
dial-peer voice 3 pots
destination-pattern 1T
port 1/0:23
prefix 1
!--- Valid dial-peer (rule 1): Has voice-port and destination-pattern configured.
!
dial-peer voice 4 pots
incoming called-number 83.
!--- Valid dial-peer (rule 2): Has incoming called-number configured.
!
dial-peer voice 5 pots
answer-address 408
!--- Valid dial-peer (rule 2): Has answer-address configured.
ss configured.
!
dial-peer voice 8 voip
destination-pattern 83...
session target ipv4:172.16.13.111
!--- Valid dial-peer (rule 1): Has session target and destination-pattern configured.
!
dial-peer voice 9 voip
incoming called-number .
!--- Valid dial-peer (rule 2): Has incoming called-number configured.
!
dial-peer voice 10 voip
answer-address 6666
!--- Valid dial-peer (rule 2): Has answer-address configured.
!
|
注意:假設用於入站匹配的撥號對等體配置了傳入called-number或answer-address,並且新增了destination-pattern命令。新增命令destination-pattern string後,撥號對等體將關閉操作。這是因為路由器將destination-pattern對映到地址(session target)或語音埠(port)以進行出站撥號對等體匹配。在這種情況下,沒有要對映的內容。例如,如果在撥號對等體4、5、9和10上新增destination-pattern,則會將其運行狀態更改為down。
注意:在撥號對等體4和5上,如果刪除destination-pattern並新增port命令,則撥號對等體仍然有效。同樣,如果刪除destination-pattern並在9和10上新增session-target命令,它們也將保持可操作性。
檢查撥號對等體配置
若要檢查撥號對等體配置的有效性,請使用Cisco IOS命令show dial-peer voice summary。
| 檢查撥號對等體配置 |
2600#show dial-peer voice summary
dial-peer hunt 0
PASS
TAG TYPE ADMIN OPER PREFIX DEST-PATTERN PREF THRU SESS-TARGET PORT
1 pots up down 0 1/0:23
2 pots up down 1T 0
3 pots up up 1 1T 0 1/0:23
4 pots up up 0
5 pots up up 0
6 voip up down 0 syst ipv4:172.16.13.111
7 voip up down 83... 0 syst
8 voip up up 83... 0 syst ipv4:172.16.13.111
9 voip up up 0 syst
10 voip up up 0 syst
|