PXE boot
كما نعلم أن جهاز الكمبيوتر يقلع أو يعمل boot من أحد الوسائط مثل القرص الصلب لكن هناك إمكانية لجهاز الكمبيوتر أن يقلع أو يعمل boot من الشبكة وهذه الخاصية تسمى Pre-Boot Execution (PXE)
وفي عملية الـpxe فإن جهاز الكمبيوتر يستخدم عنوان السيرفر ومنا فذ خدمة الـpxe وهذه المنافذ هي UDP port 67 و 68
وكما تعلم أن جهاز الكمبيوتر اذا اراد الحصول على عنوان فإنه يستخدم عنوان سيرفر الـDHCP ومنافذ خدمة الـDHCP وهما UDP port 67 و 68
ماهي المشكلة التي تواجهنا؟
المشكلة هي عندما يكون سيرفر الـDHCP وسيرفر الـPXE على نفس السيرفر فيكون لهما نفس العنوان ولهما أيضا نفس المنافذ للخدمتين وهما مشكلة بحيث لاتعرف الخدمة المطلوبة.
ماهو الحل لهذه المشكلة ؟
الحل بسيط وهو تغيير منافذ خدمة الـPXE من على السيرفر إلى منافذ مختلفة عن خدمة الـDHCP
ويتم هذا التغيير بالتعديل على الـoption رقم 060 على سيرفر الـ DHCP حيث يظهر أسم الـoption كما يلي:-
060 Pre-Boot Execution (PXE) client option
وهناك ثلاث طرق للتعديل وهي :-
1- بواسطة DHCP Management Console
يلزمنا أولا اضافة الـoption 060 ثم إعطاءه القيمة صفر باتباع الخطوات التالية:-







2- بواسطة PowerShell
Add-DhcpServerv4OptionDefinition -ComputerName MyDHCPServer -Name PXEClient -Description “PXE Support” -OptionId 060 -Type String
on scope :-
Set-DhcpServerv4OptionValue -ComputerName MyDHCPServer -ScopeId “MyScope” -OptionId 060 -Value “PXEClient”
3- بواسطة command prompt
- Open an elevated command prompt on your DHCP computer.
- Type Netsh.exe and press Enter.
- At the Netsh prompt, type dhcp and press Enter.
- At the Netsh dhcp prompt, type server \servername and press Enter to connect to the DHCP
server. Replace servername with the name of your server. - At the Netsh dhcp server prompt, type add optiondef 60 PXEClient String 0 comment=PXEsupport and press Enter.
- At the Netsh dhcp server prompt, type set optionvalue 60 STRING PXEClient and press
Enter. - At the Netsh dhcp server prompt, type exit and press Enter, and then close the command
prompt.