Monolog

Goo辞書(英和)で“Monolog”は、
『独白; 独白劇; 独り占めのおしゃべり』
独り言・備忘録を綴るブログ

CCNP(ONT)のお勉強

2008-01-07 23:59:59 | Network

CCNP(ONT)をお勉強中なのですが、この科目の範囲にIP Phoneが含まれる事を知りました。(気づくのが遅すぎでした。)

とりあえず、『Cisco IP Communicator』を利用するため、検索サイトで探したところ、多数の箇所で配布?していることが分かりました。(Cisco IP Communicatorってフリーだったっけ???本件については調査を継続し、問題があるようであればDownload済みファイルを削除しようと考えています。。。とりあえずVersion2.1.1.0を利用する事に。。。)

実験レベルで下記の構成となる内線通話環境を構築し、無事検証が出来ましたので、実施記録を以下に載せます。(ONTの勉強用として、Dynamipsを使った内線電話の通話試験が出来たので、ご参考になれば幸いです)

●材料
・Dynamips。(Dynamipsの基本設定は2007/12/29の日記の通りなので省略)
・Cisco IP Communicatorが動作するPC×2台

●条件
・同一セグメント内の2台のIP Phoneが内線通話を行う(下記トポロジのようなイメージ)

 
┌─────┐
IP Phone 1
└─┬───┘ ▼192.168.255.0/24
  │     │  ┌────┐
  │     ├──┤Router 2│
┌─┴──┐  │  └──┬─┘
│Router 1├──┤     │
└────┘  │     │
        ▲ ┌───┴─┐
          │IP Phone 2
          └─────┘


●Routerの設定

Router 1の設定

Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#line con 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#no do
Router(config-line)#end
Router#
*Mar 1 00:02:32.491: %SYS-5-CONFIG_I: Configured from console by console
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f1/0
Router(config-if)#no sw
Router(config-if)#ip add 192.168.0.241 255.255.255.0
Router(config-if)#no sh
Router(config-if)#end
Router#
*Mar 1 00:03:45.191: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Mar 1 00:03:45.491: %SYS-5-CONFIG_I: Configured from console by console
*Mar 1 00:03:47.447: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
Router#
Router#ping 192.168.0.223

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.223, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/67/132 ms
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#telephony-service setup


 --- Cisco IOS Telephony Services Setup ---


Do you want to setup DHCP service for your IP Phones? [yes/no]: no

Do you want to start telephony-service setup? [yes/no]: yes
Configuring Cisco IOS Telephony Services :

 Enter the IP source address for Cisco IOS Telephony Services :192.168.0.241
 Enter the Skinny Port for Cisco IOS Telephony Services :  [2000]:
 How many IP phones do you want to configure :  [0]: 1
 Do you want dual-line extensions assigned to phones? [yes/no]: no
 What Language do you want on IP phones :
   0 English
   1 French
   2 German
   3 Russian
   4 Spanish
   5 Italian
   6 Dutch
   7 Norwegian
   8 Portuguese
   9 Danish
   10 Swedish
   11 Japanese
 [0]: 11
  Which Call Progress tone set do you want on IP phones :
   0 United States
   1 France
   2 Germany
   3 Russia
   4 Spain
   5 Italy
   6 Netherlands
   7 Norway
   8 Portugal
   9 UK
   10  Denmark
   11  Switzerland
   12  Sweden
   13  Austria
   14  Canada
   15  Japan
 [0]: 15
  What is the first extension number you want to configure : 0001

Do you have Direct-Inward-Dial service for all your phones? [yes/no]: no

Do you want to forward calls to a voice message service? [yes/no]: no

Do you wish to change any of the above information? [yes/no]: no
CNF-FILES: Clock is not set or synchronized,
        retaining old versionStamps

 ---- Setup completed config ---

*Mar 1 00:05:40.463: %LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up
Router(config)#end
*Mar 1 00:07:36.471: %SYS-5-CONFIG_I: Configured from console by console
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#dial-peer voice 1 voip
Router(config-dial-peer)#destination-pattern 0002
Router(config-dial-peer)#session target ipv4:192.168.0.242
Router(config-dial-peer)#end




Router 2の設定

Router>
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#line con 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#no do
Router(config-line)#end
Router#
*Mar  1 00:02:38.639: %SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f1/0
Router(config-if)#no sw
Router(config-if)#ip add 192.168.0.242 255.255.255.0
Router(config-if)#no sh
Router(config-if)#end
Router#
*Mar  1 00:03:57.319: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Mar  1 00:03:57.623: %SYS-5-CONFIG_I: Configured from console by console
*Mar  1 00:03:59.583: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
Router#
Router#
Router#ping 192.168.0.223

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.223, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/60/96 ms
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#telephony-service setup


 --- Cisco IOS Telephony Services Setup ---


Do you want to setup DHCP service for your IP Phones? [yes/no]: no

Do you want to start telephony-service setup? [yes/no]: yes
Configuring Cisco IOS Telephony Services :

 Enter the IP source address for Cisco IOS Telephony Services :192.168.0.242
 Enter the Skinny Port for Cisco IOS Telephony Services :  [2000]:
 How many IP phones do you want to configure :  [0]: 1
 Do you want dual-line extensions assigned to phones? [yes/no]: no
 What Language do you want on IP phones :
   0  English
   1  French
   2  German
   3  Russian
   4  Spanish
   5  Italian
   6  Dutch
   7  Norwegian
   8  Portuguese
   9  Danish
   10 Swedish
   11 Japanese
 [0]: 11
 Which Call Progress tone set do you want on IP phones :
   0  United States
   1  France
   2  Germany
   3  Russia
   4  Spain
   5  Italy
   6  Netherlands
   7  Norway
   8  Portugal
   9  UK
   10  Denmark
   11  Switzerland
   12  Sweden
   13  Austria
   14  Canada
   15  Japan
 [0]: 15
 What is the first extension number you want to configure : 0002

Do you have Direct-Inward-Dial service for all your phones? [yes/no]: no

Do you want to forward calls to a voice message service? [yes/no]: no

Do you wish to change any of the above information? [yes/no]: no
CNF-FILES: Clock is not set or synchronized,
        retaining old versionStamps

 ---- Setup completed config ---

Router(config)#
*Mar  1 00:06:23.963: %LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up
Router(config)#
Router(config)#end
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#dial-peer voice 1 voip
Router(config-dial-peer)#destination-pattern 0001
Router(config-dial-peer)#session target ipv4:192.168.0.241
Router(config-dial-peer)#end
Router#


上記に加えて、2台のPCにてCisco IP Communicatorを起動して適切な設定を施してあげると、無事内線通話が出来ました。(Wiresharkでのキャプチャで、RTPパケット及びコーデックがG.729である点までは確認しました)

あと、Cisco IP Communicatorについてはライセンス的に問題がある可能性が高いように思われるので、削除しておきました。(いろんなところにUpされているのも不思議な気もするが、、、)



最新の画像もっと見る

post a comment

ブログ作成者から承認されるまでコメントは反映されません。