ProHoster > Blog > uprava > Konfiguriranje Microsoft Windows Servera 2016/2019 za pružanje DHCP usluga za VXLAN (DFA)
Konfiguriranje Microsoft Windows Servera 2016/2019 za pružanje DHCP usluga za VXLAN (DFA)
Svrha ovog članka je pojednostaviti konfiguraciju DHCP usluge za VXLAN BGP EVPN i DFA tkaninu koristeći Microsoft Windows Server 2016/2019.
U službenoj dokumentaciji, DHCP usluga temeljena na Microsoft Windows Serveru 2012 za tkaninu je konfigurirana kao SuperScope koji sadrži Loopback skup (vrhunac ovog skupa je isključivanje svih IP adresa skupa iz skupa (isključena IP adresa = pool)) i skupove za izdavanje IP adresa za stvarne mreže (ovdje je istaknuto - politika je konfigurirana - u kojem je ID kruga DHCP releja filtriran i ovaj ID kruga DHCP releja sadrži VNI za mrežu, tj. za drugi skup ovaj DHCP relej ID kruga bit će malo drugačiji).
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.
U ovom dijelu ukratko su navedeni svi početni podaci: Upute za konfiguriranje mrežne opreme, RFC-ovi koji se koriste u DHCP paketima u eVPN tvornicama, evolucija postavki DHCP poslužitelja na Microsoft Windows Server 2012 u Cisco dokumentaciji navedena je kao referenca. Kao i kratke informacije o Superscope i Policy u DHCP servisu na Microsoft Windows poslužiteljima.
Kako konfigurirati DHCP relej na VXLAN BGP EVPN, DFA fabric
Konfiguriranje DHCP releja na VXLAN BGP EVPN tkanini nije glavna tema ovog članka jer je prilično jednostavno. Dajem poveznice na dokumentaciju i spojler na postavke mrežne opreme.
Primjer postavljanja DHCP releja na 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
RFC-ovi koji su implementirani u radu usluge DHCP Relay u VXLAN BGP EVPN tkaninama
• 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.
• 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.
Opcijom se osigurava da klijent šalje zahtjev za obnovu zakupa adrese na IP adresu korištenu u ovoj opciji. (Na Cisco VXLAN BGP, EVPN je klijentova zadana Anycast adresa pristupnika.)
RFC#3527: Podopcija 5(0x5) - Odabir veze
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.
Adresa mreže s koje klijent treba IP adresu.
Evolucija Cisco dokumentacije koja se odnosi na konfiguriranje DHCP-a na Microsoft Windows Server 2012
Uključio sam ovaj odjeljak jer postoji pozitivan trend od strane dobavljača:
Ovaj članak ukazuje na to da svaka mreža/VNI zahtijeva vlastiti SuperScope paket i vlastiti skup Loopback adresa:
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.
Dodane su postavke Windows 2012 Server u dokumentaciju za postavljanje mrežne opreme. Za sva korištena skupa adresa potreban je jedan SuperScope po podatkovnom centru i taj SuperScope je granica podatkovnog centra:
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.
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 u Microsoft Windows Serveru (superscope & policy)
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.
Što je SuperScope - to je funkcionalnost koja vam omogućuje kombiniranje nekoliko skupova IP adresa u jednu administrativnu jedinicu. Za oglašavanje korisnicima na istoj fizičkoj mreži (u istom VLAN-u) IP adrese iz nekoliko skupova. Ako je zahtjev došao na skup adresa kao dio SuperScopea, tada se klijentu može dati adresa iz drugog Scopea uključenog u ovaj SuperScope.
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.
Politike – omogućuju vam dodjeljivanje IP adresa korisnicima ovisno o vrsti korisnika ili parametra. Ciscovi inženjeri koriste pravila u sustavu Windows Server 2012 za filtriranje prema VNI (Virtual Network Identifier).
Glavno tijelo
Ovaj odjeljak sadrži rezultate istraživanja, zašto nije podržano, kako funkcionira (logika), što je novo i kako će nam to novo pomoći.
Zašto Microsoft Windows Server 2000/2003/2008 nije podržan?
Microsoft Windows Server 2008 i starije verzije ne obrađuju opciju 82 i povratni paket se šalje bez opcije 82.
DHCP Server prima paket, obrađuje ga, šalje nazad, ali bez opcije 82. (DHCP ponuda – bez opcije 82)
Oprema (Nexus) prima paket od DHCP poslužitelja. (DHCP ponuda) Ali ne šalje ovaj paket krajnjem korisniku.
Sniffer podaci - na Windows Serveru 2008 i na DHCP klijentuWindows Server 2008 prima zahtjev od mrežne opreme. (Opcija 82 je prisutna na popisu)
Windows Server 2008 šalje odgovor mrežnoj opremi. (Opcija 82 nije navedena kao opcija u paketu)
Zahtjev klijenta - DHCP Discover je prisutan, a DHCP ponuda nedostaje
Statistika mrežne opreme:
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#
Zašto je konfiguracija u sustavu Microsoft Windows Server 2012 tako složena?
Microsoft Windows Server 2012 još ne podržava RFC#3527 (Opcija 82 Podopcija 5(0x5) - Odabir veze)
No, funkcionalnost Pravila već je implementirana.
Kako to radi:
Microsoft Windows Server 2012 ima super skup (SuperScope) koji ima povratne adrese i skupove za stvarne mreže.
Odabir skupa za izdavanje IP adrese spada u SuperScope, budući da je odgovor došao iz DHCP Releja s adresom izvora povratne petlje uključenom u SuperScope.
Korištenjem Politike, zahtjev odabire iz Superscopea onaj članski opseg čiji je VNI sadržan u Opciji 82 Podopcija 1 ID kruga agenta. (“0108000600”+ 24 bita VNI + 24 bita čije su mi vrijednosti nepoznate, ali njuškalo pokazuje vrijednosti 0 u ovom polju.)
Kako je postavljanje pojednostavljeno u sustavu Microsoft Windows Server 2016/2019?
Microsoft Windows Server 2016 implementira RFC#3527 funkcionalnost. Odnosno, Windows Server 2016 može prepoznati ispravnu mrežu iz opcije 82, podopcija 5(0x5) - atribut Odabir veze
Odmah se nameću tri pitanja:
Možemo li bez Superscopea?
Možemo li bez Policy i pretvoriti VNI u heksadecimalni oblik?
Možemo li bez Scope for Loopback DHCP Source adrese?
Q. Možemo li bez Superscopea? A. Da, opseg se može kreirati odmah u području IPv4 adresa. Q. Možemo li bez Policy i pretvoriti VNI u heksadecimalni oblik? A. Da, odabir mreže temelji se na Opciji 82 Podopcija 0x5, Q. Možemo li bez Scope for Loopback DHCP Source adrese? A. Ne ne možemo. Budući da Microsoft Windows Server 2016/2019 ima zaštitu od zlonamjernih DHCP zahtjeva. Odnosno, svi zahtjevi s adresa koje nisu u skupu DHCP poslužitelja smatraju se zlonamjernim.
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.
Oni. Da biste konfigurirali DHCP skup za VXLAN BGP EVPN tvornicu na Microsoft Windows Server 2016/2019, trebate samo:
Stvorite skup za izvorne adrese releja.
Stvorite skup za klijentske mreže
Što nije potrebno (ali može se konfigurirati i radit će i neće ometati rad):
Stvorite politiku
Stvorite SuperScope
PrimjerPrimjer postavljanja DHCP poslužitelja (postoje 2 prava DHCP klijenta - klijenti su spojeni na VXLAN fabric)
Primjer postavljanja skupine korisnika:
Primjer postavljanja skupa korisnika (odabrana su pravila - da se dokaže da pravila nisu korištena za ispravan rad skupa):
Primjer konfiguriranja skupa za adrese izvora DHCP releja (raspon adresa za izdavanje u potpunosti odgovara isključenju iz skupa adresa):
Postavljanje DHCP usluge na Microsoft Windows Server 2019
Konfiguriranje skupa za povratne adrese (izvor) za DHCP relej.
Stvaramo novi skup (Scope) u IPv4 prostoru.
Čarobnjak za stvaranje bazena. "Dalje >"
Konfigurirajte naziv bazena i opis bazena.
Postavite raspon IP adresa za povratnu petlju i masku za skup.
Dodavanje izuzetaka. Raspon isključenja mora točno odgovarati rasponu skupa.
Vrijeme najma. "Dalje >"
Upit: Hoćete li sada konfigurirati DHCP opcije (DNS, WINS, Gateway, Domain) ili ćete to učiniti kasnije. Bilo bi brže odgovoriti ne, a zatim ručno aktivirati bazen. Ili idite do kraja bez ispunjavanja bilo kakvih podataka i aktivirajte bazen na kraju čarobnjaka.
Potvrđujemo da opcije nisu konfigurirane i da bazen nije aktiviran. "Završi"
Bazen aktiviramo ručno. — Odaberite Opseg i u kontekstnom izborniku — odaberite „Aktiviraj”.
Stvaramo skup za korisnike/poslužitelje.
Stvaramo novi bazen.
Čarobnjak za stvaranje bazena. "Dalje >"
Konfigurirajte naziv bazena i opis bazena.
Postavite raspon IP adresa za povratnu petlju i masku za skup.
Dodavanje izuzetaka. (Prema zadanim postavkama nisu potrebne iznimke) "Dalje >"
Vrijeme najma. "Dalje >"
Upit: Hoćete li sada konfigurirati DHCP opcije (DNS, WINS, Gateway, Domain) ili ćete to učiniti kasnije. Postavimo to sada.
Konfigurirajte adresu zadanog pristupnika.
Konfiguriramo adrese domene i DNS poslužitelja.
Konfiguriranje IP adresa WINS poslužitelja.
Aktivacija opsega.
Bazen je konfiguriran. "Završi"
Zaključak
Korištenje Windows Servera 2016/2019 smanjuje složenost postavljanja DHCP poslužitelja za VXLAN strukturu (ili bilo koju drugu tkaninu). (Nije potrebno prenijeti posebne veze IT stručnjacima: Mrežni/Agent Circuit ID za registraciju filtara.)
Hoće li konfiguracija za Windows Server 2012 raditi na novim poslužiteljima 2016/2019 - da, radit će.
Ovaj dokument sadrži reference na 2 verzije: 7.X i 9.3. To je zbog činjenice da je verzija 7.0(3)I7(7) Cisco Suggested izdanje, a verzija 9.3 je najinovativnija (čak podržava Multicast putem VXLAN Multisite).