Chapter4ServiceConguration
theRelayAgentdomainandallocatesanIPaddresstotheDHCPClientthatisinthe
samesubnetastheIPaddressinaccordancewiththedomainvalue.Thismeansthat
theallocatedIPaddressandtheIPaddressoftheinterfacethroughwhichRelayreceives
requestmessagesareinthesamenetworksegment.Atthesametime,DHCPRelay
implementstheforwardingoftheresponsesfromtheDHCPServertotheClient.
ConguringtheDHCPRelay
DHCPrelaycongurationincludesthefollowingcommands:
CommandFunction
zte(cfg)#setdhcprelay{enable|disable}
Globallyenables/disablestheDHCP
relayfunction.
zte(cfg)#setdhcprelayoption82{enable|disable}
Globallyenables/disablestheDHCP
relayoption82function.
zte(cfg)#setdhcprelayoption82sub-optiondevice{ani<string>|remote-ID
{cisco|manual<string>}}
SetstheswitchnodedeviceID.
zte(cfg)#setdhcprelayoption82sub-optionport<1-28>circuit-ID{on
{cisco|china-tel|dsl-forum|henan-rtf|manual<string>}|off}
Setstherelayoption82suboption.
setdhcprelayoption82modeport<1-52>{default|drop|modify|append}
Setsthemodeinbindingthedynamic
userinformationbindingtableoptions
fortheport.
zte(cfg)#setdhcprelayservermode{ipport|vclass-id}
SetstheDHCPRelaymode,setsthe
DHCPserverdependingonipportor
vclass-id.
zte(cfg)#setdhcprelayserverretry<5-1000>
SetstheDHCPRelayretry,thatis,
thenumberoftimesthatmessage
resendingtotheserveristried.
zte(cfg)#setdhcprelayvclass-id{characters<string>|hex-numbers<
hex-string>}server<A.B.C.D>
SetstheserverIPaddress
correspondingtotheclass-iddomainof
theserver.
zte(cfg)#cleardhcprelayvclass-id{characters<string>{serverA.B.C.D}|
hex-numbers<hex-string>{serverA.B.C.D}}
Clearsthecongureddhcprelay
vclass-id.
cleardhcprelayoption82sub-optiondeviceaniClearsthedeviceIDinformation.
showdhcprelayDisplaystheDHCPrelayconguration.
showdhcpvclass-id
DisplaystheDHCPRelayoption60
conguration.
zte(cfg)#cleardhcpoption82sub-optiondeviceaniClearsthedeviceIDinformation.
showdhcprelaybinding[port<1-28>|trunk<1-15>](allconguration
modes)
DisplaystheDHCPrelaybinding
information.
4-151
SJ-20120409144109-002|2012-07-02(R1.0)ZTEProprietaryandCondential