组播实战2--PIM稀模式

 

 

本实验中我们采用PIM的稀模式,在稀模式中需要建立共享树,所以也就需要选举RP。自动RP模型中,分为候选RP和RP映射代理。前者可以配置作为某些组的候选RP而以224.0.1.39多播组地址向后者通告;后者接收这些信息后再以224.0.1.40得多播组地址通告候选RP的信息。末端路由器接收到这个224.0.1.40多播组的信息后就可以知道有哪些RP,并且这些RP对应哪些多播组,从而可以自动发现RP。

 

第一步:依据上图配置好各个路由器。

其中ip地址是这样子规划的:12.1.1.1   12.1.1.2   23.1.1.1   23.1.1.2   34.1.1.1   34.1.1.2 45.1.1.1   45.1.1.2 

 

----source----
conf t
host source
int  lo0
ip add 1.1.1.1 255.255.255.0
exit
int s1/1
no sh
ip add 12.1.1.1 255.255.255.0
clo r 64000
exit
ip  route 0.0.0.0 0.0.0.0 12.1.1.2

 

-----R2------------

conf t
host R2
int  lo0
ip add 2.2.2.2 255.255.255.0
exit
int s1/0
no sh
ip add 12.1.1.2 255.255.255.0
clo r 64000

int s1/1
no sh
ip add 23.1.1.1 255.255.255.0
clo r 64000
exit
router eigrp  100
no au
network  12.1.1.0 0.0.0.255
network  23.1.1.0 0.0.0.255
network  2.2.2.2 0.0.0.0
 

---------------R3:---------
conf t
host R3
int  lo0
ip add 3.3.3.3 255.255.255.0
exit
int s1/0
no sh
ip add 23.1.1.2 255.255.255.0
clo r 64000
int s1/1
no sh
ip add 34.1.1.1 255.255.255.0
clo r 64000

exit
router eigrp 100
no au
network 23.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
network 3.3.3.3 0.0.0.0
 

-------------R4:----------
conf t
host R4
int  lo0
ip add 4.4.4.4 255.255.255.0
exit
int s1/0
no sh
ip add 34.1.1.2 255.255.255.0
clo r 64000
int s1/1
no sh
ip add 45.1.1.1 255.255.255.0
clo r 64000
exit
router eigrp  100
no au
network 34.1.1.0 0.0.0.255
network 45.1.1.0 0.0.0.255
network 4.4.4.4 0.0.0.0

 

 

-----PC------
conf t
host PC
int  lo0
ip add 5.5.5.5 255.255.255.0
exit
int s1/0
no sh
ip add 45.1.1.2 255.255.255.0
clo r 64000

exit

ip route 0.0.0.0 0.0.0.0  45.1.1.1

 

 

-----------------------------------第一步 End--------------------------------

 

 

 

 

第二步:配置组播

 

source:

conf t
ip  multicast-routing
int  s1/1
ip pim  spare-mode
exit
ip  pim autoarp  listener           打开监听

 
R2:

conf t
ip  multicast-routing
int s1/0
ip pim  spare-mode
int  s1/1
ip pim  spare-mode
exit
ip  pim autoarp  listener          打开监听
ip  pim  send-rp-announce   lo0  scope   10   RP的选举是以最大IP地址,在本实验中我们使用lo0来做接口 scope设置了RP的范围,我们这里设置了10跳,当然在这里我们还可以使用访问控制列表指定这个RP是属于那个组播。
 

 

R3:

conf t
ip  multicast-routing
int s1/0
ip pim  spare-mode
int  s1/1
ip pim  spare-mode
exit
ip  pim autoarp  listener
ip  pim  send-rp-discovery   lo0 scope  10
 

 

R4:

conf t
ip  multicast-routing
int s1/0
ip pim  spare-mode
int  s1/1
ip pim  spare-mode
exit
ip  pim autoarp  listener
ip  pim  send-rp-announce   lo0  scope  10
 

PC:

conf  t
ip  multicast-routing
int  s1/0
ip   igmp  join-group  224.1.1.1   (设置加入地址为:224.1.1.1的组播)

 

 

第三步:我们可以使用show  ip  pim  rp   map来查看那个是RP

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值