DynagenでCCIEを目指す
20100515 PIM auto-RP autorp listener
最終更新:
it_certification
-
view
目的
- マルチキャストにおける、auto-rpの設定方法を確認します。
- RPの選出および発見は、autorp listenerを用います。
構成
- 設定概要
- Dynagen上のルータR1とWindows上のloopback adapterを接続します。
- loopback adapterの設定方法は「トップページ/手順書 ネットワーク系/Loopbackインターフェースとの接続」を確認してください。
- VLC media playerを用いて、loopback adapterをマルチキャストグループに参加させます。
- EIGRPでルーティングします。
- 全ルータでマルチキャストを有効にします。
- 全I/Fをspase-modeにします。(検証2で、spase-dense-modeに変更します)
- R2 loopback0をRP候補にします。
- R3をMapping Agentにします。
- 構成図

- netファイル
ghostios = True sparsemem = True model = 3620 [localhost] [[3620]] image = C:\Program Files\Dynamips\images\c3620-j1s3-mz.123-18.bin ram = 256 [[ROUTER R1]] f0/0 = NIO_gen_eth:\Device\NPF_{EEC4A317-FFD6-4B4A-9787-64BB3651D3B0} f1/0 = R2 f0/0 [[ROUTER R2]] f1/0 = R3 f0/0 [[ROUTER R3]]
- 初期設定 R1
! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero ! ! no ip domain lookup ! ip multicast-routing ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface FastEthernet0/0 ip address 192.168.0.1 255.255.255.0 ip pim sparse-mode duplex auto speed auto ! interface FastEthernet1/0 ip address 192.168.1.1 255.255.255.0 ip pim sparse-mode duplex auto speed auto ! router eigrp 1 network 192.168.0.0 network 192.168.1.0 auto-summary ! ip http server ip classless ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
- 初期設定 R2
! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero ! ! no ip domain lookup ! ip multicast-routing ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 2.2.2.2 255.255.255.255 ip pim sparse-mode ! interface FastEthernet0/0 ip address 192.168.1.2 255.255.255.0 ip pim sparse-mode duplex auto speed auto ! interface FastEthernet1/0 ip address 192.168.2.2 255.255.255.0 ip pim sparse-mode duplex auto speed auto ! router eigrp 1 network 192.168.1.0 network 192.168.2.0 auto-summary ! ip http server ip classless ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
- 初期設定 R3
! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R3 ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero ! ! no ip domain lookup ! ip multicast-routing ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 3.3.3.3 255.255.255.255 ! interface FastEthernet0/0 ip address 192.168.2.3 255.255.255.0 ip pim sparse-mode duplex auto speed auto ! router eigrp 1 network 192.168.2.0 auto-summary ! ip http server ip classless ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
検証1 RP候補, MAの設定
- RP候補の設定
R2 loopback 0をRP候補として設定します。
R2(config)#access-list 1 permit 239.1.1.1 R2(config)# R2(config)# R2(config)#ip pim send-rp-announce Loopback 0 scope 5 group-list 1 interval 15
- MAの設定
R3をMapping Agentとして設定します。
R3(config)#ip pim send-rp-discovery scope 16 interval 20
- RPの確認
現状の設定では、RPを選出できていない事を確認します。
R1#show ip pim rp mapping PIM Group-to-RP Mappings R1# R2#show ip pim rp mapping PIM Group-to-RP Mappings This system is an RP (Auto-RP) R2# R3#show ip pim rp mapping PIM Group-to-RP Mappings This system is an RP-mapping agent R3#
検証2 autorp listener
- autorp listenerの設定
autorp listenerを全ルータで設定します。この設定により、RP announcement(224.0.1.39)とRP mapping(224.0.1.40)が全ルータに転送されるようになります。
R1(config)#ip pim autorp listener R2(config)#ip pim autorp listener R3(config)#ip pim autorp listener
- Loopbackへのルーティング
以上の設定だけでは、RPの選出はできません。MAであるR3からRP候補であるR2 Loopback 0へのルーティングができないからです。R2 Loopback 0へルーティングできるよう以下の設定を投入します。
R2(config)#router eigrp 1 R2(config-router)#network 2.0.0.0
- RPの確認
RPが選出された事を確認します。
R1#show ip pim rp mapping PIM Group-to-RP Mappings Group(s) 239.1.1.1/32 RP 2.2.2.2 (?), v2v1 Info source: 192.168.2.3 (?), elected via Auto-RP Uptime: 00:00:07, expires: 00:00:51 R1# R2#show ip pim rp mapping PIM Group-to-RP Mappings This system is an RP (Auto-RP) Group(s) 239.1.1.1/32 RP 2.2.2.2 (?), v2v1 Info source: 192.168.2.3 (?), elected via Auto-RP Uptime: 00:01:16, expires: 00:00:42 R2# R3#show ip pim rp mapping PIM Group-to-RP Mappings This system is an RP-mapping agent Group(s) 239.1.1.1/32 RP 2.2.2.2 (?), v2v1 Info source: 2.2.2.2 (?), elected via Auto-RP Uptime: 00:01:56, expires: 00:00:34 R3#
添付ファイル