Deprecated: Automatic conversion of false to array is deprecated in /home/atiparda/public_html/wp-content/plugins/pixfort-likes/pixfort-likes.php on line 232
نحوه پیکربندی سرور DHCP در سوئیچهای سیسکو
شرح | دستور |
برای فعال کردن سوئیچ و ورود به مود privileged exec | Switch>enable |
برای ورود به مود global configuration | Switch#configure terminal |
برای ایجاد رنجی از excluded IP addresses یا آدرسهای IP مستثنی شده | Switch(config)#ip dhcp excluded-address [starting address] [ending address] |
برای ایجاد یک DHCP Pool و وارد شدن به مود پیکربندی DHCP Pool | Switch(config)#ip dhcp pool [pool name] |
برای تعریف رنچ آدرسهای IP که سرور DHCP باید به مشتریان ارائه دهد. | Switch(dhcp-config)#network [network ID] [subnet mask] |
برای تنظیم آدرس IP مربوط به gateway پیش فرض | Switch(dhcp-config)#default-router [IP address of default gateway] |
برای تنظیم آدرس IP سرور DNS | Switch(dhcp-config)#dns-server [IP address of DNS server] |
برای خروج از مود پیکربندی DHCP Pool | Switch(dhcp-config)#exit |
برای ورود به مود پیکربندی ویلن: VLAN 1 | Switch(config)#interface vlan 1 |
برای تنظیم یک آدرس IP در VLAN1 | Switch(config-if)#ip address [any available IP address from the pool] [subnet mask] |
برای فعال کردن VLAN | Switch(config-if)#no shutdown |
برای خروج از مود پیکربندی VLAN | Switch(config-if)#exit |
برای خروج از مود global configuration | Switch(config)#exit |
برای کپی کردن پیکربندی در حال اجرا یا همان running configuration به پیکربندی زمان راه اندازی یا startup configuration. | Switch#copy running-config startup-config |
پیکربندی DHCP در سوئیچهای سیسکو (از طریق Packet Tracer)
هدف:
پیکربندی سرویس DHCP روی سوئیچ:
بیایید با بررسی این دستورات، درک بهتری از پیکربندی بالا پیدا کنیم:
توجه
پیکربندی کلاینتهای DHCP
برای پیکربندی یک هاست به عنوان یک کلاینت DHCP، میبایست گزینه IP configuration ِ هاست را به DHCP تغییر دهید. برای این کار، روی دستگاه مذکور و روی گزینه Desktop کلیک کنید. سپس روی گزینه IP configuration کلیک کرده و گزینه DHCP را انتخاب کنید. تصویر زیر، این روش را به صورت گام به گام در packet tracer نمایش میدهد.