Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)

Is é cuspóir an ailt seo ná cumraíocht seirbhíse DHCP a shimpliú le haghaidh fabraic VXLAN BGP EVPN agus DFA ag baint úsáide as Microsoft Windows Server 2016/2019.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Sa doiciméadú oifigiúil, tá an tseirbhís DHCP atá bunaithe ar Microsoft Windows Server 2012 don fhabraic cumraithe mar SuperScope ina bhfuil linn Loopback (is é buaicphointe na linne seo ná seoltaí IP uile na linne a eisiamh ón linn (seoladh IP eisiata = linn snámha)) agus linnte chun seoltaí IP a eisiúint do líonraí fíor (seo an buaicphointe - tá polasaí cumraithe - ina ndéantar Aitheantas Ciorcaid Leaschraolacháin DHCP a scagadh agus tá an VNI don líonra san Aitheantas Ciorcaid sealaíochta DHCP seo, i.e. le haghaidh linn eile an Leaschraolacháin DHCP seo Beidh ID Chuarda beagán difriúil).

To configure DHCP on Windows server. 

1. Create a super scope. Within the super scope, create scope B, S1, S2, S3, …, Sn for the subnet B and the subnets for each segment. 
2. In scope B,  specify the 'Exclusion Range' to be the entire address range (so that the offered address range must not be from this scope). 
3. For every segment scope Si, specify a policy that matches on Agent Circuit ID with value of '0108000600XXXXXX', where '0108000600' is a fixed value for all segments, the 6 numbers "XXXXXX" is the segment ID value in hexadecimal. Also ensure to check the Append wildcard(*) check box. 
4. Set the policy address range to the entire range of the scope.

Tá freagraí ar na ceisteanna seo a leanas san alt seo:


Ábhar

Réamhrá

Liostaíonn an chuid seo go hachomair na sonraí tosaigh go léir: Treoracha maidir le trealamh líonra a chumrú, RFCanna a úsáidtear i bpacáistí DHCP i monarchana eVPN, soláthraítear le haghaidh tagartha éabhlóid socruithe freastalaí DHCP ar Microsoft Windows Server 2012 i gcáipéisíocht Cisco. Chomh maith le heolas gairid faoin Sárscóp agus Beartas sa tseirbhís DHCP ar Fhreastalaí Microsoft Windows.

Conas Sealaíocht DHCP a chumrú ar fabraic VXLAN BGP EVPN, DFA

Ní príomhábhar an ailt seo é Sealaíocht DHCP a chumrú ar fhabraic VXLAN BGP EVPN, toisc go bhfuil sé simplí go leor. Cuirim naisc ar fáil do dhoiciméadú agus spoiler ar shocruithe ar threalamh líonra.

Sampla de Leaschraolacháin DHCP a bhunú ar Nexus 9000V v9.2(3)

service dhcp
ip dhcp relay
ip dhcp relay information option
ip dhcp relay information option vpn
interface loopback10
  vrf member VRF1
  ip address 10.120.0.1/32 tag 1234567
interface Vlan12
  no shutdown
  vrf member VRF1
  no ip redirects
  ip address 10.120.251.1/24 tag 1234567
  no ipv6 redirects
  fabric forwarding mode anycast-gateway
  ip dhcp relay address 10.0.0.5
  ip dhcp relay source-interface loopback10

RFCanna a chuirtear i bhfeidhm i bhfeidhmiú na seirbhíse Leaschraolacháin DHCP i bhfabraicí VXLAN BGP EVPN

RFC#6607: Fo-rogha 151(0x97) - Roghnú Folíon Fíorúil

•	Sub-option 151(0x97) - Virtual Subnet Selection (Defined in RFC#6607)
Used to convey VRF related information to the DHCP server in an MPLS-VPN and VXLAN EVPN multi-tenant environment.

Tarchuirtear “ainm” an VRF ina bhfuil an cliant lonnaithe.

RFC#5107: Fo-rogha 11(0xb) - Sárú Aitheantais Freastalaí

•	Sub-option 11(0xb) - Server ID Override (Defined in RFC#5107.) 
The server identifier (server ID) override sub-option allows the DHCP relay agent to specify a new value for the server ID option, which is inserted by the DHCP server in the reply packet. This sub-option allows the DHCP relay agent to act as the actual DHCP server such that the renew requests will come to the relay agent rather than the DHCP server directly. The server ID override sub-option contains the incoming interface IP address, which is the IP address on the relay agent that is accessible from the client. Using this information, the DHCP client sends all renew and release request packets to the relay agent. The relay agent adds all of the appropriate sub-options and then forwards the renew and release request packets to the original DHCP server. For this function, Cisco’s proprietary implementation is sub-option 152(0x98). You can use the ip dhcp relay sub-option type cisco command to manage the function.

Úsáidtear an rogha chun a chinntiú go seolann an cliant iarratas chun an léas seoltaí a athnuachan chuig an seoladh IP a úsáidtear sa rogha seo. (Ar Cisco VXLAN BGP, is é EVPN seoladh réamhshocraithe Anycast an chliaint.)

RFC#3527: Fo-rogha 5(0x5) - Roghnú Nasc

Sub-option 5(0x5) - Link Selection (Defined in RFC#3527.) 

The link selection sub-option provides a mechanism to separate the subnet/link on which the DHCP client resides from the gateway address (giaddr), which can be used to communicate with the relay agent by the DHCP server. The relay agent will set the sub-option to the correct subscriber subnet and the DHCP server will use that value to assign an IP address rather than the giaddr value. The relay agent will set the giaddr to its own IP address so that DHCP messages are able to be forwarded over the network. For this function, Cisco’s proprietary implementation is sub-option 150(0x96). You can use the ip dhcp relay sub-option type ciscocommand to manage the function.

Seoladh an líonra óna dteastaíonn seoladh IP ón gcliant.

Éabhlóid doiciméadú Cisco maidir le DHCP a chumrú ar Microsoft Windows Server 2012

Chuir mé an chuid seo san áireamh toisc go bhfuil treocht dhearfach ag an díoltóir:

Treoir Chumraíochta Nexus 9000 VXLAN 7.3

Ní léiríonn an doiciméadú ach conas Leaschraolacháin DHCP a chumrú ar threalamh líonra.

Baineadh úsáid as alt eile chun DHCP a chumrú ar Windows Server 2012:

Microsoft Windows Server 2012 a chumrú chun seirbhísí DHCP a sholáthar i gCás eVPN (VXLAN, Cisco One Fabric, srl)

Tugann an t-alt seo le fios go bhfuil a bheart SuperScope féin ag teastáil ó gach líonra/VNI agus a shraith seoltaí féin Loopback:

If multiple DHCP Scopes are required for multiple subnets, you need to create one LoopbackX per subnet/vlan on all LEAFS and create a superscope with a loopbackX range scope and actual client IP subnet scope per vlan.

Treoir Chumraíochta Nexus 9000 VXLAN 9.3

Cuireadh socruithe Freastalaí Windows 2012 leis na doiciméid chun trealamh líonra a shocrú. I gcás gach comhthiomsaithe seoltaí a úsáidtear, tá SuperScope amháin ag teastáil in aghaidh an ionaid sonraí agus is é an SárScóip seo teorainn an ionaid sonraí:

Create Superscope for all scopes you want to use for Option 82-based policies.
Note
The Superscope should combine all scopes and act as the administrative boundary.

Cisco Uathoibriú Fabraic Dinimiciúla

Mínítear gach rud go han-ghonta:

Let us assume the switch is using the address from subnet B (it can be the backbone subnet, management subnet, or any customer designated subnet for this purpose) to communicate with the Windows DHCP server. In DFA we have subnets S1, S2, S3, …, Sn for segment s1, s2, s3, …, sn. 

To configure DHCP on Windows server. 

1. Create a super scope. Within the super scope, create scope B, S1, S2, S3, …, Sn for the subnet B and the subnets for each segment. 
2. In scope B,  specify the 'Exclusion Range' to be the entire address range (so that the offered address range must not be from this scope). 
3. For every segment scope Si, specify a policy that matches on Agent Circuit ID with value of '0108000600XXXXXX', where '0108000600' is a fixed value for all segments, the 6 numbers "XXXXXX" is the segment ID value in hexadecimal. Also ensure to check the Append wildcard(*) check box. 
4. Set the policy address range to the entire range of the scope.

DHCP i Microsoft Windows Server (superscope & polasaí)

SárScóip

Superscope is an administrative feature of a DHCP server that can be used to group multiple scopes as a single administrative entity. Superscope allows a DHCP server to provide leases from more than one scope to clients on a single physical network. Scopes added to a superscope are called member scopes.

Cad é SuperScope - is feidhmiúlacht é a ligeann duit roinnt linnte seoltaí IP a chomhcheangal in aonad riaracháin amháin. Chun fógraíocht a dhéanamh d'úsáideoirí ar an líonra fisiceach céanna (sa VLAN céanna) seoltaí IP ó roinnt linnte. Má tháinig an t-iarratas chuig comhthiomsú seoltaí mar chuid de SuperScope, is féidir seoladh a thabhairt don chliant ó Raon Feidhme eile atá san SuperScope seo.

Polasaí

The DHCP Server role in Windows Server 2012 introduces a new feature that allows you to create IPv4 policies that specify custom IP address and option assignments for DHCP clients based on a set of conditions.

The policy based assignment (PBA) feature allows you to group DHCP clients by specific attributes based on fields contained in the DHCP client request packet. PBA enables targeted administration and greater control of the configuration parameters delivered to network devices with DHCP.

Beartais – ceadaíonn sé duit seoltaí IP a shannadh d’úsáideoirí ag brath ar an gcineál úsáideora nó paraiméadar. Úsáideann innealtóirí Cisco beartais i Windows Server 2012 chun scagadh de réir VNI (Aitheantóir Líonra Fíorúil).

Príomhchuid

Sa chuid seo tá torthaí an taighde, cén fáth nach dtugtar tacaíocht dó, conas a oibríonn sé (loighic), cad atá nua agus conas a chuideoidh an rud nua seo linn.

Cén fáth nach dtacaítear le Microsoft Windows Server 2000/2003/2008?

Ní phróiseálann Microsoft Windows Server 2008 agus leaganacha níos luaithe rogha 82 agus seoltar an paicéad tuairisceáin gan rogha 82.

Fadhb DHCP Win2k8 R2 le Rogha82

  1. Seoltar an t-iarratas ón gcliant chuig Broadcast (DHCP Discover).
  2. Seolann an trealamh (Nexus) an paicéad chuig an bhfreastalaí DHCP (DHCP Discover + Option 82).
  3. Faigheann Freastalaí DHCP an paicéad, próiseálann é, seolann sé ar ais é, ach gan rogha 82. (Tairiscint DHCP - gan rogha 82)
  4. Faigheann an trealamh (Nexus) paicéad ón bhfreastalaí DHCP. (Tairiscint DHCP) Ach ní sheolann sé an paicéad seo chuig an úsáideoir deiridh.

Sonraí sniffer - ar Windows Server 2008 agus ar an gcliant DHCPFaigheann Windows Server 2008 iarratas ó threalamh líonra. (Tá Rogha 82 i láthair sa liosta)

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Seolann Windows Server 2008 an freagra ar an trealamh líonra. (Níl Rogha 82 liostaithe mar rogha sa phacáiste)
Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Iarratas ón gcliant - tá DHCP Discover i láthair agus tá Tairiscint DHCP in easnamh
Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Staitisticí ar threalamh líonra:

NEXUS-9000V-SW-1# show ip dhcp relay statistics 
----------------------------------------------------------------------
Message Type             Rx              Tx           Drops  
----------------------------------------------------------------------
Discover                  8               8               0
Offer                     8               8               0
Request(*)                0               0               0
Ack                       0               0               0
Release(*)                0               0               0
Decline                   0               0               0
Inform(*)                 0               0               0
Nack                      0               0               0
----------------------------------------------------------------------
Total                    16              16               0
----------------------------------------------------------------------

DHCP L3 FWD:
Total Packets Received                           :         0
Total Packets Forwarded                          :         0
Total Packets Dropped                            :         0
Non DHCP:
Total Packets Received                           :         0
Total Packets Forwarded                          :         0
Total Packets Dropped                            :         0
DROP:
DHCP Relay not enabled                           :         0
Invalid DHCP message type                        :         0
Interface error                                  :         0
Tx failure towards server                        :         0
Tx failure towards client                        :         0
Unknown output interface                         :         0
Unknown vrf or interface for server              :         0
Max hops exceeded                                :         0
Option 82 validation failed                      :         0
Packet Malformed                                 :         0
Relay Trusted port not configured                :         0
DHCP Request dropped on MCT                      :         0
*  -  These counters will show correct value when switch 
receives DHCP request packet with destination ip as broadcast
address. If request is unicast it will be HW switched
NEXUS-9000V-SW-1#

Cén fáth a bhfuil cumraíocht chomh deacair i Microsoft Windows Server 2012?

Ní thacaíonn Microsoft Windows Server 2012 le RFC#3527 go fóill (Rogha 82 Fo-rogha 5(0x5) - Roghnú Nasc)
Ach tá feidhmiúlacht an Bheartais curtha i bhfeidhm cheana féin.

Conas a oibríonn sé:

  • Tá linn snámha sármhaith ag Microsoft Windows Server 2012 (SuperScope) a bhfuil seoltaí Loopback agus linnte le haghaidh líonraí fíor.
  • Baineann SuperScope le roghnú na linne chun seoladh IP a eisiúint, ó tháinig an freagra ó DHCP Relay agus seoladh Foinse Loopback san áireamh in SuperScope.
  • Trí úsáid a bhaint as Beartas, roghnaíonn an t-iarratas ó Superscope raon feidhme na mball sin a bhfuil a VNI le fáil i Rogha 82 Fo-rogha 1 Aitheantais Chuarda an Ghníomhaire. (“0108000600”+ 24 giotán VNI + 24 giotán a bhfuil a luachanna anaithnid dom, ach taispeánann an sniffer luachanna 0 sa réimse seo.)

Conas a dhéantar an tsocrú a shimpliú i Microsoft Windows Server 2016/2019?

Cuireann Microsoft Windows Server 2016 feidhmiúlacht RFC#3527 i bhfeidhm. Is é sin, is féidir le Windows Server 2016 an líonra ceart a aithint ón Rogha 82 Fo-rogha 5(0x5) - tréith Roghnú Nasc

Éiríonn trí cheist láithreach:

  • An féidir linn a dhéanamh gan Superscope?
  • An féidir linn déanamh gan Beartas agus VNI a thiontú go foirm heicsidheachúil?
  • An féidir linn a dhéanamh gan Scope for Loopback DHCP Source seoltaí?

Q. An féidir linn a dhéanamh gan Superscope?
A. Sea, is féidir raon feidhme a chruthú láithreach i réimse na seoltaí IPv4.
Q. An féidir linn déanamh gan Beartas agus VNI a thiontú go foirm heicsidheachúil?
A. Sea, tá roghnú líonra bunaithe ar Fhorogha 82 Rogha 0x5,
Q. An féidir linn a dhéanamh gan Scope for Loopback DHCP Source seoltaí?
A. Ní féidir linn. Toisc go bhfuil cosaint ag Microsoft Windows Server 2016/2019 i gcoinne iarrataí mailíseacha DHCP. Is é sin, meastar go bhfuil gach iarratas ó sheoltaí nach bhfuil sa chomhthiomsú freastalaí DHCP mailíseach.

Roghanna Roghnúcháin Subnet DHCP

 Note
All relay agent IP addresses (GIADDR) must be part of an active DHCP scope IP address range. Any GIADDR outside of the DHCP scope IP address ranges is considered a rogue relay and Windows DHCP Server will not acknowledge DHCP client requests from those relay agents.

A special scope can be created to "authorize" relay agents. Create a scope with the GIADDR (or multiple if the GIADDR's are sequential IP addresses), exclude the GIADDR address(es) from distribution, and then activate the scope. This will authorize the relay agents while preventing the GIADDR addresses from being assigned.

Iad siúd. Chun linn DHCP a chumrú do mhonarcha VXLAN BGP EVPN ar Microsoft Windows Server 2016/2019, ní gá duit ach:

  • Cruthaigh linn le haghaidh seoltaí Foinse Sealaíochta.
  • Cruthaigh linn le haghaidh líonraí cliant

Cad nach bhfuil riachtanach (ach is féidir é a chumrú agus oibreoidh sé agus ní chuirfidh sé isteach ar an obair):

  • Cruthaigh Polasaí
  • Cruthaigh SuperScope

SamplaSampla de fhreastalaí DHCP a bhunú (tá 2 chliant DHCP fíor - tá na cliaint ceangailte leis an bhfabraic VXLAN)

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Sampla de chomhthiomsú úsáideoirí a bhunú:

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Sampla de chomhthiomsú úsáideoirí a bhunú (roghnaítear beartais - chun a chruthú nár úsáideadh polasaithe chun an linn a oibriú i gceart):

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Sampla de chomhthiomsú a chumrú le haghaidh seoltaí Foinse DHCP Relay (comhfhreagraíonn an raon seoltaí atá le heisiúint go hiomlán d’eisiamh ón linn seoltaí):

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Seirbhís DHCP a bhunú ar Microsoft Windows Server 2019

Comhthiomsú a chumrú le haghaidh seoltaí Loopback (foinse) le haghaidh Leaschraolacháin DHCP.

Cruthaímid linn snámha nua (Scóip) sa spás IPv4.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Treoraí cruthú linnte. "Ar Aghaidh >"

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Cumraigh ainm na linne agus cur síos ar an linn.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Socraigh an raon seoltaí IP do Loopback agus an masc don linn.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
eisceachtaí á gcur leis. Caithfidh an raon eisiaimh teacht go díreach leis an raon linne.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Am ar cíos. "Ar Aghaidh >"

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Ceist: An ndéanfaidh tú roghanna DHCP a chumrú anois (DNS, WINS, Gateway, Domain) nó an ndéanfaidh tú é níos déanaí. Bheadh ​​sé níos tapúla gan freagra a thabhairt, agus ansin an linn a ghníomhachtú de láimh. Nó téigh go dtí an deireadh gan aon fhaisnéis a líonadh agus an linn snámha a ghníomhachtú ag deireadh an draoi.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Deimhnímid nach bhfuil na roghanna cumraithe agus nach bhfuil an linn i ngníomh. "Críochnaigh"

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Gníomhachtaimid an linn snámha de láimh. — Roghnaigh Scóip agus sa roghchlár comhthéacs — roghnaigh “Gníomhachtaigh”.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)

Cruthaímid linn d'úsáideoirí/freastalaithe.

Cruthaímid linn snámha nua.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Treoraí cruthú linnte. "Ar Aghaidh >"

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Cumraigh ainm na linne agus cur síos ar an linn.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Socraigh an raon seoltaí IP do Loopback agus an masc don linn.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
eisceachtaí á gcur leis. (Ní gá aon eisceachtaí de réir réamhshocraithe) "Ar Aghaidh>"

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Am ar cíos. "Ar Aghaidh >"

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Ceist: An ndéanfaidh tú roghanna DHCP a chumrú anois (DNS, WINS, Gateway, Domain) nó an ndéanfaidh tú é níos déanaí. Déanaimis é a shocrú anois.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Cumraigh an seoladh geata réamhshocraithe.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Déanaimid na seoltaí fearainn agus freastalaí DNS a chumrú.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Seoltaí IP na bhfreastalaithe WINS a chumrú.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Raon feidhme gníomhachtaithe.

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)
Tá an linn snámha cumraithe. "Críochnaigh"

Microsoft Windows Server 2016/2019 a chumrú chun seirbhísí DHCP a sholáthar do VXLAN (DFA)

Conclúid

Trí úsáid a bhaint as Windows Server 2016/2019 laghdaítear an chastacht a bhaineann le freastalaí DHCP a bhunú le haghaidh fabraic VXLAN (nó aon fhabraic eile). (Ní gá naisc speisialta a aistriú chuig speisialtóirí TF: Aitheantas Ciorcaid Líonra/Gníomhaire chun scagairí a chlárú.)

An n-oibreoidh an chumraíocht do Windows Server 2012 ar fhreastalaithe nua 2016/2019 - tá, oibreoidh sé.

Tá tagairtí sa doiciméad seo do 2 leagan: 7.X agus 9.3. Tá sé seo mar gheall ar an bhfíric go bhfuil leagan 7.0(3) I7(7) ina scaoileadh Cisco Molta, agus is é leagan 9.3 an ceann is nuálaí (fiú ag tacú le Multicast trí VXLAN Multisite).

Liosta foinsí

  1. Treoir Cumraíochta Nexus 9000 VXLAN 7.x
  2. Treoir Chumraíochta Nexus 9000 VXLAN 9.3
  3. DFA (Uathoibriú Fabraic Dinimiciúla Cisco)
  4. Microsoft Windows Server 2012 a chumrú chun seirbhísí DHCP a sholáthar i gCás eVPN (VXLAN, Cisco One Fabric, srl)
  5. 3.4 Sárscóip DHCP
  6. Réamhrá ar Pholasaithe DHCP
  7. Fadhb DHCP Win2k8 R2 le Rogha82
  8. Roghanna Roghnúcháin Subnet DHCP

Foinse: will.com

Add a comment