ZXR105250SeriesCongurationGuide
zte(cfg)#setdhcprelayvlan{enable|disable}
EnablesordisablestheDHCP
relayfunctionbasedonVLANs.
IftheDHCPfunctionisenabled
globally,thedeviceprovides
therelayfunctionwheneither
thiscommandortherelayagent
commandisused.
showdhcprelayvlan(allcongurationmodes)
DisplaysVLANsforwhichthe
DHCPrelayfunctionisenabled.
DHCPCongurationInstance
lCongurationDescription
SeeFigure5-52,switchport1isconnectedtotheDHCPclient,andswitchport2is
connectedtotheDHCPserveroftheIPnetwork.
Figure5-52DHCPRelayCongurationInstance
Note:
TheDHCPclientandtheDHCPserverareindifferentnetworksegments.
lCongurationProcedure
1.AssignaspeciedVLANtotheport:
setvlan1000addport2tag
setvlan1000enable
2.ConguretheDHCPrelaybyusingthefollowingcommands:
zte(cfg)#setdhcprelayenable
zte(cfg-router)#setipport0ipaddress169.1.15.1255.255.0.0
zte(cfg-router)#setipport0vlan1
zte(cfg-router)#setipport0enable
zte(cfg-router)#setipport0dhcprelayagent
zte(cfg-router)#setipport0dhcprelayserver10.230.72.2
zte(cfg-router)#setipport63ipaddress10.230.72.1255.255.255.0
5-144
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential