windows server dhcp

הקמת DHCP

DHCP היא  מערכת להפצת כתובות רשת  מנוהלות.
כאשר רכיב תקשורת חדש מתחבר לרשת הארגונית או הפרטית נתב התקשורת
 (ראוטר או סוויץ) דואג לספק כתובת רשת לצורך חיבור אוטומטי של המחשב לאותה סביבת רשת.
היתרון של שימוש ביכולת זו היא בניהול לדעת איזה מחשב מחובר  לרשת בכל רגע נתון כך נוכל
 לבצע ניהול טוב יותר של הרשת שלנו אם זה בבית או ברשת ארגונית.

כעת לאחר שהבנו מה תפקידו של DHCP במערכת בו נראה איך מקימים DHCP.
לצורך הקמת המערכת נפתח את מסך ה-Powershell
(יש להריץ רכיב זה על גבי שרת Windows Server בלבד).
ונקיש את הפקודה הבאה:

install windows feature
install-WindowsFeature -name DHCP

בפקודה הזו אנחנו התקנו את יכולת ה-DHCP במערכת ההפעלה.
בסיום ההתקנה נקבל חיווי אם הפעולה עברה באופן תקין.

 

show the dhcp install

כעת נגדיר מה אהיה תחום הרשת שלנו ומאיזה טווח ועד איזה טווח הרכיב י
וכל להפיץ כתובות באופן אוטומטי במקרה של הרשת שלי הוגדר
טווח מ-192.168.1.2 ועד 192.168.1.20.

scop dhcp
Add-DhcpServerv4Scop -Name '192.168.1.x' -StartRange 192.168.1.2 -EndRange 192.168.1.20 -SubnetMask 255.255.255.0

לאחר הגדרת טווח הרשת נגדיר מה אהיה שם שרת ה-DNS שלנו.

dhcp with dns
Add-DhcpServerInDC - DnsName dc.learnsystem.co.il

כעת נגרום למערכת להסתכל על כל רכיב חדש שמתחבר למערכת ולספק לו כתובת רשת חדשה.

dhcp scop server
Get-DhcpServerv4Scope | Select-Object -Propert *

לאחר הרצת פקודה זו נוכל לוודא שהמערכת עובדת באופן תקין ויש לנו חיווי  
מצב Active בשורת ה-State.

כעת לאחר הקמת המערכת אנחנו נתחבר למכונה וירטואלית אחר שלנו ונוכל לראות שהיא מקבלת כתובת פנויה מטווח הכתובות שהגדרנו בשרת DHCP.

נוכל לראות שקיבלנו כתובת פנויה חדשה של "192.168.1.2" כאשר שרת ה-DHCP שלנו הוא "192.168.1.1".
בנוסף אם נריץ את הפקודה הבאה בשרת ה-DC שלנו נוכל לראות שאכן כתובת אחת מתוך טווח הכתובות
שהגדרנו אכן בשימוש ע"י אחד המחשבים.

show dhcp range
Get-DhcpServerv4ScopeStatistics -ComputerName "dc.learnsystem.co.il"

הערה: במידה ונרצה לראות את ממשק ה-GUI של ה-DHCP יש להתקין את ה-Feature
בשורת ה-PowerShell. 

DHCP install feature
install-windowsfeature DHCP -IncludeManagementTools

16 Comments

  1. Very good post! We are linking to this particularly great post on our website. Keep up the great writing. Beitris Ozzy Lamb

  2. There is certainly a great deal to learn about this issue. I love all the points you have made. Lurette Godart Dyna

  3. If you would like to get much from this article then you have to apply these strategies to your won blog. Juliana Lionel Gensler

  4. Looking forward to reading more. Great article. Really looking forward to read more. Awesome. Clementine Cyrus Aleras

  5. Right away I am going to do my breakfast, once having my breakfast coming again to read additional news. Kylila Maxwell Clyde

  6. Good post! We will be linking to this particularly great content on our site. Keep up the good writing. Sabra Car Onida

  7. I am really pleased to glance at this website posts which contains lots of valuable data, thanks for providing these statistics. Lind Khalil Ron

  8. Hi there everyone, it's my first visit at this site, and article is in fact
    fruitful in support of me, keep up posting these articles.

  9. Hello, I think your site might be having browser compatibility issues.
    When I look at your blog in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, awesome blog!

    • Hi ,
      Microsoft stop support internet explorer so my website didn’t support that.
      And in WordPress 5.8.1 they stop the support IE.

Leave a Reply

האימייל לא יוצג באתר. שדות החובה מסומנים *