常用组播路由协议配置方法1 IGMP协议配置1.1 IGMP基本设置1.1.1配置路由器加入到一个组播组:# 将VLAN 接口VLAN-inteface10 包含的以太网端口Ethernet 0/1 #225.0.0.1。
[Quidway-Via n-i nteface10] igmp host-joi n 225.0.0.1 port Ethernet 0/11.1.2控制某个接口下主机能够加入的组播组igmp group-policy acl-nu mber [ 1 | 2 | port { in terface_type in terface_ num |in terface_ name } [ to { in terface_typein terface _nu m|i nteface_ name }]]【例如】#配置访问控制列表acl 2000[Quidway] acl number 2000[Quidway-acl-basic-2000] rule permit source 225.0.0.0# 指定VLAN-inteface10 上满足acl2000 中规定的范组,指定组的[Quidway-Vla n-in terface10] igmp group-policy 2000 21.1.3 IGMP版本切换igmp version { 1 | 2 }# 在VLAN 接口VLAN-inteface10 上运行IGMP 版本1。
[Quidway-Vla n-i nteface10] igmp vers ion 11.1.4 IGMP查询间隔时间:默认60sigmp timer query sec onds#将VLAN-inteface2 接口上的主机成员查询报文发送间隔设置为[Quidway-Vla n-i nteface2] igmp timer query 1501.1.5 IGMP查询超时时间:默认为2倍的查询间隔时间igmp timer other-querier-prese nt#配置Querier 的存活时间为300秒[Quidway-Vla n-i nteface10] igmp timer other-querier-prese nt 3001.1.6 IGMP查询最大响应时间:默认为10sigmp max-resp on se-time sec onds#配置主机成员查询报文中包含的最大响应时间为8秒。
[Quidway-Vla n-i nteface10] igmp max-resp on se-time 81.2 IGMP Proxy1.2.1 组网需求加入组播组IGMP版本为2 。
150 秒。
如图2-3,在RouterA 和RouterB 的接口上启动IGMP 和PIM-DM 。
在末梢网络路由器RouterB 上,配置接口Ethernet2/0/0 的IGMP代理接口为Ethernet1/0/0 。
(有关PIM-DM协议配置请参见下一章。
)1.2.2 组网图1.2.3配置步骤(1) 配置路由器RouterB :#启动组播。
[RouterB] multicast rout in g-e nable# 在接口Ethernet2/0/0 、Ethernet1/0/0 上启动IGMP。
[RouterB] in terface ethernet 2/0/0[RouterB-Ethernet2/0/0] igmp en able[RouterB-Ethernet2/0/0] in terface ethernet 1/0/0[RouterB-Ethernet1/0/0] igmp en able[RouterB-Ethernet1/0/0] quit# 配置接口Ethernet1/0/0 为Ethernet2/0/0 的IGMP Proxy 代理接口。
[RouterB] in terface ethernet 2/0/0[RouterB-Ethernet2/0/0] igmp proxy ethernet1/0/0(2) 配置路由器RouterA :#启动组播。
[RouterA] multicast rout in g-e nable# 在接口Ethernet2/0/0 上启动IGMP、PIM-DM。
[RouterA] in terface ethernet 2/0/0[RouterA-Ethernet2/0/0] igmp en able[RouterA-Ethernet2/0/0] pim dm1.3 IGMP Snooping1.3.1 开启IGMP轮询igmp-s nooping { en able | disable }# 在VLAN100 上使能IGMP Snooping 。
[Quidway] igmp-s nooping en able1.3.2 IGMP Snooping 调整在单个vlan 中启用Snooping :[Quidway] via n 100[Quidway-vla n100] igmp-s nooping en able1.3.3设置组播组成员端口的老化时间igmp-s nooping host-agi ng-time sec onds#把老化时间设置为 300秒。
[Quidway] igmp-s nooping host-ag in g-time 3001.3.4 IGMP Sn oopi ng 路由器端口老化时间igmp-s nooping router-agi ng-time sec onds#设置IGMP Snooping 路由器端口老化时间为 300秒。
[Quidway] igmp-s nooping router-ag in g-time 3001.3.5响应查询最大时间igmp-s nooping max-resp on se-time sec onds#设置IGMP Snooping 报文的响应时间为 12秒。
[Quidway] igmp-s nooping max-resp on se-time 121.4监控调试IGMP组播组地址报告成为组播组成员的最后一个主机发现组播组以来的时间(时、分、秒)记录将从IGMP 组表中删除的预定时间(时、分、秒)1.4.2 display igmp in terface#查看所有接口的IGMP 配置和运行信息。
<Quidway> display igmp in terfaceVla n-in terface1 (10.153.17.99):IGMP is en abledCurre nt IGMP versio n is 2Value of query in terval for IGMP(in seco nds): 60Value of other querier time out for IGMP(in seco nds): 120Value of maximum query resp onse time for IGMP(in sec on ds): 10Value of robust count for IGMP: 2Value of startup query in terval for IGMP(in sec on ds): 15 1.4.1 display igmp group#显示直连子网中组成员的状况。
<Quidway> display igmp groupLoopBack0 (20.20.20.20): Total 3 IGMP Groups reported:Group Address 225.1.1.1 Last Reporter 20.20.20.20 Uptime 00:02:04 Expires00: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:17Group address Last Reporter Uptime ExpiresValue of last member query in terval for IGMP(in sec on ds): 1Value of query timeout for IGMP vers ion 1(i n sec on ds): 400 Policy 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 in terval querier timeout max query resp onse time robust cou nt IGMP 版本号通用查询间隔查询器超时时间最大查询响应时间健壮系数,即IGMP查询器在收到主机发送的IGMP Leave报文时,发送IGMP指定组查询报文的次数startup query in terval last member query in terval 启动查询间隔IGMP查询器在收到主机发送的IGMP Leave 报文时,发送IGMP指定组查询报文的时间间隔query timeoutPolicy to accept IGMP reportsIGMP版本1中查询超时时间IGMP 组播组的过滤策略,以控制对IP组播组的问Querier for IGMP IGMP group limit IGMP查询器接口上加入的IGMP组的数量限制,超过限制后路由器不再处理IGMP加入报文1.4.3 debugi ng igmpdebuggi ng igmp { all | event | host | packet | timer }#打开IGMP的所有调试信息开关<Quidway> debugg ing igmp all2 PIM协议配置2.1 PIM-DM基本配置2.1.1激活多播路由[Quidway] multicast rout in g-e nable2.1.2 PIM-DM配置在接口模式下输入[Quidway-Serial1/0/0] pim dm【例如】#启动组播。
<Quidway> system-view[Quidway] multicast routi ng-e nable# 分别在接口Ethernet2/0/0 、Serial1/0/0 和Serial1/1/0 上启动PIM-DM。