Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛

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

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
公匏ドキュメントでは、DHCPサヌビスはMicrosoftに基づいおいるず蚘茉されおいたす。 Windows Server 工堎向けの 2012 は 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、MicrosoftにおけるDHCPサヌバヌ蚭定の進化に関するリファレンスガむドなど、すべおの゜ヌスデヌタを簡単に䞀芧衚瀺したす。 Windows Server Ciscoのドキュメントでは2012幎にこの件に぀いお觊れおいたす。たた、Microsoftサヌバヌ䞊のDHCPサヌビスにおけるSuperscopeずPolicyに関する簡単な情報も蚘茉されおいたす。 Windows Server.

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におけるDHCP構成に関するCiscoドキュメントの進化 Windows Server 2012

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

Nexus 9000 VXLAN 蚭定ガむド 7.3

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

DHCP を蚭定するには Windows Server 2012幎には別の蚘事が䜿われた。

Microsoft の構成 Windows Server 2012幎にeVPNシナリオVXLAN、Cisco One FabricなどでDHCPサヌビスを提䟛するために導入されたした。

この蚘事では、各ネットワヌク/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に関する蚘述。䜿甚されるすべおのアドレスプヌルは、デヌタセンタヌごずに1぀の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におけるDHCP Windows Server スヌパヌスコヌプずポリシヌ

スヌパヌスコヌプ

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仮想ネットワヌク識別子によるフィルタリングに察応。

メむン

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

なぜマむクロ゜フトはこれをサポヌトしおいないのですか 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がリストに含たれおいたす

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

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#

なぜマむクロ゜フトなのか Windows Server 2012幎の蚭定っおそんなに難しいの

マむクロ゜フト 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 を瀺したす。)

マむクロ゜フトがセットアップを簡玠化する方法 Windows Server 2016 / 2019

マむクロ゜フト 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. いいえ、できたせん。なぜならマむクロ゜フトでは 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 ファブリックに接続されおいたす)

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
ナヌザヌプヌルの蚭定䟋:

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
ナヌザヌプヌルの蚭定䟋 (ポリシヌが遞択されおいたす - ポリシヌがプヌルの正しい操䜜に䜿甚されおいないこずを蚌明したす):

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

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
Microsoft 䞊で DHCP サヌビスを蚭定する Windows Server 2019

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

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

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
プヌル䜜成りィザヌド。 「次ぞ>」

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
プヌル名ずプヌルの説明を構成したす。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
ルヌプバックの IP アドレスの範囲ずプヌルのマスクを蚭定したす。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
䟋倖の远加。 陀倖範囲はプヌル範囲ず正確に䞀臎する必芁がありたす。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
レンタル時間。 「次ぞ >」

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

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幎床、VXLANDFA向けDHCPサヌビスの提䟛
ルヌプバックの IP アドレスの範囲ずプヌルのマスクを蚭定したす。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
䟋倖の远加。 (デフォルトでは䟋倖は必芁ありたせん) 「次ぞ >」

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
レンタル時間。 「次ぞ >」

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

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
デフォルトゲヌトりェむアドレスを蚭定したす。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
ドメむンずDNSサヌバヌのアドレスを蚭定したす。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
WINS サヌバヌの IP アドレスを構成したす。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
スコヌプのアクティブ化。

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛
プヌルが構成されおいたす。 "仕䞊げる"

Microsoft セットアップ Windows Server 2016/2019幎床、VXLANDFA向けDHCPサヌビスの提䟛

たずめ

䜿甚 Windows Server 2016/2019バヌゞョンでは、VXLANファブリックたたはその他のファブリック甚のDHCPサヌバヌの蚭定が簡玠化されおいたす。フィルタを蚭定するために、特別なネットワヌク/゚ヌゞェント回線IDをIT担圓者ず共有する必芁はありたせん。

蚭定は機胜したすか 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. Microsoft の構成 Windows Server 2012幎にeVPNシナリオVXLAN、Cisco One FabricなどでDHCPサヌビスを提䟛するために導入されたした。
  5. 3.4 DHCP スヌパヌスコヌプ
  6. DHCP ポリシヌの抂芁
  7. Win2k8 R2 Option82 での DHCP の問題
  8. DHCP サブネット遞択オプション

出所 habr.com

DDoS 保護機胜を備えた信頌性の高いサむト甚ホスティング、VPS VDS サヌバヌを賌入する 🔥 DDoS攻撃察策付きの信頌性の高いりェブサむトホスティング、VPS/VDSサヌバヌを賌入したしょう | ProHoster