[转载] ip multicast helper-map

Wandering 发表于 2008-07-24 16:04:21


 

声明:转自 Cisco.com

 

ip multicast helper-map


To allow IP multicast routing in a multicast-capable internetwork between two broadcast-only internetworks, use the ip multicast helper-map command in interface configuration mode. To disable this function, use the no form of this command.

ip multicast helper-map {group-address broadcast-address | broadcast multicast-address} access-list [ttl remapping-value]

no ip multicast helper-map {group-address broadcast-address | broadcast multicast-address} access-list [ttl remapping-value]



Usage Guidelines

When a multicast-capable internetwork is between two broadcast-only internetworks, you can convert broadcast traffic to multicast at the first hop router, and convert it back to broadcast at the last hop router before delivering the packets to the broadcast clients. However, broadcast packets with the IP source address of 0.0.0.0 (such as a Dynamic Host Configuration Protocol [DHCP] request) will not be translated to any multicast group. Thus, you can take advantage of the multicast capability of the intermediate multicast internetwork. This feature prevents unnecessary replication at the intermediate routers and allows multicast fast switching in the multicast internetwork.

If you need to send a directed broadcast to the subnet, the outgoing interface of the last hop router can be configured with an IP broadcast address of x.x.x.255, where x.x.x.0 is the subnet that you are trying to reach; otherwise, the packet will be converted to 255.255.255.255.

By default, many broadcast applications use a default TTL value of 1. Because the helper-map applies the decremented TTL value of the incoming broadcast packet for the generated multicast packet, and most broadcast applications use a TTL value of 1 hop, broadcast packets may not be translated to multicast packets, and thus, may be dropped rather than forwarded. To circumvent this potential issue, you can manually configure the TTL value for broadcast packets being translated into multicast packets using the ttl keyword and remapping-value argument. For the remapping-value argument, specify a value that will enable the translated packets to reach multicast receivers.


Examples


The following example shows how to allow IP multicast routing in a multicast-capable internetwork between two broadcast-only internetworks.

In this example, assume that a server on the LAN connected to the Ethernet interface 0 of the first hop router is sending a UDP broadcast stream with a source address of 126.1.22.199 and a destination address of 126.1.22.255:4000. Based on that scenario, the configuration on the first hop router converts the broadcast stream arriving at incoming Ethernet interface 0 destined for UDP port 4000 to a multicast stream. The access list permits traffic being sent from the server at 126.1.22.199 being sent to 126.1.22.255:4000. The traffic is sent to group address 239.254.2.5. The ip forward-protocol command specifies the forwarding of broadcast messages destined for UDP port 4000.

The second configuration on the last hop router converts the multicast stream arriving at incoming Ethernet interface 1 back to broadcast at outgoing Ethernet interface 2. Again, not all multicast traffic emerging from the multicast cloud should be converted from multicast to broadcast, only the traffic destined for 126.1.22.255:4000.

The configurations for the first and last hop routers are as follows:

First Hop Router Configuration


interface ethernet 0 
 ip address 126.1.22.1 255.255.255.0 
 ip pim sparse-mode 
 ip multicast helper-map broadcast 239.254.2.5 105 

access-list 105 permit udp host 126.1.22.199 host 126.1.22.255 eq 4000 

ip forward-protocol udp 4000 

Last Hop Router Configuration


interface ethernet 1 
 ip address 126.1.26.1 255.255.255.0 
 ip pim sparse-mode 
 ip multicast helper-map 239.254.2.5 126.1.28.255 105 
interface ethernet 2 
 ip address 126.1.28.1 255.255.255.0 
 ip directed-broadcast 
access-list 105 permit udp host 126.1.22.199 any eq 4000 
ip forward-protocol udp 4000  

Related Commands


Command

Description

ip directed-broadcast


Enables the translation of directed broadcast to physical broadcasts.


ip forward-protocol


Specifies which protocols and ports the router forwards when forwarding broadcast packets.



关键词(Tag): network ip multicast helper-map

收藏: QQ书签 del.icio.us 订阅: Google 抓虾

最新评论

发表评论

* 昵称

已经注册过? 请登录

新用户请先注册 以便能显示头像及追踪评论回复

Email
网址
* 评论
表情
 
 

分类小组论坛
杂谈, 娱乐、八卦, 文学、艺术, 体育, 旅游、同城, 象牙塔, 情感, 时尚、生活, 星座, 科技

请注意遵守中华人民共和国法律法规, 如威胁到本站生存, 将依法向有关部门报告, 同时本站的相关记录可能成为对您不利的证据.

相关法律法规
全国人大常委会关于维护互联网安全的决定
中华人民共和国计算机信息系统安全保护条例
中华人民共和国计算机信息网络国际联网管理暂行规定
计算机信息网络国际联网安全保护管理办法
计算机信息系统国际联网保密管理规定