Chapter24DHCPv6Conguration
expiresat11:08:1012/07/2010(994seconds)
24.5.2DHCPv6RelayConfigurationExample
CongurationDescription
IfaDHCPclientandaserverdonotbelongtothesamenetwork,itisnecessarytousea
routerthatisdirectlyconnectedtotheuserasaDHCPv6relay.
AsshowninFigure24-4,enabletheDHCPv6relayfunctiononR1.R2providesthe
DHCPv6serverfunction.Thismethodisusuallyappliediftherearemanyhostsrequesting
theDHCPv6service.
Figure24-4DHCPv6RelayCongurationExample
Thecongurationrequirementsaredescribedasfollows.
lCongureanIPv6address,aDHCPv6serveraddress,andDHCPv6relaymodeon
theinterfaceofR1.
lCongureanIPv6addressandDHCPv6servermodeontheinterfaceofR2.Binda
DHCPv6policytotheinterfaceofR2.
lInglobalcongurationmodeonR2,enableDHCPv6.CongureanIPv6addresspool,
aDHCPv6pool,andaDHCPv6policy.Congurearoutepointingtotheinterface
networksegmentofR1.
CongurationFlow
1.CongureanIPv6addressontheinterfaceoftherelay,andenableDHCPv6.
2.Congurearelayservergroupontherelay.Bindthegroupintherelaypolicy.
3.CongurerelayagentmodeontheinterfaceconnectedtothePContherelay.
4.Thecongurationontheserverissimilartothatontheserverinthe“DHCPv6Server
CongurationExample”section.ItisnecessarytospecifytheIPv6addressofthe
relayinterfaceintheDHCPv6policy.
5.Congureastaticroutetothenetworksegmentoftherelayinterfaceontheserver.
CongurationCommands
CongurationonR1:
/*Configureaninterface*/
R1(config)#interfacegei-0/1
R1(config-if-gei-0/1)#ipv6enable
R1(config-if-gei-0/1)#ipv6address86::1:1/96
R1(config-if-gei-0/1)#noshutdown
R1(config-if-gei-0/1)#exit
24-13
SJ-20140504150128-018|2014-05-10(R1.0)ZTEProprietaryandCondential