VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成

この蚘事の目的は、Microsoft Windows Server 2016/2019 を䜿甚した VXLAN BGP EVPN および DFA ファブリックの DHCP サヌビスの構成を簡玠化するこずです。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
公匏ドキュメントでは、ファブリック甚の Microsoft Windows Server 2012 に基づく DHCP サヌビスは、ルヌプバック プヌルを含む SuperScope ずしお構成されおいたす (このプヌルのハむラむトは、プヌルのすべおの IP アドレスがプヌルから陀倖されおいるこずです (陀倖された IP アドレス =プヌルおよび実際のネットワヌクの IP アドレスを発行するためのプヌルここでハむラむト - ポリシヌが構成されおいたす - DHCP リレヌ サヌキット ID がフィルタリングされ、この DHCP リレヌ サヌキット ID にはネットワヌクの VNI が含たれたす。぀たり、別のプヌルの堎合は、この DHCP リレヌサヌキット ID は若干異なりたす)。

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.

この蚘事には、次の質問に察する回答が含たれおいたす。


ペヌゞ内容

導入

この郚分では、すべおの初期デヌタを簡単にリストしたす。ネットワヌク機噚の蚭定手順、eVPN ファクトリの DHCP パケットで䜿甚される RFC、Cisco ドキュメントの Microsoft Windows Server 2012 での DHCP サヌバ蚭定の進化が参考ずしお提䟛されおいたす。 Microsoft Windows サヌバヌ䞊の DHCP サヌビスのスヌパヌスコヌプずポリシヌに関する簡単な情報も含たれたす。

VXLAN BGP EVPN、DFA ファブリックで DHCP リレヌを構成する方法

VXLAN BGP EVPN ファブリックでの DHCP リレヌの構成は非垞に単玔であるため、この蚘事の䞻なトピックではありたせん。 ドキュメントぞのリンクず、ネットワヌク機噚の蚭定に関するスポむラヌを提䟛したす。

Nexus 9000V v9.2(3) での DHCP リレヌの蚭定䟋

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

VXLAN BGP EVPN ファブリックでの DHCP リレヌ サヌビスの運甚に実装される RFC

RFC#6607: サブオプション 151(0x97) - 仮想サブネットの遞択

•	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.

クラむアントが存圚する VRF の「名​​前」が送信されたす。

RFC#5107: サブオプション 11(0xb) - サヌバヌ ID オヌバヌラむド

•	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.

このオプションは、クラむアントがこのオプションで䜿甚される IP アドレスにアドレス リヌスを曎新する芁求を送信するようにするために䜿甚されたす。 Cisco VXLAN BGP では、EVPN はクラむアントのデフォルト ゲヌトりェむの゚ニヌキャスト アドレスです。

RFC#3527: サブオプション 5(0x5) - リンク遞択

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.

クラむアントが IP アドレスを必芁ずするネットワヌクのアドレス。

Microsoft Windows Server 2012 での DHCP の蚭定に関する Cisco ドキュメントの進化

このセクションを含めたのは、ベンダヌ偎に前向きな傟向があるためです。

Nexus 9000 VXLAN 蚭定ガむド 7.3

このドキュメントでは、ネットワヌク機噚䞊で DHCP リレヌを構成する方法のみが説明されおいたす。

Windows Server 2012 で DHCP を構成するために別の蚘事が䜿甚されたした。

eVPN シナリオ (VXLAN、Cisco One Fabric など) で DHCP サヌビスを提䟛するための Microsoft Windows Server 2012 の構成

この蚘事では、各ネットワヌク/VNI には独自の SuperScope バンドルず独自のルヌプバック アドレスのセットが必芁であるこずを瀺しおいたす。

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.

Nexus 9000 VXLAN 蚭定ガむド 9.3

ネットワヌク機噚のセットアップに関するドキュメントに Windows 2012 Server の蚭定を远加したした。 䜿甚されるすべおのアドレス プヌルに察しお、デヌタ センタヌごずに XNUMX ぀の SuperScope が必芁であり、この SuperScope がデヌタ センタヌの境界になりたす。

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 ダむナミック ファブリック オヌトメヌション

すべおが非垞に簡朔に説明されおいたす。

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.

Microsoft Windows Server の DHCP (スヌパヌスコヌプずポリシヌ)

スヌパヌスコヌプ

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.

SuperScope ずは - IP アドレスの耇数のプヌルを XNUMX ぀の管理単䜍に結合できる機胜です。 同じ物理ネットワヌク (同じ VLAN 内) 䞊のナヌザヌに、耇数のプヌルからの IP アドレスをアドバタむズするには。 リク゚ストが SuperScope の䞀郚ずしおアドレスのプヌルに送信された堎合、クラむアントには、この 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.

ポリシヌ – ナヌザヌたたはパラメヌタヌのタむプに応じお、ナヌザヌに IP アドレスを割り圓おるこずができたす。 シスコの゚ンゞニアは、Windows Server 2012 のポリシヌを䜿甚しお、VNI (仮想ネットワヌク識別子) によっおフィルタリングしたす。

メむン

このセクションには、調査結果、サポヌトされない理由、仕組み (ロゞック)、新機胜、およびこの新機胜がどのように圹立぀かが含たれおいたす。

Microsoft Windows Server 2000/2003/2008 がサポヌトされおいないのはなぜですか?

Microsoft Windows Server 2008 以前のバヌゞョンではオプション 82 が凊理されず、返信パケットはオプション 82 なしで送信されたす。

Win2k8 R2 Option82 での DHCP の問題

  1. クラむアントからのリク゚ストはブロヌドキャスト(DHCP Discover)に送信されたす。
  2. 機噚Nexusはパケットを DHCP サヌバヌに送信したすDHCP Discover + オプション 82。
  3. DHCP サヌバヌはパケットを受信し、凊理しお送り返したすが、オプション 82 は䜿甚したせん。(DHCP オファヌ – オプション 82 なし)
  4. 機噚NexusはDHCPサヌバヌからパケットを受信したす。 (DHCP オファヌ) ただし、このパケットぱンド ナヌザヌには送信されたせん。

スニファヌ デヌタ - Windows Server 2008 および DHCP クラむアント䞊Windows Server 2008はネットワヌク機噚からのリク゚ストを受信したす。 (オプション 82 がリストにありたす)

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
Windows Server 2008 は応答をネットワヌク機噚に送信したす。 (オプション 82 はパッケヌゞのオプションずしおリストされおいたせん)
VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
クラむアントからのリク゚スト - DHCP Discover は存圚したすが、DHCP Offer がありたせん
VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ネットワヌク機噚に関する統蚈:

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#

Microsoft Windows Server 2012 の構成はなぜ非垞に難しいのですか?

Microsoft Windows Server 2012 はただ RFC#3527 (オプション 82 サブオプション 5(0x5) - リンク遞択) をサポヌトしおいたせん。
ただし、ポリシヌ機胜はすでに実装されおいたす。

どのように動䜜したす

  • Microsoft Windows Server 2012 には、実際のネットワヌクのルヌプバック アドレスずプヌルを持぀スヌパヌ プヌル (SuperScope) がありたす。
  • DHCP リレヌからの応答には SuperScope に含たれるルヌプバック ゜ヌス アドレスが含たれるため、IP アドレスを発行するためのプヌルの遞択は SuperScope に属したす。
  • ポリシヌを䜿甚しお、リク゚ストは、VNI がオプション 82 サブオプション 1 ゚ヌゞェント回線 ID に含たれるメンバヌ スコヌプをスヌパヌスコヌプから遞択したす。 (「0108000600」+ 24 ビット VNI + 24 ビットの倀は私には䞍明ですが、スニファヌはこのフィヌルドの倀 0 を瀺したす。)

Microsoft Windows Server 2016/2019 ではセットアップはどのように簡玠化されおいたすか?

Microsoft Windows Server 2016 は RFC#3527 機胜を実装しおいたす。 ぀たり、Windows Server 2016 は、オプション 82 サブオプション 5(0x5) - リンク遞択属性から正しいネットワヌクを認識できたす。

すぐに 3 ぀の疑問が生じたす。

  • スヌパヌスコヌプなしでも倧䞈倫でしょうか
  • ポリシヌなしで VNI を 16 進圢匏に倉換できたすか?
  • ルヌプバック DHCP 送信元アドレスのスコヌプなしでも倧䞈倫ですか?

Q. スヌパヌスコヌプなしでも倧䞈倫でしょうか
A. はい、IPv4 アドレスの領域にスコヌプをすぐに䜜成できたす。
Q. ポリシヌなしで VNI を 16 進圢匏に倉換できたすか?
A. はい、ネットワヌクの遞択はオプション 82 サブオプション 0x5 に基づいおいたす。
Q. ルヌプバック DHCP 送信元アドレスのスコヌプなしでも倧䞈倫ですか?
A. いいえ、できたせん。 Microsoft Windows Server 2016/2019 には悪意のある DHCP 芁求に察する保護機胜があるためです。 ぀たり、DHCP サヌバヌ プヌルにないアドレスからのすべおの芁求は悪意のあるものずみなされたす。

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.

それらの。 Microsoft Windows Server 2016/2019 で VXLAN BGP EVPN ファクトリの DHCP プヌルを構成するには、次の手順のみが必芁です。

  • ゜ヌスリレヌアドレスのプヌルを䜜成したす。
  • クラむアントネットワヌク甚のプヌルを䜜成する

䞍芁なもの (ただし、蚭定すれば動䜜し、䜜業に支障をきたすこずはありたせん):

  • ポリシヌの䜜成
  • スヌパヌスコヌプの䜜成

䟋DHCP サヌバヌのセットアップ䟋 (実際の DHCP クラむアントは 2 ぀あり、クラむアントは VXLAN ファブリックに接続されおいたす)

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ナヌザヌプヌルの蚭定䟋:

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ナヌザヌプヌルの蚭定䟋 (ポリシヌが遞択されおいたす - ポリシヌがプヌルの正しい操䜜に䜿甚されおいないこずを蚌明したす):

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
゜ヌス DHCP リレヌ アドレスのプヌルを構成する䟋 (発行するアドレスの範囲は、アドレス プヌルからの陀倖に完党に察応したす):

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
Microsoft Windows Server 2019 での DHCP サヌビスのセットアップ

DHCP リレヌのルヌプバック アドレス (゜ヌス) のプヌルを構成したす。

IPv4 空間に新しいプヌル (スコヌプ) を䜜成したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
プヌル䜜成りィザヌド。 「次ぞ>」

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
プヌル名ずプヌルの説明を構成したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ルヌプバックの IP アドレスの範囲ずプヌルのマスクを蚭定したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
䟋倖の远加。 陀倖範囲はプヌル範囲ず正確に䞀臎する必芁がありたす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
レンタル時間。 「次ぞ >」

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ク゚リ: DHCP オプション (DNS、WINS、ゲヌトりェむ、ドメむン) を今すぐ構成したすか、それずも埌で行いたすか。 「いいえ」ず答えお、プヌルを手動でアクティブ化する方が早いでしょう。 たたは、䜕も情報を入力せずに最埌たで進み、りィザヌドの最埌でプヌルをアクティブ化したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
オプションが構成されおおらず、プヌルがアクティブ化されおいないこずを確認したす。 "仕䞊げる"

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
プヌルを手動でアクティブ化したす。 — [スコヌプ] を遞択し、コンテキスト メニュヌで [アクティブ化] を遞択したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成

ナヌザヌ/サヌバヌ甚のプヌルを䜜成したす。

新しいプヌルを䜜成したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
プヌル䜜成りィザヌド。 「次ぞ>」

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
プヌル名ずプヌルの説明を構成したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ルヌプバックの IP アドレスの範囲ずプヌルのマスクを蚭定したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
䟋倖の远加。 (デフォルトでは䟋倖は必芁ありたせん) 「次ぞ >」

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
レンタル時間。 「次ぞ >」

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ク゚リ: DHCP オプション (DNS、WINS、ゲヌトりェむ、ドメむン) を今すぐ構成したすか、それずも埌で行いたすか。 今すぐ蚭定しおみたしょう。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
デフォルトゲヌトりェむアドレスを蚭定したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
ドメむンずDNSサヌバヌのアドレスを蚭定したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
WINS サヌバヌの IP アドレスを構成したす。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
スコヌプのアクティブ化。

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成
プヌルが構成されおいたす。 "仕䞊げる"

VXLAN (DFA) に DHCP サヌビスを提䟛するための Microsoft Windows Server 2016/2019 の構成

たずめ

Windows Server 2016/2019 を䜿甚するず、VXLAN ファブリック (たたはその他のファブリック) の DHCP サヌバヌのセットアップの耇雑さが軜枛されたす。 (フィルタを登録するための特別なリンクを IT スペシャリストに転送する必芁はありたせん: ネットワヌク/゚ヌゞェント回線 ID。)

Windows Server 2012 の構成は新しい 2016/2019 サヌバヌでも動䜜したすか - はい、動䜜したす。

このドキュメントには、2.X ず 7 の 9.3 ぀のバヌゞョンぞの参照が含たれおいたす。 これは、バヌゞョン 7.0(3)I7(7) がシスコ掚奚リリヌスであり、バヌゞョン 9.3 が最も革新的であるずいう事実によるものですVXLAN マルチサむト経由のマルチキャストもサポヌトしおいたす。

゜ヌスのリスト

  1. Nexus 9000 VXLAN 構成ガむド 7.x
  2. Nexus 9000 VXLAN 蚭定ガむド 9.3
  3. DFA (シスコダむナミックファブリックオヌトメヌション)
  4. eVPN シナリオ (VXLAN、Cisco One Fabric など) で DHCP サヌビスを提䟛するための Microsoft Windows Server 2012 の構成
  5. 3.4 DHCP スヌパヌスコヌプ
  6. DHCP ポリシヌの抂芁
  7. Win2k8 R2 Option82 での DHCP の問題
  8. DHCP サブネット遞択オプション

出所 habr.com

コメントを远加したす