ip helper-address
19-14 IP Configuration
Examples
ThefollowingexamplegloballydisablesIPforwardingforUDPport69.
C2(su)->router(Config)#no ip forward-protocol udp 69
ThefollowingexampledisablesIPforwardingforUDPport69onaspecificinterfa ce.
C2(su)->router(Config)#interface vlan 10
C2(su)->router(Config-if(Vlan 10))#no ip forward-protocol udp 69
ip helper-address
UsethiscommandtoenabletheDHCP/BOOTPrelayagentonaSecureStackC2routedinterface.
EnablingtherelayagentallowsforwardingofclientDHCP/BOOTPrequeststoaDHCP/BOOTP
serverthatdoesnotresideonthesamebroadcastdomainastheclient.Upto6IPhelperaddresses
maybeconfiguredper
interface.
ThenoformofthiscommanddisablestheforwardingofUDPdatagramstothespecifiedaddress.
Syntax
ip helper-address address
no ip helper-address address
Parameters
Defaults
None.
Mode
Interfaceconfiguration:C2(su)‐>Router1(Config‐if(Vlan1))#
Usage
WhenahostrequestsanIPaddress,itsendsoutaDHCPbroadcastpacket.Normally,therouter
dropsallbroadcastpackets.However,byexecutingthiscommand,youenabletherouted
interfacetopassDHCPbroadcastframesthrough,sendingthemdirectlytotheremoteDHCP
server’sIPaddress.
TheDHCP/BOOTPrelayagent
willdetectDHCP/BOOTPrequestsbasedonUDPsourceand
destinationports.Itwillthenmakethenecessarychangestothepacketandsendthepackettothe
DHCPserver.Thechangesinclude:
•ReplacingthedestinationIPaddresswiththeaddressoftheDHCPserver,
•ReplacingthesourceIPaddresswithits
ownaddress(thatis,theIPaddressofthelocal
routedinterface),and
•WithintheBOOTPpartofthepacket,changingtheRelayAgentIPaddressfrom0.0.0.0tothe
addressofthelocalroutedinterface.
ThelastchangetotheBootPpacket“tells”theDHCPserverthatitneedsto
assignanIPaddress
thatisinthesamesubnetastheRelayAgentIP.Whentheresponsecomesfromtheserver,the
DHCP/BOOTPrelayagentsendsittothehost.
address AddressofthehostwhereUDPbroadcastpacketsshouldbeforwarded.