ZXR102900ESeriesCongurationGuide
CommandFunction
zte(mac-based-vlan)#rule<1-1024>mac-address<HH.HH.HH.HH.HH.H
H>mac-mask<HH.HH.HH.HH.HH.HH>vlan<1-4094>
SetsaruleforMAC-basedVLAN.
zte(mac-based-vlan)#clearrule<1-1024>ClearsaruleforMAC-basedVLAN.
zte(cfg)#setvlanmac-based{global|port<portlist>}session
<1-64>{bind|unbind}
Setsthebindingrelationbetween
global/portandsessionsofMAC-based
VLAN.
showvlanmac-basedsession[<1-64>]
Displaysallrulesofalloronesession
conguredforanMAC-basedVLAN.
showvlanmac-basedsession[<1-64>]bind
Displaysthebindingrelationsbetween
aportandalloronesessioncongured
foranMAC-basedVLAN.
macbasedVLANCongurationInstance
lCongurationDescription
SetthefollowingMAC-basedVLANruleforport1:AssigntheVLAN"vlan100"
toalluntaggedframeswhosesourceMACaddressis00.00.00.00.00.01and
assigntheVLAN"vlan200"toalluntaggedframeswhosesourceMACaddressis
00.d0.d0.00.00.00.
lCongurationProcedure
CongureanMAC-basedVLANinstance:
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-maskff.ff.ff.ff.ff.ffvlan100
zte(mac-based-vlan)#rule2mac-address00.d0.d0.00.00.00mac-maskff.ff.ff.00.00.00vlan200
zte(cfg)#setvlanmac-basedport1session1bind
4.44DHCPRelayConguration
DHCPRelayOverview
DHCPRelayinteractswithboththeClientandServer,actingdifferentroles.Fromthe
viewoftheDHCPClient,DHCPRelayAgentcanbeconsideredasitsDHCPServerand
DHCPRelayimplementstheresponsetotheIPaddressrequestsfromtheClient.Forthis,
DHCPRelayAgentneedstointerceptontheinterceptionportoftheDHCPServer.From
theviewoftheDHCPServer,DHCPRelayAgentcanbeconsideredasitsDHCPClient
andDHCPRelayinitiatesIPaddressrequests.Forthis,theIPaddressoftheinterface
throughwhichmessagesarereceivedmustbelledintheRelayAgenteldoftheDHCP
requestmessagesforwardedbyDHCPRelay.TheDHCPServerchecksthevalidityof
4-150
SJ-20120409144109-002|2012-07-02(R1.0)ZTEProprietaryandCondential