常用组播路由协议配置方法
1 IGMP协议配置
1.1 IGMP基本设置
1.1.1 配置路由器加入到一个组播组:
Router(config-if)# ip igmp join-group 225.2.2.2
1.1.2 控制某个接口下主机能够加入的组播组
ip igmp access-group access-list
【例如】
Router(config)# access-list 1 225.2.2.2 0.0.0.0
Router(config)# interface ethernet 0
Router(config-if)ip igmp access-group 1
ACL可以同时对组播报文的源和目的地址控制,达到过滤组播源,同时也能过滤特定接收主机的作用,例如:
Deny all state for a group G
deny igmp any host G
permit igmp any any
Deny all state for a source S
deny igmp host S any
permit igmp any any
Permit all state for a group G
permit igmp any host G
Permit all state for a source S
permit igmp host S any
Filter a particular source for a group G
deny igmp host S host G
permit igmp any host G
1.1.3 IGMP版本切换
Router(config-if)# ip igmp version {2|3}
1.1.4 IGMP查询间隔时间:默认60s
Router(config-if)# ip igmp query-interval 120
1.1.5 IGMP查询超时时间:默认为2倍的查询间隔时间
Router(config-if)# ip igmp query-timeout 30
1.1.6 IGMP查询最大响应时间:默认为10s
Router(config-if)# ip igmp query-max-respon-time 8
1.2 IGMP Proxy
如图2,当C收到组播请求后,发送一条PIM-SM join实时更新的消息给B,B发送一个IGMP的请求到A,A通过一条单播链路将数据传送到安禄山和杨贵妃B,这个过程就需要一个IGMP的代理,配置如下:
图2
disneyland怎么读【例如】
Router A Configuration
interface ethernet 0
ip address 10.1.1.1 255.255.255.0
ip pim den-mode
!
interface ethernet 1
ip address 10.2.1.1 255.255.255.0
ip pim den-mode
ip igmp unidirectional link
!
interface ethernet 2
ip address 10.3.1.1 255.255.255.0
Router B Configuration
ip pim rp-address 10.5.1.1 5
access-list 5 permit 239.0.0.0 0.255.255.255.255
!
interface loopback 0
ip address 10.7.1.1 255.255.255.0
ip pim den-mode
ip igmp helper-address udl ethernet 0
ip igmp proxy-rvice
!
interface ethernet 0
ip address 10.2.1.2 255.255.255.0
ip pim den-mode
ip igmp unidirectional link
!
interface ethernet 1
ip address 10.5.1.1 255.255.255.0
ip pim spar-mode
ip igmp mroute-proxy loopback 0
!
interface ethernet 2
ip address 10.6.1.1 255.255.255.0
Router C Configuration
ip pim rp-address 10.5.1.1 5
access-list 5 permit 239.0.0.0 0.255.255.255
!
interface ethernet 0
ip address 10.8.1.1 255.255.255.0
ip pim spar-mode
!
interface ethernet 1
ip address 10.9.1.1 255.255.255.0
ip pim spar-mode
1.3 IGMP Snooping
1.3.1 开启IGMP轮询
Router(config)#ip igmp snooping
1.3.2 IGMP Snooping调整
在单个vlan中启用春天泡脚的好处Snooping:
ip igmp snooping vlan
1.3.3 IGMP Snooping快速离开
ip igmp snooping vlan immediate-leave
The following example shows how to enable IGMP Immediate-Leave processing on VLAN 1:
Router(config)# ip igmp snooping vlan 1 immediate-leave
1.3.4 IGMP Snooping参考多播路由
ip igmp snooping vlan mrouter
To add a multicast router port and to configure the multicast router learning method, u the ip igmp snooping vlan mrouter command in global configuration mode.
ip igmp snooping vlan vlan-id mrouter {interface interface-id | learn pim-dvmrp}
【例如】
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 200 mrouter interface gigabitethernet1/0/2
Switch(config)# end
1.3.5 基于静态地址的IGMP Snooping
ip igmp snooping vlan vlan-id static mac-address interface interface-id
【例如】
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 105 static 01-00-5e-永平安23-33-12 interface gigabitethernet1/0/1
Switch(config)# end
1.4 监控调试IGMP
1.4.1 show ip igmp groups
小瓢虫
1.4.2 show ip igmp interface
显示内容:
(1)IGMP和CGMP在接口下是否启用。
(2香飘飘老板)IGMP 版本。
(3)关于 IGMP 的各种计时器,我们可以基于性能的原因来调整它。
(4)某一子网中的 DR 和 IGMP 查询者。
1.4.3 debug ip igmp
这条命令可以帮助我们了解当前路由器是否发出查询信息,发查询信息的间隔以及是否收
到来自接收者的对查询的响应。
2 PIM协议配置
2.1 PIM-DM基本配置礼仪名言
2.1.1 激活多播路由
Router(config)#ip multicast-routing
2.1.2 PIM-DM配置
在接口模式下输入
Ip pim den-mode
【例如】
ip multicast-routing
interface FastEthernet0/1