• 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

Is Renting a Cheap VPS to Run Docker Really Effective?
Network

Is Renting a Cheap VPS to Run Docker Really Effective?

July 2, 2026
How to get a free domain for 1 year from Gravatar
Network

How to get a free domain for 1 year from Gravatar

June 23, 2026
Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes
Network

Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes

June 20, 2026
Save image as Type contains malicious code: Remove immediately before losing money unfairly!
Network

Save image as Type contains malicious code: Remove immediately before losing money unfairly!

March 19, 2026
Instructions on how to register a .co.uk domain name for free for 1 year
Network

Instructions on how to register a .co.uk domain name for free for 1 year

March 12, 2026
How to Setup Paperclip AI: Create a Company for AI Agent
Network

How to Setup Paperclip AI: Create a Company for AI Agent

March 12, 2026
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

Recent News

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

July 29, 2026
What is quantum resistant cryptography? Why must the Internet change?

What is quantum resistant cryptography? Why must the Internet change?

July 29, 2026
Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

July 29, 2026
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

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

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

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

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