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
6
votes
4 answers

How to set static IP address using connman for wifi network

I'm trying to set a static IP(manual, no dhcp) address for wifi network using connmanctl. I'm running angstrom linux. I get the following: connmanctl connmanctl> config wifi_"HASH"_managed_psk --ipv4 manual 192.168.10.2 255.255.255.0…
6
votes
3 answers

DHCP Setting in Mac OS X

Are there any command line interfaces to the DHCP settings in Mac OS X? I have found that inside System Profiler, the Network tab provides a lot of useful information, but I have not found any documentation about any command line equivalents.
benc
  • 1,381
  • 5
  • 31
  • 39
6
votes
3 answers

How to find out if the eth0 mode is static or dhcp?

I want to use a C program to get if the ip of the network interface is set manually or via dhcp. I've tried to use the following code and it has worked in Debian, but it hasn't worked in OpenWrt. I want to know how to write a C program doing this in…
stephen
  • 86
  • 1
  • 5
6
votes
1 answer

Using glibc, why does my gethostbyname fail after I/DHCP has changed the DNS server?

If our server (running on a device) starts before a DHCP lease had been acquired then it can never connect using a hostname. If that happens it can find hosts by IP address but not by DNS. I initially thought that the Curl DNS cache was at fault as…
mat_geek
  • 2,481
  • 3
  • 24
  • 29
5
votes
2 answers

How to detect when known wireless devices join my wireless LAN on Linux

I am going to make mobile device detector using a single board computer (SBC) running a Linux based OS. The SBC will have a USB/802.11 wireless adaptor. The SBC will be a DHCP server. The mobile device will join the wireless network (adhoc or…
niw3
  • 120
  • 1
  • 8
5
votes
2 answers

wifi.getDhcpInfo() in Android returns the wrong IP gateway

I am writing an Android application that needs to connect to different Wifi networks based on the user's selection. I need to retrieve the gateway IP address from the networkInfo. The Problem I am facing is that if I am connected to wifi network…
user1157108
  • 51
  • 1
  • 3
5
votes
2 answers

isc-dhcp-server status failed: Failed with result 'exit code'

I setup a simple dhcp-server with isc-dhcp-server, but when I start the service, the status is in failed with the message "failed with result 'exit code' ". And yes, I did configure the files /etc/dhcp/dhcp.conf and /etc/default/dhcpd.conf I…
arturogaag
  • 91
  • 1
  • 1
  • 3
5
votes
1 answer

AWS Client VPN Client-Client Communication

I have an AWS Client VPN set up using certificate auth. I'm setting this up for a client-client access system, essentially as is described in this AWS scenario/example. It's all working, and I can ping from one client to another if I know their IP…
Jordan
  • 3,998
  • 9
  • 45
  • 81
5
votes
1 answer

Is a network device hostname determined by the device itself or a network admin?

I have a local network with several PCs and specialized controllers on it. These specialized controllers must be configured with static IP addresses and do not have DHCP capabilities. I was asked to put together a list of the device hostnames and…
Izzo
  • 4,461
  • 13
  • 45
  • 82
5
votes
1 answer

Scapy: check the message type of a captured DHCP packet

I'm totally new to scapy, I'm trying to use it to build a DHCP monitor for my LAN. I'm using sniff to capture packets that are sent to a callback via the prn= parameter. Inside the callback, I check if the packet has the DHCP layer and then I check…
José Tomás Tocino
  • 9,873
  • 5
  • 44
  • 78
5
votes
1 answer

Yocto ifconfig not clean after a ifdown -a

I created a Yocto image on a target which has the loopback and a eth0 network interfaces. When I configure the /etc/network/interface with static IP the network down command works. After the command ifdown -a the ifconfig returns nothing. My…
hilt0n
  • 376
  • 1
  • 10
5
votes
2 answers

How can I override another .bbappend

I have built an image with systemd and dhcp-client. In the recipe dhcp in meta-openembedded/meta-systemd/oe-core/recipes-connectivity/dhcp there is a bbappend which creates a dhclient.service. I want to modify (or override) this file but when I…
Pouet_forever
  • 121
  • 1
  • 7
5
votes
0 answers

lots of dhcp requests until cannot fork and server become inaccessible

I've started a new instance (i-d23f3a5c) 2 months ago and it's becoming inaccessible every day. Looking at /var/log/messages I can see the dhcp client is requesting a lease quite often and at some point the message "dhclient1306: fork: Cannot…
user3645742
  • 111
  • 1
  • 11
5
votes
2 answers

DHCP Option in Qt/C++

I would like to ask if there is a way to read DHCP option in Qt or c++ (Qt would be better) on linux. I have my own cups backend and would like to read option 9 - LPR Servers (all of the listed IP addresses) and use it as device uri. So I want to…
user3840048
  • 141
  • 1
  • 9
5
votes
1 answer

python unpack buffer data

I am using the rlm_python module in radius and its get the DHCP location option82 from coovachilli in hex or binary format. Catching it as a string shows as this value \001\027\002\025\001+\001\024, but looks the value which python shows is …
krisdigitx
  • 7,068
  • 20
  • 61
  • 97
1 2
3
52 53