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
9
votes
1 answer

Set up DHCP server IP for Vagrant

I am using Vagrant 1.1.2 on Mac OS X 10.7.5 I am running into an issue with the default networking setup. The network seems to be configured to use a DHCP server providing IPs from 10.0.2.? network, with the gateway being set to 10.0.2.2 Sadly, in…
Roman Zenka
  • 3,514
  • 3
  • 31
  • 36
9
votes
8 answers

How to prevent /etc/resolv.conf from getting overwritten after reboot in Ubuntu 11.10?

I'm using Ubuntu 11.10 and I manually configure DNS servers in /etc/resolv.conf but it gets somehow overwritten after I reboot. How can I prevent this? Thanks.
mkhezr
  • 309
  • 1
  • 2
  • 7
8
votes
5 answers

Human readable DhcpInfo.ipAddress?

I am wondering how to get a human readable IP Adress from DhcpInfo.ipAddress? The tricky thing about it is, that it is an integer and obviously you can't store an IP address in an integer. So, how is the IP address encoded, that it can be stored in…
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
8
votes
5 answers

Recovering from ipconfig /release on a remote PC

Not strictly a programming question, but I was programming at the time and couldn't find an answer, so I thought, "Hey, I'll give StackOverflow a try!" So I'm connected to my Windows XP work PC over a Remote Desktop connection through VPN. In a…
SWB
  • 1,432
  • 2
  • 14
  • 24
8
votes
3 answers

Querying a DHCP server in C#

I need to get the mapping of MAC to IP stored on DHCP server, either through a program running on the server itself or preferably through a program running on one of the DHCP clients. I understand netsh utility can be used to get the dump however i…
Kazoom
  • 5,659
  • 16
  • 56
  • 69
8
votes
4 answers

Get peer device's IP address in wifi-direct p2p connection

My app needs to know the peer device’s IP address when my device is a group owner (GO) in a wifi-direct P2P connection (usually GO acts as DHCP server and peer station receives the IP from the server). I figured out that the DHCP client list is…
SS.
  • 171
  • 2
  • 12
7
votes
1 answer

What does dhclient do?

I had a server unable to connect to any network and while wrangling with it I found a temporary resolution on running this command: /etc/init.d/network restart && dhclient. However, I don't quite understand what exactly did the dhclient command do…
Yong zhu
  • 103
  • 1
  • 1
  • 6
7
votes
2 answers

Any dhcp python library?

Is there any library to help me instantiate a dhcp server in python?
relima
  • 3,462
  • 5
  • 34
  • 53
7
votes
3 answers

Sending DHCP Discover using python scapy

I am new to python and learning some network programming, I wish to send an DHCP Packet through my tap interface to my DHCP server and expecting some response from it. I tried with several packet building techniques such a structs and ctypes and…
BeingNerd
  • 115
  • 2
  • 5
  • 12
7
votes
2 answers

Assigning IP address to docker containers?

I'm new to Docker. Is it possible to assign an IP address (from a DHCP server) to Docker containers running on a host or VM? If yes, can someone point me in the correct direction. If no, is it a fundamental limitation of the container approach or…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
7
votes
2 answers

IPv6 Address Assignments

I have just started working with IPv6, so I've done a lot of reading in the last couple of days. Unfortunately, some of my questions have not been answered in my research. My goal is to keep track of what addresses are assigned, and to what…
Trenin
  • 2,041
  • 1
  • 14
  • 20
6
votes
1 answer

How can I detect when the device gets a new IP?

For multicast purposes, I'm looking for a simple way to detect when the IP of an Android device changes. How can I go about doing so? More specifically, I'm looking to detect: When the device connects to a new Wifi network and it gets an IP from…
yydl
  • 24,284
  • 16
  • 65
  • 104
6
votes
1 answer

Android tethering, how to disable dhcp

Using WifiManger and reflection(to find the enablewifiap() method), I am able to enable wifi tethering to create a wifi hotspot. However, I would like to disable DHCP for the other devices that will connect to the phone that is acting as the…
russell
  • 111
  • 1
  • 7
6
votes
3 answers

Switch from static to DHCP using nmcli

I need to change my connection, from staic assigned to DHCP using nmcli (invoked from a Python script) I've tried like this: nmcli con mod "CONNECTION NAME" ipv4.method auto nmcli con down "CONNECTION NAME" nmcli con up "CONNECTION NAME" But after…
6
votes
1 answer

Why are DHCP request and acknowledgment messages broadcasted and not unicasted?

In 'Request' part of the DORA process, IP and MAC address of the DHCP server is known to the client (as the IP datagram sent in Offer has this information). So if the destination is known, why is the request still broadcasted to every machine on the…
Paras Gera
  • 167
  • 2
  • 12
1
2
3
52 53