Switch User Manual
ip helper-address
19-18 IP Configuration
Examples
ThefollowingexamplegloballydisablesIPforwardingforUDPport69.
C3(su)->router(Config)#no ip forward-protocol udp 69
ThefollowingexampledisablesIPforwardingforUDPport69onaspecificinterfa ce.
C3(su)->router(Config)#interface vlan 10
C3(su)->router(Config-if(Vlan 10))#no ip forward-protocol udp 69
ip helper-address
UsethiscommandtoenabletheDHCP/BOOTPrelayagentonaSecureStackC3routedinterface
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:C3(su)‐>Router1(Config‐if(Vlan1))#
Usage
TypicallyforDHCP/BootP,whenahostrequestsanIPaddress,itsendsoutaDHCPbroadcast
packet.Normally,therouterdropsallbroadcastpackets.However,byexecutingthiscommand,
youenabletheroutedinterfacetopassDHCPbroadcastframesthrough,sendingthemdirectlyto
theremoteDHCPserver’sIPaddress.
The
DHCP/BOOTPrelayagentwilldetectDHCP/BOOTPrequestsbasedonUDPsourceand
destinationports.Itwillthenmakethenecessarychangestothepacketandsendthepackettothe
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 AddressofthehostwhereUDPbroadcastpacketsshouldbeforwarded.