ip helper-address
19-14 IP Configuration
Examples
ThefollowingexamplegloballydisablesIPforwardingforUDPport69.
B5(su)->router(Config)#no ip forward-protocol udp 69
ThefollowingexampledisablesIPforwardingforUDPport69onaspecificinterfa ce.
B5(su)->router(Config)#interface vlan 10
B5(su)->router(Config-if(Vlan 10))#no ip forward-protocol udp 69
ip helper-address
UsethiscommandtoenabletheDHCP/BOOTPrelayagentonaEnterasysB5routedinterface
and/ortoforwardbroadcasttrafficidentifiedwiththeipforward‐protocolcommandtoaunicast
address.EnablingtherelayagentallowsforwardingofclientDHCP/BOOTPrequeststoaDHCP/
BOOTPserverthatdoesnotresideon
thesamebroadcastdomainastheclient.Upto6IPhelper
addressesmaybeconfiguredperinterface.
ThenoformofthiscommanddisablestheforwardingofUDPdatagramstothespecifiedaddress.
Syntax
ip helper-address address
no ip helper-address address
Parameters
Defaults
None.
Mode
Interfaceconfiguration:B5(su)‐>Router1(Config‐if(Vlan1))#
Usage
TypicallyforDHCP/BootP,whenahostrequestsanIPaddress,itsendsoutaDHCPbroadcast
packet.Normally,therouterdropsallbroadcastpackets.However,byexecutingthiscommand,
youenabletheroutedinterfacetopassDHCPbroadcastframesthrough,sendingthemdirectlyto
theremoteDHCPserver’sIPaddress.
The
DHCP/BOOTPrelayagentwilldetectDHCP/BOOTPrequestsbasedonUDPsourceand
destinationports.Itwillthenmakethenecessarychangestothe packetandsendthepackettothe
DHCPserver.Thechangesinclude:
•ReplacingthedestinationIPaddresswiththeaddressoftheDHCPserver,
•ReplacingthesourceIP
addresswithitsownaddress(thatis,theIPaddressofthelocal
routedinterface),and
•WithintheBOOTPpartofthepacket,changingtheRelayAgentIPaddressfrom0.0.0.0tothe
addressofthelocalroutedinterface.
ThelastchangetotheBootPpacket“tells”theDHCPserverthat
itneedstoassignanIPaddress
thatisinthesamesubnetastheRelayAgentIP.Whentheresponsecomesfromtheserver,the
DHCP/BOOTPrelayagentsendsittothehost.
address AddressofthehostwhereUDPbroadcastpacketsshouldbeforwar ded .