ZXR105250SeriesCongurationGuide
zte(cfg)#setvlan100,200enable
zte(cfg)#setvlan100,200addport1untag
zte(cfg)#setvlan10,12addport1tag
zte(cfg)#configmac-based-vlansession1
zte(mac-based-vlan)#rule1mac-address00.00.00.00.00.01mac-mask
ff.ff.ff.ff.ff.ffvlan100
zte(mac-based-vlan)#rule2mac-address00.d0.d0.00.00.00mac-mask
ff.ff.ff.00.00.00vlan200
zte(cfg)#setvlanmac-basedport1session1bind
5.41DHCPRelayConguration
DHCPRelayOverview
DHCPRelayinteractswithboththeClientandtheServer,actingdifferentroles.Fromthe
viewoftheDHCPClient,theDHCPRelayAgentcanbeconsideredasitsDHCPServer
andtheDHCPRelayimplementstheresponsetotheIPaddressrequestsfromtheClient.
Forthis,theDHCPRelayAgentneedstointerceptontheinterceptionportoftheDHCP
Server.FromtheviewoftheDHCPServer,theDHCPRelayAgentcanbeconsidered
asitsDHCPClientandtheDHCPRelayinitiatesIPaddressrequests.Forthis,theIP
addressoftheinterfacethroughwhichmessagesarereceivedmustbelledintheRelay
AgenteldoftheDHCPrequestmessagesforwardedbytheDHCPRelay.
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.
5-142
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential