12.3 利用GRE隧道实现组播转发

图片[1]-12.3 利用GRE隧道实现组播转发-大赛人网
12-5 利用GRE隧道实现组播转发网络拓扑

1.R1配置OSPF

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255
[R1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255

2.R2配置OSPF

[R2]ospf 1 router-id 2.2.2.2 
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0 
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255
[R2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255

3.R3配置OSPF

[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area  0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255
[R3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255

4.R1配置GRE隧道

[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 172.16.1.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre 
[R1-Tunnel0/0/0]source 12.1.1.1
[R1-Tunnel0/0/0]destination 23.1.1.3

5.R3配置GRE隧道

[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 172.16.1.2 24
[R3-Tunnel0/0/0]tunnel-protocol gre 
[R3-Tunnel0/0/0]source 23.1.1.3
[R3-Tunnel0/0/0]destination 12.1.1.1

6.R1配置组播路由

[R1]multicast routing-enable 
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]pim dm 
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]pim dm
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]pim dm 

7.R2配置组播路由

[R3]multicast routing-enable 
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]igmp enable 
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]pim dm 
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]pim dm 

8.R3 配置组播静态路由

[R3]ip rpf-route-static 10.1.1.0 24 172.16.1.1

9.组播源向组播组224.1.1.1发送组播数据,接收者加入该组播组后能够收到组播源发来的组播数据,查看PIM路由表信息

<R3>display pim routing-table
 VPN-Instance: public net
 Total 1 (*, G) entry; 1 (S, G) entry

 (*, 224.1.1.1)
     Protocol: pim-dm, Flag: WC EXT 
     UpTime: 00:03:48
     Upstream interface: NULL
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information: None

 (10.1.1.1, 224.1.1.1)
     Protocol: pim-dm, Flag: EXT ACT 
     UpTime: 00:04:34
     Upstream interface: Tunnel0/0/0
         Upstream neighbor: 172.16.1.1
         RPF prime neighbor: 172.16.1.1
     Downstream interface(s) information: None
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容