组播实战--PIM 密模式

来源:互联网 发布:淘宝垃圾 编辑:程序博客网 时间:2024/05/15 09:25

 

 

 

实验的拓扑图如上所示:

 

实验目的:理解pim dense-mode的工作原理及配置。

密模式只使用源树,不使用共享树,所以本实验中没有没有必要去设定RP。

由于PIM是协议无关的组播,所以我们可以在上面跑路由协议或者静态路由。

 

本实验中采用IGMP

 

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

其中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 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 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

 

---------------R3:---------
conf t
host R3
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

 

-------------R4:----------
conf t
host R4
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

 

 

-----PC------
conf t
host PC
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  dense-mode

 

R2:

conf t

ip  multicast-routing

int s1/0

ip  pim  dense-mode

int  s1/1

ip  pim   dense-mode

 

 

R3:

conf t

ip  multicast-routing

int s1/0

ip  pim  dense-mode

int  s1/1

ip  pim   dense-mode

 

 

R4:

conf t

ip  multicast-routing

int s1/0

ip  pim  dense-mode

int  s1/1

ip  pim   dense-mode

 

PC:

conf  t

ip  multicast-routing

int  s1/0

ip   igmp  join-group  224.1.1.1   (设置加入地址为:224.1.1.1的组播)

 

 

第三步:验证multicast

3.1  show  ip  pim  nei查看组播邻居。

3.2  show  ip  mroute 查看源树,在source上PING 224.1.1.1然后在查看下源树。

3.3  在PC上的s1/0上运行no  ip igmp join-group 224.1.1.1

       然后查看下R4上的mrout是否修建掉。

 

 

 

 

 

 

原创粉丝点击