• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Policy Based Assignment DHCP – Windows Server 2012

AnonyViet by AnonyViet
January 28, 2023
in Network
0

A) Introduce

Join the channel Telegram of the AnonyViet 👉 Link 👈

Policy Based Assignment is a new feature in DHCP (Windows Server 2012). Enable policy-based IP address allocation. Policy Based Assignment (PBA) allows to group and classify Client Devices together based on some properties in the Client Request packet, then allocate IP according to the policy defined by the administrator.

The purpose of implementing PBA is to easily classify devices and arrange them into a certain IP range, from which it is easy to administer and set up some optimal features.

The principle of operation of PBA is based on the fields (fields) in the Client Request packet:

  • Vendor Class
  • User Class
  • MAC address
  • Client Identifier
  • Relay Agent Information

Multiple Device Type : Classify important devices based on device properties (Vendor Class: IP Phone, Printer, Desktop) and arrange them into a certain IP range, next the administrator can set QoS (Quality of Service) ) for that IP range.

Multiple Roles: can classify and separate client devices (Laptop, desktop, server) into a separate IP range (IP range for server, IP range for desktop). Moreover, if the company has laptop clients and they connect by Wireless in the company. And if the configuration of IP allocation for these Wireless connected devices is in the form of Relay Agent. Then you can use the Relay Agent Information field to classify these wireless devices to a certain IP range and configure the Lease Duration time (the time the IP address lasts) to be 4 hours. It is also possible to disable (disable) Dynamic Update DNS for these devices (simply because they are not needed).

Virtualization : Most virtual machines (Virtual machines) you create in a virtualized environment use a certain range of MAC Prefixes (for example, Prefix MAC with the first 6 numbers being 00-15-5D). Based on this MAC Prefix, you can configure PBA to allow virtual machines within a certain IP range, from which you can set DHCP options such as: Default Gateway, DNS, Lease Duration.

B) Description

Drawing1

Address allocation:

1) After the DHCP Server receives the Client Request packet, it will look at the Default Gateway to determine which subnet the packet is coming from, then it will search in the Scope list to find the Scope that matches that subnet.

2) Next, the DHCP Server will check in the Scope whether the Policy Based Assignment is configured or not, and if so, prioritize the policies in the PBA.

3) If considering policies in PBA that do not match (match) with all policies, then DHCP Server will grant normal IP as defined in Scope. If appropriate, proceed to grant IP in the policy that we specify.

4) A client request can match multiple conditions in that policy. And will grant the lowest IP address in that IP range (172.1.1.31) , if the lowest IP address has been granted, the 2nd IP address will be taken to grant (172.1.1.32). In addition, in a policy where multiple IP ranges can be configured (for example, there are 2 ranges, range 1 is 172.1.1.30 – 172.1.1.40 and range 2 is 172.1.1.70 – 172.1.1.80), the system will use range 1 first, if range 1 runs out, then take range 2 out). In case the 2 ranges are full and there are no more IP addresses to grant, the client request packet will be dropped by the DHCP Server.

Allocate Option : Each policy in the Scope will have a separate Option (DNS, Default Gateway, Lease Duration). If the client matches any policy, it will receive the IP and options in that policy.

C) Deploy Policy Based Assignment

Model :

  • AD machine (172.1.1.1/24) : Install DHCP role and configure PBA. With 2 policies, one for Client Computer (in terms of MAC Address), one for virtual machines in Hyper-V1 Server (in terms of MAC Prefix).
  • Client Computer: Windows 8.1, please provide an IP address in the range 172.1.1.34 – 172.1.1.35
  • Hyper-V1 : have 2 virtual machines VM1 and VM2 apply for an IP address in the range 172.1.1.37 – 172.1.1.39, create a virtual machine can refer to at this.

Drawing1

Perform :

1) Install DHCP on the AD machine

0 1

Policy Based Assignment DHCP – Windows Server 2012 2

first

2

  • Enable and license DHCP Server in Domain

3

2) Create a Scope (IP Range, Default Gateway, DNS)

4

5

  • IP range from : 172.1.1.30 – 172.1.1.40

6

  • Default Gateway : 172.1.1.1 (AD.huypd.com)

7

8

  • Create and enable permission to use Scope.

9

3) Create allocation policy for Client Computer

  • First, we have to go to the Client Computer, go to Run -> CMD -> type “Ipconfig /all” to see the MAC Address

13

  • Next, on the DHCP Server create a Policy

ten

11

  • Mechanism : AND if all the required conditions are matched, then grant | OR : just match one of the conditions that require us to configure

twelfth

  • Critera: select MAC Address, then enter the MAC Address in the Value box and click Add

14

  • If the policy is satisfied, declare the IP level from which clause to which clause in the Scope we have just created

15

  • Next configure Default Gateway in Option number “003 Router”

16

  • Configure DNS in Option “006 DNS Server”

17

  • Click Finish to finish

18

19

  • Go to Client Computer type “Ipconfig /renew” and check if the level is correct according to the Policy we just created.

20

4) Allocate by IP Prefix MAC Address for virtual machines

  • After creating 2 virtual machines, we start 2 virtual machines

21

  • Go to virtual machine 1 to see the MAC Address: 00-15-5D-01-02-0b

22

  • Go to virtual machine 2 to see the MAC Address: 00-15-5D-01-02-0C

23

  • Implement New Policy in DHCP Server

24

  • Comparing the two MAC Addresses of the two virtual machines above, we see that they share the same MAC Prefix range (fixed) and start from: 00-15-5D-01 . Proceed to declare in with the value “00155D01*” and stick in the box Appen Wildcard

26

27

28

30

  • 30

thirty first

32

32

The article achieved: 5/5 – (100 votes)

Tags: AssignmentBasedDHCPPolicyServerWindows
Previous Post

10 USB protection software to avoid virus hiding files, encrypting data

Next Post

Instructions to Scan VPS with Tool Core RDP Scanner to get VPS Free

AnonyViet

AnonyViet

Related Posts

What is Direct Connect AWS? Benefits when businesses use Direct Connect AWS
Network

What is Direct Connect AWS? Benefits when businesses use Direct Connect AWS

October 29, 2025
Namecheap offers 3 Domains for alt=
Network

Namecheap offers 3 Domains for $0

October 7, 2025
Proxy vượt Cloudflare là gì? Giải pháp hạn chế Captcha Cloudflare bằng Proxy dân cư
Network

Proxy vượt Cloudflare là gì? Giải pháp hạn chế Captcha Cloudflare bằng Proxy dân cư

October 1, 2025
Renova Cloud – The leading AWS management service in Vietnam today
Network

Renova Cloud – The leading AWS management service in Vietnam today

August 26, 2025
Guide to self -creation socket5 on Ubuntu
Network

Guide to self -creation socket5 on Ubuntu

May 28, 2025
How to create a separate mtproto proxy to use Telegram when blocked
Network

How to create a separate mtproto proxy to use Telegram when blocked

May 25, 2025
Next Post
Instructions to Scan VPS with Tool Core RDP Scanner to get VPS Free

Instructions to Scan VPS with Tool Core RDP Scanner to get VPS Free

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

Instructions for downloading Anh Hai’s Pho Shop game on Android

Instructions for downloading Anh Hai’s Pho Shop game on Android

November 8, 2025
Download training materials on Applying AI in teaching and learning in 2025

Download training materials on Applying AI in teaching and learning in 2025

November 8, 2025
How to pay health insurance on Momo online right at home

How to pay health insurance on Momo online right at home

November 8, 2025
How to create Flycam videos from photos to sell real estate

How to create Flycam videos from photos to sell real estate

November 8, 2025
Instructions for downloading Anh Hai’s Pho Shop game on Android

Instructions for downloading Anh Hai’s Pho Shop game on Android

November 8, 2025
Download training materials on Applying AI in teaching and learning in 2025

Download training materials on Applying AI in teaching and learning in 2025

November 8, 2025
How to pay health insurance on Momo online right at home

How to pay health insurance on Momo online right at home

November 8, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions for downloading Anh Hai’s Pho Shop game on Android

Instructions for downloading Anh Hai’s Pho Shop game on Android

November 8, 2025
Download training materials on Applying AI in teaching and learning in 2025

Download training materials on Applying AI in teaching and learning in 2025

November 8, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

new88 trang chủ shbet trang chủ f168 trang chủ qq88 nhà cái 78win

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

new88 trang chủ shbet trang chủ f168 trang chủ qq88 nhà cái 78win

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply