当前位置:文档之家› 组播路由协议配置(华为)

组播路由协议配置(华为)

常用组播路由协议配置方法1IGMP协议配置1.1 IGMP基本设置1.1.1配置路由器加入到一个组播组:# 将VLAN 接口VLAN-interface10 包含的以太网端口Ethernet 0/1 加入组播组#225.0.0.1。

[Quidway-Vlan-interface10] igmp host-join 225.0.0.1 port Ethernet 0/11.1.2控制某个接口下主机能够加入的组播组igmp group-policy acl-number [ 1 | 2 | port { interface_type interface_ num|interface_name } [ to { interface_type interface_num|interface_name } ] ] 【例如】# 配置访问控制列表acl 2000[Quidway] acl number 2000[Quidway-acl-basic-2000] rule permit source 225.0.0.0# 指定VLAN-interface10上满足acl2000中规定的范组,指定组的IGMP版本为2。

[Quidway-Vlan-interface10] igmp group-policy 2000 21.1.3IGMP版本切换igmp version { 1 | 2 }# 在VLAN 接口VLAN-interface10 上运行IGMP 版本1。

[Quidway-Vlan-interface10] igmp version 11.1.4IGMP查询间隔时间:默认60sigmp timer query seconds# 将VLAN-interface2 接口上的主机成员查询报文发送间隔设置为150 秒。

[Quidway-Vlan-interface2] igmp timer query 1501.1.5IGMP查询超时时间:默认为2倍的查询间隔时间igmp timer other-querier-present# 配置Querier 的存活时间为300 秒[Quidway-Vlan-interface10] igmp timer other-querier-present 3001.1.6IGMP查询最大响应时间:默认为10sigmp max-response-time seconds# 配置主机成员查询报文中包含的最大响应时间为8 秒。

[Quidway-Vlan-interface10] igmp max-response-time 81.2 IGMP Proxy1.2.1组网需求如图2-3,在RouterA和RouterB的接口上启动IGMP和PIM-DM。

在末梢网络路由器RouterB上,配置接口Ethernet2/0/0的IGMP代理接口为Ethernet1/0/0。

(有关PIM-DM协议配置请参见下一章。

)1.2.2组网图图2-3 IGMP典型组网举例示意图1.2.3配置步骤(1) 配置路由器RouterB:# 启动组播。

[RouterB] multicast routing-enable# 在接口Ethernet2/0/0、Ethernet1/0/0上启动IGMP。

[RouterB] interface ethernet 2/0/0[RouterB-Ethernet2/0/0] igmp enable[RouterB-Ethernet2/0/0] interface ethernet 1/0/0[RouterB-Ethernet1/0/0] igmp enable[RouterB-Ethernet1/0/0] quit# 配置接口Ethernet1/0/0为Ethernet2/0/0的IGMP Proxy代理接口。

[RouterB] interface ethernet 2/0/0[RouterB-Ethernet2/0/0] igmp proxy ethernet1/0/0(2) 配置路由器RouterA:# 启动组播。

[RouterA] multicast routing-enable# 在接口Ethernet2/0/0上启动IGMP、PIM-DM。

[RouterA] interface ethernet 2/0/0[RouterA-Ethernet2/0/0] igmp enable[RouterA-Ethernet2/0/0] pim dm1.3 IGMP Snooping1.3.1开启IGMP轮询igmp-snooping { enable | disable }# 在VLAN100 上使能IGMP Snooping。

[Quidway] igmp-snooping enable1.3.2IGMP Snooping调整在单个vlan中启用Snooping:[Quidway] vlan 100[Quidway-vlan100] igmp-snooping enable1.3.3设置组播组成员端口的老化时间igmp-snooping host-aging-time seconds# 把老化时间设置为300 秒。

[Quidway] igmp-snooping host-aging-time 3001.3.4IGMP Snooping 路由器端口老化时间i gmp-snooping router-aging-time seconds# 设置IGMP Snooping 路由器端口老化时间为300 秒。

[Quidway] igmp-snooping router-aging-time 3001.3.5响应查询最大时间igmp-snooping max-response-time seconds# 设置IGMP Snooping 报文的响应时间为12 秒。

[Quidway] igmp-snooping max-response-time 121.4 监控调试IGMP1.4.1display igmp group# 显示直连子网中组成员的状况。

<Quidway> display igmp groupLoopBack0 (20.20.20.20): Total 3 IGMP Groups reported:Group Address Last Reporter Uptime Expires225.1.1.1 20.20.20.20 00:02:04 00:01:15225.1.1.3 20.20.20.20 00:02:04 00:01:15225.1.1.2 20.20.20.20 00:02:04 00:01:17 【说明】Group address 组播组地址Last Reporter 报告成为组播组成员的最后一个主机Uptime 发现组播组以来的时间(时、分、秒)Expires 记录将从IGMP 组表中删除的预定时间(时、分、秒)1.4.2display igmp interface# 查看所有接口的IGMP 配置和运行信息。

<Quidway> display igmp interfaceVlan-interface1 (10.153.17.99):IGMP is enabledCurrent IGMP version is 2Value of query interval for IGMP(in seconds): 60Value of other querier time out for IGMP(in seconds): 120Value of maximum query response time for IGMP(in seconds): 10 Value of robust count for IGMP: 2Value of startup query interval for IGMP(in seconds): 15Value of last member query interval for IGMP(in seconds): 1Value of query timeout for IGMP version 1(in seconds): 400Policy to accept IGMP reports: noneQuerier for IGMP: 10.153.17.99 (this router)IGMP group limit is 1024No IGMP group reported【说明】IGMP version IGMP 版本号query interval 通用查询间隔querier timeout 查询器超时时间max query response time 最大查询响应时间robust count IGMP 健壮系数,即IGMP查询器在收到主机发送的IGMPLeave 报文时,发送IGMP 指定组查询报文的次数startup query interval 启动查询间隔last member query interval IGMP查询器在收到主机发送的IGMP Leave 报文时,发送IGMP 指定组查询报文的时间间隔query timeout IGMP版本1 中查询超时时间Policy to accept IGMP reportsIGMP 组播组的过滤策略,以控制对IP组播组的问Querier for IGMP IGMP 查询器IGMP group limit 接口上加入的IGMP 组的数量限制,超过限制后路由器不再处理IGMP 加入报文1.4.3debuging igmpdebugging igmp { all | event | host | packet | timer }# 打开IGMP 的所有调试信息开关<Quidway> debugging igmp all2PIM协议配置2.1 PIM-DM基本配置2.1.1激活多播路由[Quidway] multicast routing-enable2.1.2PIM-DM配置在接口模式下输入[Quidway-Serial1/0/0] pim dm【例如】# 启动组播。

<Quidway> system-view[Quidway] multicast routing-enable# 分别在接口Ethernet2/0/0、Serial1/0/0和Serial1/1/0上启动PIM-DM。

[Quidway] interface serial 1/0/0[Quidway-Serial1/0/0] pim dm[Quidway-Serial1/0/0] ip address 10.16.1.1 24[Quidway-Serial1/0/0] quit2.2 PIM-SM基本配置2.2.1激活多播路由[Quidway] multicast routing-enable需在所有路由器上配置,否则可能会形成组播路由黑洞。

相关主题