Questions tagged [dhcp]

The Dynamic Host Configuration Protocol (DHCP) is an auto configuration protocol used on IP networks.

The Dynamic Host Configuration Protocol (DHCP) is an auto configuration protocol used on IP networks and an extension of the Bootstrap Protocol.

DHCP allows for computers to be configured automatically to communicate with each other over an IP network without the need for setup by a network administrator.

It keeps track of the computers connected to the network with a central database and prevents two computers from accidentally being configured with the same IP address.

784 questions
3
votes
1 answer

Scapy and DHCP security testing

I got a question about Scapy in order with dhcp. There is no problem with sending a dhcp solicit message and got a answer but what i really need is to program: Scapy sends a DHCP solicit packet It receives an advertise packet, so far ok. I need to…
Serdar Ebeng
  • 123
  • 1
  • 2
  • 13
3
votes
4 answers

C++ No output from popen

tl;dr - Cannot capture output from commands that use RPC to a remote server using any programming language I try, even though these commands output back to the command prompt when typed manually I've got a function that uses fpipe to issue the netsh…
armani
  • 93
  • 1
  • 10
  • 23
3
votes
1 answer

DHCP Option query

I have been looking around and have been trying to figure out how to query the dhcp server I am connected to and get all options available or to at least be able to query with a proper option in mind and get that information in response. Ideally…
thekevshow
  • 774
  • 14
  • 36
3
votes
7 answers

Get mac address from IP using DHCP?

I am trying to create scripts/services that allow for waking PCs in a windows domain via WOL. Now i want to give the user the option to select an AD container as a starting point for the waking of PCs contained within. My initial thought is using…
Matt Kocaj
  • 11,278
  • 6
  • 51
  • 79
3
votes
1 answer

Android ethernet configure IP using dhcp

I have an android box with ethernet interface. There are no Java classes in android SDK to configure ethernet. As a last resort I am using shell commands to configure ethernet. Could any body please guide me which shell command do I use to configure…
Farooq Zaman
  • 495
  • 1
  • 6
  • 21
3
votes
1 answer

Programmatically Create DHCP Reservation in C#

I have been assigned the task of creating an application that takes in a MAC address and creates a DHCP reservation for that MAC address. Is there any API built into .NET to easily accomplish this?
Matt
  • 619
  • 5
  • 12
3
votes
0 answers

In U-Boot, can the dhcp command automatically set the serverip environment variable?

In U-Boot, the dhcp command automatically sets some environment variables. e.g. gatewayip, netmask, bootfile, and rootpath. These environment variable all correspond to the configuration settings of the DHCP server. Which configuration setting in…
Mr Stinky
  • 881
  • 2
  • 11
  • 23
3
votes
3 answers

How do I fill in unused ip addresses in a python sublist?

I have created a python script to try and make my life as a system administrator a lot easier. The point of this script is to convert a Microsoft DHCP server dump file into a sorted CSV file. I will include the code here and am thankfull for all…
3
votes
1 answer

Selenium Grid named nodes

We are running selenium Grid 2 and have various machines connecting back to the hub. As the network runs DHCP the nodes cycle IP addresses quite frequently. Is there anyway to have the Hub show the hostnames of the connected nodes rather than the…
Ettienne
  • 365
  • 3
  • 9
3
votes
1 answer

How do I run a script when ip-address changes (most likely using a dhclient hook) on a (Ubuntu) Linux machine?

I have a script which contacts a few sources and tell them "the IP-address XXX.XXX.XXX.XXX is my current one". My test web server has a dynamic IP-address through DHCP and amongst other things it needs to update a DDNS entry when its IP-address…
user14070
2
votes
0 answers

Change option DHCP/BOOTP in dhcp reservation

I'm using C# (Visual Studio 2010) to programmatically create a DHCP reservation. I've used the information in this post to get the DHCPOBJECTS.DLL. Connecting to the DHCP server works well. I'm also able to create a new reservation or enumerate…
Martin
  • 183
  • 2
  • 11
2
votes
2 answers

FreeBSD: Understanding /var/db/dhclient.leases. dhcp lease files

FreeBSD: network interface address: dhcp or static Followup question now: I've decided to go with looking at leases files: /var/db/dhclient.leases.. What does it tell me exactly? Existence of /var/db/dhclient.leases.em0 signifies em0 has address by…
hari
  • 9,439
  • 27
  • 76
  • 110
2
votes
0 answers

no DHCP ACK after sending a DHCP REQUEST

[Solved] I am manually constructing DHCP packets as a client to the DHCP server. So far I am able to send a DHCPDISCOVER packet and receive a DHCPOFFER from the server in return. However, when I send DHCPREQUEST, I don't receive the expected DHCPACK…
Kei
  • 21
  • 1
  • 3
2
votes
6 answers

Arduino DHCP failed to configure

I am using the example ethernet sketch for a web client that comes bundled with the Arduino software without changing a thing except for the firmware address, which I changed to the one printed on the back of the ethernet shield. Whenever I connect…
Andrew
  • 3,901
  • 15
  • 50
  • 64
2
votes
1 answer

Arduino Ethernet and DHCP cannot communicate out to the Internet

I have this web client example that gets an IP address via DHCP. It connects to my router at IP address 192.168.0.1 successfully, but then it fails to send a GET HTTP to google.com. Essentially, I cannot allow the traffic from Arduino to go out into…
Daniel
  • 165
  • 3
  • 12