VXLAN (DFA) لاءِ DHCP خدمتون مهيا ڪرڻ لاءِ Microsoft ونڊوز سرور 2016/2019 ترتيب ڏيڻ
هن آرٽيڪل جو مقصد Microsoft ونڊوز سرور 2016/2019 استعمال ڪندي VXLAN BGP EVPN ۽ DFA فيبرڪ لاءِ DHCP سروس جي ترتيب کي آسان ڪرڻ آهي.
سرڪاري دستاويزن ۾، ڪپڙي جي لاءِ Microsoft Windows Server 2012 تي ٻڌل DHCP سروس هڪ سپر اسڪوپ جي طور تي ترتيب ڏني وئي آهي جنهن ۾ هڪ لوپ بڪ پول شامل آهي (هن پول جي خاص ڳالهه پول مان پول جي سڀني IP پتي کي خارج ڪرڻ آهي (خارج ٿيل IP پتو = پول)) ۽ حقيقي نيٽ ورڪن لاءِ IP پتي جاري ڪرڻ لاءِ تلاءُ (هتي نمايان آهي - پاليسي ترتيب ڏنل آهي - جنهن ۾ DHCP رلي سرڪٽ آئي ڊي فلٽر ٿيل آهي ۽ هي 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.
هي حصو مختصر طور تي سڀني شروعاتي ڊيٽا کي لسٽ ڪري ٿو: نيٽ ورڪ سامان ترتيب ڏيڻ لاءِ هدايتون، اي وي پي اين فيڪٽريز ۾ DHCP پيڪٽس ۾ استعمال ٿيندڙ RFCs، سسکو دستاويزن ۾ Microsoft Windows Server 2012 تي DHCP سرور سيٽنگن جو ارتقا حوالن لاءِ مهيا ڪيو ويو آهي. گڏوگڏ Microsoft ونڊوز سرورز تي DHCP سروس ۾ Superscope ۽ پاليسي بابت مختصر معلومات.
VXLAN BGP EVPN، DFA ڪپڙي تي DHCP رلي کي ڪيئن ترتيب ڏيڻ
VXLAN BGP EVPN ڪپڙي تي 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
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 ڪلائنٽ جو ڊفالٽ گيٽ وي Anycast پتو آهي.)
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 ترتيب ڏيڻ جي حوالي سان سسکو دستاويزن جو ارتقا
مون هن حصي کي شامل ڪيو ڇو ته وينڊر جي حصي تي هڪ مثبت رجحان آهي:
هي آرٽيڪل ظاهر ڪري ٿو ته هر نيٽ ورڪ/VNI کي پنهنجي سپر اسڪوپ بنڊل ۽ لوپ بڪ ايڊريس جو پنهنجو سيٽ گهربل آهي:
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.
شامل ڪيو ويو Windows 2012 سرور سيٽنگون نيٽ ورڪ سامان قائم ڪرڻ لاءِ دستاويزن ۾. استعمال ٿيل سڀني ايڊريس پولز لاءِ، ھڪ 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.
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.
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 پتي جا ڪيترائي تلاءَ هڪ انتظامي يونٽ ۾. ساڳئي جسماني نيٽ ورڪ تي صارفين کي اشتهار ڏيڻ لاء (ساڳئي VLAN ۾) IP پتي ڪيترن ئي پولن مان. جيڪڏهن درخواست سپر اسڪوپ جي حصي جي طور تي پتي جي تلاءَ تي آئي، ته پوءِ ڪلائنٽ کي هن 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 (Virtual Network Identifier) ذريعي فلٽر ڪرڻ لاءِ.
مکيه حصو
هن حصي ۾ تحقيق جي نتيجن تي مشتمل آهي، ڇو ان کي سپورٽ نه ڪيو ويو آهي، اهو ڪيئن ڪم ڪري ٿو (منطق)، ڇا نئون آهي ۽ اهو نئون اسان کي ڪيئن مدد ڏيندو.
ڇو Microsoft Windows Server 2000/2003/2008 سپورٽ نه آهي؟
Microsoft Windows Server 2008 ۽ اڳوڻو ورزن آپشن 82 تي عمل نه ڪندا آهن ۽ واپسي پيڪٽ آپشن 82 کان سواءِ موڪليو ويندو آهي.
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 ونڊوز سرور 2012 ۾ ترتيب ڏيڻ ايترو ڏکيو ڇو آهي؟
Microsoft ونڊوز سرور 2012 اڃا تائين RFC # 3527 کي سپورٽ نٿو ڪري (آپشن 82 ذيلي آپشن 5(0x5) - لنڪ چونڊ)
پر پاليسي جي ڪارڪردگي اڳ ۾ ئي لاڳو ڪئي وئي آهي.
اهو ڪيئن ڪم ڪندو آهي
Microsoft Windows Server 2012 وٽ ھڪڙو سپر پول (SuperScope) آھي جنھن ۾ حقيقي نيٽ ورڪن لاءِ لوپ بڪ ايڊريس ۽ پول آھن.
هڪ IP پتو جاري ڪرڻ لاءِ پول جو انتخاب سپر اسڪوپ ۾ اچي ٿو، ڇو ته جواب آيو آهي DHCP رلي سان لوپ بڪ ماخذ ايڊريس سان گڏ سپر اسڪوپ ۾ شامل.
پاليسي استعمال ڪندي، درخواست سپر اسڪوپ مان چونڊي ٿي ميمبر اسڪوپ جنهن جي VNI آپشن 82 سب آپشن 1 ايجنٽ سرڪٽ ID ۾ موجود آهي. (“0108000600”+ 24 bits VNI + 24 bits جن جا قدر مون کي اڻڄاڻ آهن، پر سنيفر هن فيلڊ ۾ 0 جي قدر ڏيکاري ٿو.)
Microsoft ونڊوز سرور 2016/2019 ۾ سيٽ اپ ڪيئن آسان آهي؟
Microsoft ونڊوز سرور 2016 لاڳو ڪري ٿو RFC#3527 ڪارڪردگي. اهو آهي، ونڊوز سرور 2016 توهانشن 82 سب آپشن 5(0x5) - لنڪ سليڪشن انتساب مان صحيح نيٽ ورڪ کي سڃاڻي سگهي ٿو
ٽي سوال فوري طور تي پيدا ٿين ٿا:
ڇا اسان Superscope کان سواء ڪري سگهون ٿا؟
ڇا اسان بغير پاليسي جي ڪري سگهون ٿا ۽ VNI کي هيڪساڊيڪل فارم ۾ تبديل ڪري سگهون ٿا؟
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 ونڊوز سرور 2016/2019 تي VXLAN BGP EVPN ڪارخاني لاءِ DHCP پول ترتيب ڏيڻ لاءِ، توهان کي صرف ضرورت آهي:
ماخذ رلي پتي لاء هڪ تلاء ٺاهيو.
ڪلائنٽ نيٽ ورڪن لاءِ پول ٺاهيو
ڇا ضروري ناهي (پر ترتيب ڏئي سگهجي ٿو ۽ اهو ڪم ڪندو ۽ ڪم سان مداخلت نه ڪندو):
پاليسي ٺاهيو
سپر اسڪوپ ٺاهيو
مثال طورDHCP سرور قائم ڪرڻ جو مثال (هتي 2 حقيقي DHCP ڪلائنٽ آهن - ڪلائنٽ VXLAN ڪپڙي سان ڳنڍيل آهن)
يوزر پول قائم ڪرڻ جو مثال:
يوزر پول قائم ڪرڻ جو هڪ مثال (پاليسيون چونڊيل آهن - اهو ثابت ڪرڻ لاءِ ته پاليسيون پول جي صحيح آپريشن لاءِ استعمال نه ڪيون ويون آهن):
ماخذ DHCP رلي ايڊريس لاءِ پول ترتيب ڏيڻ جو هڪ مثال (جاري ڪرڻ لاءِ پتي جي حد مڪمل طور تي ايڊريس پول مان خارج ڪرڻ سان مطابقت رکي ٿي):
Microsoft Windows Server 2019 تي DHCP سروس قائم ڪرڻ
لوپ بڪ لاءِ IP پتي جي حد مقرر ڪريو ۽ پول لاءِ ماسڪ.
استثنا شامل ڪرڻ. خارج ڪرڻ جي حد کي تلاء جي حد سان بلڪل ملائڻ گهرجي.
ڪرائي تي ڏيڻ جو وقت. "اڳيون >"
سوال: ڇا توھان ھاڻي DHCP اختيارن کي ترتيب ڏيندا (DNS، WINS، Gateway، Domain) يا توھان ان کي بعد ۾ ڪندا. نه جواب ڏيڻ لاءِ تيز ٿيندو، ۽ پوءِ دستي طور تي پول کي چالو ڪيو. يا ڪنهن به معلومات ڀرڻ کان سواءِ آخر تائين وڃو ۽ جادوگر جي آخر ۾ پول کي چالو ڪريو.
اسان تصديق ڪريون ٿا ته اختيارن کي ترتيب نه ڏنو ويو آهي ۽ پول چالو نه آهي. "ختم ڪر"
اسان پول کي دستي طور تي چالو ڪيو. - منتخب ڪريو دائرو ۽ حوالي واري مينيو ۾ - چونڊيو "فعال ڪريو".
اسان استعمال ڪندڙن/سروررز لاءِ تلاءُ ٺاھيون ٿا.
اسان هڪ نئون پول ٺاهيو.
پول ٺاھڻ جا مددگار. "اڳيون >"
تلاءَ جو نالو ۽ وضاحت ترتيب ڏيو.
لوپ بڪ لاءِ IP پتي جي حد مقرر ڪريو ۽ پول لاءِ ماسڪ.