Chapter5ServiceConguration
TheDHCPServerchecksthevalidityoftheRelayAgentdomainandallocatesanIP
addresstotheDHCPClientthatisinthesamesubnetastheIPaddressinaccordance
withthedomainvalue.ThismeansthattheallocatedIPaddressandtheIPaddressof
theinterfacethroughwhichtheRelayreceivesrequestmessagesareinthesamenetwork
segment.Atthesametime,theDHCPRelayimplementstheforwardingoftheresponses
fromtheDHCPServertotheClient.
ConguringtheDHCPRelay
DHCPrelaycongurationincludesthefollowingcommands:
CommandFunction
zte(cfg)#setdhcprelay{enable|disable}
Globallyenables/disablesthe
DHCPrelayfunction.
zte(cfg)#setdhcprelayoption82{enable|disable}
Globallyenables/disablesthe
DHCPrelayoption82function.
zte(cfg)#setdhcprelayoption82sub-optiondevice{ani<string
>|remote-ID{cisco|manual<string>|key<string>}}
SetstheswitchnodedeviceID.
zte(cfg)#setdhcprelayoption82sub-optionport<portlist>
circuit-ID{on{cisco|china-tel|dsl-forum|henan-rft|key<string
>|manual<string>}|off}
Setstherelayoption82suboption.
zte(cfg)#setdhcprelayoption82modeport<portlist>{default|
drop|modify|append}
Setsthemodeinbindingthe
dynamicuserinformationbinding
tableoptionsfortheport.
zte(cfg)#setdhcprelayservermode{ipport|vclass-id}
SetstheDHCPRelaymode,sets
theDHCPserverdependingon
ipportorvclass-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-id
domainoftheserver.
zte(cfg)#cleardhcprelayvclass-id{characters<string>{server
A.B.C.D}|hex-numbers<hex-string>{serverA.B.C.D}}
Clearsthecongureddhcprelay
vclass-id.
zte(cfg)#cleardhcprelayoption82deviceaniClearsthedeviceIDinformation.
showdhcprelay
DisplaystheDHCPrelay
conguration.
showdhcpvclass-id
DisplaystheDHCPRelayoption60
conguration.
zte(cfg)#cleardhcpoption82sub-optiondeviceaniClearsthedeviceIDinformation.
5-161
SJ-20130731155059-002|2013-11-27(R1.0)ZTEProprietaryandCondential