Chapter3DHCPandDHCPSNOOPINGConīæguration
noipdhcprelayagent
Syntax
Description
<ip-address>DHCPagentIPaddressinthedotteddecimal
notation
Instructions
BeforeusingtheDHCPrelayforforwardingDHCPrequestsofusers
toanexternalDHCPserver ,youshallsettheIPaddressofthe
DHCPagent,whichisoneoftheIPaddressesoftheinterface
wheretheDHCPclientis.
TheexternalDHCPserverwillassignuserIPaddressaccording
totheIPaddressoftheDHCPagent.Thetwoaddressesshall
bewithinthesamesubnet.TherespondmessagethattheDHCP
serverreturnedtotheDHCPclientisforwardedthroughtheDHCP
agent.Therefore,theDHCPservershallbeconīæguredwiththe
routetothesubnetoftheDHCPagent.
Example
ThisexampledescribeshowtosettheexternalDHCPAgentad-
dressofthefei_2/1interfaceto192.200.100.254.
ZXR10(config)#interfacefei_1/1
ZXR10(config-if)#ipdhcprelayagent192.200.100.254
Related
Commands
ipdhcpenable
ipdhcprelayserver
showipdhcprelay
ipdhcprelayforwardreply
unrestricted
Purpose
Usethiscommandtoconīæguretochecktheleasepacket
un-strictlyinDHCPRelaystandardmode.Thatistosay,if
receivetheACKpacketthatrespondstouser ,thentransparent
forwardthispackettouserdirectly.Usethenocommandto
restricttheleasepacketfromDHCPuser ,andrecoverthedefault
conīæguration.
CommandModes
Globalconīæguration
Syntax
ipdhcprelayforwardreplyunrestricted
noipdhcprelayforwardreplyunrestricted
Defaults
Defaultisrestriction.
Instructions
DHCPuserleaseisannouncedbyDHCPclientautomatically.For
thecircumstancethatDHCPclientdoesnotsendleasedmessage,
ifACKmessagewhichDHCPServerreplytoclientcanbereceived,
thenDHCPclientisregardedasonline,andsendthemessageto
clienttransparently.
Example
ThisexampledescribeshowtosetDHCPRelayforwardingmode
totransparentforwardingmode.
ZXR10(config)#ipdhcprelayforwardreplyunrestricted
ConīædentialandProprietaryInformationofZTECORPORATION85