Coder Social home page Coder Social logo

Comments (7)

saboor97 avatar saboor97 commented on August 27, 2024

Can anyone please help me with this? I'm new at this. :)

from staticdhcpd.

flan avatar flan commented on August 27, 2024

Hey, sorry for the delay in getting back to you. I typed a response and got pulled away before hitting send. :(
(Thanks for the poke on my blog -- I would have forgotten otherwise)

I'm afraid I'll need a little more information to figure out what's going on here.

From the message and your pull-request, it looks like you've got an awkwardly formatted interface-name somewhere, but without seeing your config, it'll be hard to guess at what's happening.

Can you respond with whatever information you can share about your interface configuration in conf.py and/or the output of ifconfig -a | grep Link and ls -1 /sys/class/net/? (You can obscure the MAC addresses if you consider those sensitive information)

It's entirely possible that I simply misunderstood something about how aliased interfaces show up in libc and I can verify that easily enough if what you have matches what I expect.

from staticdhcpd.

saboor97 avatar saboor97 commented on August 27, 2024

from staticdhcpd.

flan avatar flan commented on August 27, 2024

Sure, but I'll need some information to work with, like where in the process you've run into problems.

And I would like to resolve the issue that you first reported: what was the solution to your problem? Do I need to make any changes to the code?

from staticdhcpd.

saboor97 avatar saboor97 commented on August 27, 2024

i removed line 139 in File "/libpydhcpserver/getifaddrslib.py", line 139, in get_network_interface
return interface.split(':', 1)[0]
This solved issue for me :)

from staticdhcpd.

saboor97 avatar saboor97 commented on August 27, 2024

i ran into this error when i started server by executing "sudo python staticDHCPd"

from staticdhcpd.

saboor97 avatar saboor97 commented on August 27, 2024

#Copy this file to one of the following locations, then rename it to conf.py:
#/etc/staticDHCPd/, ./conf/

#For a full overview of what these parameters mean, and to further customise
#your system, please consult the configuration and scripting guides in the
#standard documentation

Whether to daemonise on startup (you don't want this during initial setup)

DAEMON = False

#WARNING: The default UID and GID are those of root. THIS IS NOT GOOD!
#If testing, set them to your id, which you can find using id in a terminal.
#If going into production, if no standard exists in your environment, use the
#values of "nobody": id nobody
#The UID this server will use after initial setup
UID = 0
#The GID this server will use after initial setup
GID = 0

#The IP of the interface to use for DHCP traffic
DHCP_SERVER_IP = '192.168.1.1'
#The database-engine to use
#For details, see the configuration guide in the documentation.
DATABASE_ENGINE = 'SQLite'
SQLITE_FILE = '/home/saboor/staticdhcpd/staticDHCPd/dhcp.sqlite3'

from staticdhcpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.