[转载] ip helper-address

Wandering 发表于 2008-07-24 16:01:03



声明:转自 Cisco.com


ip helper-address


To enable the forwarding of User Datagram Protocol (UDP) broadcasts, including BOOTP, received on an interface, use the ip helper-address command in interface configuration mode. To disable the forwarding of broadcast packets to specific addresses, use the no form of this command.


ip helper-address [vrf name | global] address [redundancy vrg-name]

no ip helper-address [vrf name | global] address [redundancy vrg-name]


Usage Guidelines

Combined with the ip forward-protocol command, the ip helper-address command allows you to control which broadcast packets and which protocols are forwarded.

One common application that requires helper addresses is Dynamic Host Configuration Protocol (DHCP), which is defined in RFC 1531. To enable BOOTP or DHCP broadcast forwarding for a set of clients, configure a helper address on the router interface connected to the client. The helper address should specify the address of the BOOTP or DHCP server. If you have multiple servers, you can configure one helper address for each server.

All of the following conditions must be met in order for a UDP or IP packet to be helpered by the ip helper-address command:

The MAC address of the received frame must be all-ones broadcast address (ffff.ffff.ffff).

The IP destination address must be one of the following: all-ones broadcast (255.255.255.255), subnet broadcast for the receiving interface, or major-net broadcast for the receiving interface if the no ip classless command is also configured.

The IP time-to-live (TTL) value must be at least 2.

The IP protocol must be UDP (17).

The UDP destination port must be for TFTP, Domain Name System (DNS), Time, NetBIOS, ND, BOOTP or DHCP packet, or a UDP port specified by the ip forward-protocol udp command in global configuration mode.

If the DHCP server resides in a Virtual Private Network (VPN) or global space that is different from the interface VPN, then the vrf name or global option allows you to specify the name of the VRF or global space in which the DHCP server resides.

The ip helper-address vrf name address option uses the address associated with the VRF name regardless of the VRF of the incoming interface. If the ip helper-address vrf name address command is configured and later the vrf is deleted from the configuration, then all IP helper addresses associated with that VRF name will be removed from the interface configuration.

If the ip helper-address address command is already configured on an interface with no VRF name configured, and later the interface is configured with the ip helper-address vrf name address command, then the previously configured ip helper-address address is considered to be global.


Note The ip helper-address command does not work on an X.25 interface on a destination router because the router cannot determine if the packet was intended as a physical broadcast.



Examples

The following example defines an address that acts as a helper address:

interface ethernet 1 
 ip helper-address 10.24.43.2 

The following example defines an address that acts as a helper address and is associated with the VRF named host1:


interface ethernet 1/0 
 ip helper-address vrf host1 10.25.44.2 

The following example defines an address that acts as a helper address and is associated with the VRG named group1:


interface ethernet 1/0 
 ip helper-address 10.25.45.2 redundancy group1 

Related Commands


Command

Description

ip forward-protocol


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



关键词(Tag): network ip udp helper-address

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

最新评论

发表评论

* 昵称

已经注册过? 请登录

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

Email
网址
* 评论
表情
 
 

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

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

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