Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7695233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:30:07+00:00 2026-05-31T21:30:07+00:00

I am working on udhcpd , a light weight dhcp server that comes with

  • 0

I am working on udhcpd, a light weight dhcp server that comes with busy box.

I have made some code changes and to test those i need to run udhcpd, send it request (to obtain ip) from a client and view its response.

This requires multiple machines and the suitable option for me was to use multiple virtual box VMs.

I used two linux VM’s (Fedora for running udhcpd and a ubuntu for running udhcpc – a client that comes with busy box for generating dhcp requests).

Now there are multiple modes of networking in virutal box. I have tried them all. NAT the most simple allows vm to use my windows internet without any configuration.

I tried various types of virtual box cards i.e. host only, internal network and assigned a 192.168.0.1 address to fedora which is udhcpd and sent dhcp discover requests from udhcpc clients.

Both are on the same interface i.e. eth0 and i can see the broadcast request from 0.0.0.0 to 255.255.255.255 for dhcp discover. But udhcpd – the dhcp server, never receives and answers the request.

I also tried by assigning an ip to the dhcp client first i.e. 192.168.0.2.

But never get a response.

If i use NAT or another mode in which Virtual box own’s dhcp server is running, then it is that server which responds to the dhcp discover and still my udhcpd from busy box does not pick the packets.

I feel it has something to do with the subnet mask may be of udhcpd server.

Any one has any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:30:08+00:00Added an answer on May 31, 2026 at 9:30 pm

    My bad, the firewall in fedora VM(ip tables) was blocking incoming connections by default.

    Here is the way to allow that.

    Open and edit /etc/sysconfig/iptables

    vi /etc/sysconfig/iptables

    There would be several entries like the following:

    -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 5800 -j ACCEPT

    -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 5900 -j ACCEPT

    -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 6000 -j ACCEPT

    I added an entry for my dhcp port as follows:

    -A RH-Firewall-1-INPUT -m state –state NEW -m udp -p udp –dport 67 -j ACCEPT

    Save and close the file. Restart iptables:

    service iptables restart
    

    Note that commands would differ on ubuntu or debian based Linux distribution because ip tables on these platforms might not run as a service. Look for OS specific manipulation too which is widely documented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working with a Lucene index, I have a standard document format that looks something
Working with some basic java apps on CentOS 5 linux and I have my
working on an old translation sample code for windows phone 7. Recently, I have
Working with C# and Team Foundation Server I am working on a webservice that
Working with a SqlCommand in C# I've created a query that contains a IN
Working on a project at the moment and we have to implement soft deletion
Working on a project that parses a log of events, and then updates a
Working with python interactively, it's sometimes necessary to display a result which is some
Working on an extension that use the new experimental devtools apis. How do you
Working with Json, how can I NSlog only the title in this code: NSDictionary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.