Solved

Write a Windows DHCP server in Python?

Posted on 2006-10-20
1
1,165 Views
Last Modified: 2012-06-27

Would it be possible to write a DHCP server for Windows using just Python? Or would this be better left to a language like C\C++?

Also, any reasons why this might end up being particularly difficult to do? Any advice or starting points?
0
Comment
Question by:xy8088
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
Chatable earned 250 total points
ID: 17777436
First of all you can write anything in Python. The major advantage of writing Python software is that it may very well be OS independent, i.e. your server may run Linux, Windows, MacOS and other operating systems with little or no change at all.
About your idea, there actually is a Python DHCP server listed on sourceforge but it hasn't released any version yet.
To write a DHCP daemon in Python or any other language you need to
1) Read and understand the DHCP RFC - http://www.ietf.org/rfc/rfc2131.txt
2) Implement the protocol using your favorite language.
Whether it is a good idea to use Python for that purpose? I assess that a network with a few to a few hundreds of clients will be able to use a Python DCHP daemon with no problems.
For huge enterprise networks you may want to use C/C++.
Please note that Windows Server 2000/2003 already has a built-in DHCP daemon.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Downgrade Python 3.5 to 3.3 30 1,517
Python - ImportError: No module named 'urllib2' 2 536
how to check case insensitive substring 5 78
How does this Python sort work? 5 111
Installing Python 2.7.3 version on Windows operating system For installing Python first we need to download Python's latest version from URL" www.python.org " You can also get information on Python scripting language from the above mentioned we…
A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question