DHCP is an auto configuration protocol used on IP networks.

learn more… | top users | synonyms

7
votes
3answers
248 views

How do I get NetworkManager to keep the same IP?

The DHCP-provided IP on my laptop changes periodically. It runs CentOS 6.5 and uses NetworkManager. My desktop, running Sabayon, on the same network, does not have this problem. How can I get ...
6
votes
3answers
12k views

Why are my two virtual machines getting the same IP address?

I have two virtual machines both running on a Linux host (Fedora 16). I set both adapters as attached to NAT. When I boot them up they both have their default gateway set to 10.0.2.2. They also ...
6
votes
2answers
5k views

Force dhcp client to get a new lease

I have a linux DHCP server running on my network. I recently found out that I can assign specific IP addresses to clients based on their MAC address by modifying the dhcpd.conf file. Now is there ...
5
votes
3answers
9k views

How to find out if Ubuntu is using DHCP (Ubuntu 12.04 LTS GUI)

How can I find out if my IP address is DHCP, Fixed or Dynamic? I need to tell my network administrator what the IP address is, that my Virtual Machine is using. I know the numbers, but I don't know ...
5
votes
4answers
4k views

All commands that should be used to connect to wifi in command line

I would like to switch from gnome to awesome and I would like to connect my wifi network in command line (instead of using gnome tools). So, I searched on the internet and found approximatively the ...
5
votes
3answers
2k views

Maintaining `/etc/hosts` for hosts on DHCP

On my local DHCP network I have different PC's that I need to access remotely. Problem is that their IP's change. Sometimes I plug my laptop and netbook into other people's DHCP networks. My current ...
5
votes
1answer
4k views

isc-dhcp-server fails to start at boot

I have been running the isc-dhcp-server fine for quite a while. A few days back after an update, it fails to start. I found a few more people reporting similar problems but that was from 2009. I was ...
5
votes
4answers
443 views

Automatically acquire new IP address in new network

I'm running a Centos virtual machine on a laptop using a bridged network connection to avoid double-NAT issues, with the address assigned via DHCP. This works fine until I move the laptop to another ...
4
votes
3answers
256 views

Change default search name

My Ubuntu12 server VM is receiving its IP address from an DHCP server (actually my WLAN router called Fritz Box). Hence all domain names are resolved to machinename.fritz.box. The reason seems to be ...
4
votes
2answers
3k views

DHCPD ignoring my subnet declaration

eth0, my internal interface, has a static address of 10.0.0.1. I also have an interface, p4p1, acting as my external interface. If it matters, my external interface is not physically connected and ...
4
votes
1answer
11k views

Setup static IP in redhat 6

I installed Redhat 6 x86_64. I am using the Network connection screen to set a static IP address like below (I want two PC's in my house to see each other: one Redhat PC and one Mac) 192.168.0.5 ...
4
votes
2answers
231 views

Command to list assigned dhcp addresses

Is there a command I can use to ask the dhcpd server which addresses have been assigned?
4
votes
2answers
215 views

What happens when I plug a Ethernet cable?

What happens when I plug in a Ethernet cable? I want to be able to see what's happening on the Level 2/3 (I believe the protocols I'm trying to watch is Ethernet, IP (v4 and v6) and DHCP for IP ...
4
votes
1answer
2k views

dhcp: Host name lookup failure

I changed configuration of /etc/sysconfig/network-scripts/ifcfg-eth1 and used ifdown and ifup to reset it. Then used ifconfig eth1 dhcp start it does not work and say:dhcp: Host name lookup failure. ...
4
votes
1answer
3k views

QEMU-KVM and internal DHCP server

I have set up a few soon-to-be production VMs running on QEMU-KVM on Ubuntu 10.04 LTS. As for networking, I chose the "NAT" option in Virt-Manager and each VM now gets an IP address 192.168.122.x ...
4
votes
2answers
646 views

How to configure Linux to use DHCP or static IP depending on presence/absence of DHCP server?

I would like to configure a network interface to make use of DHCP if a DHCP server is present on the network during boot, but otherwise default to some default static IP address.
4
votes
1answer
944 views

How to force Debian to wait for DHCP

I am running Debian squeeze in a virtual machine (VirtualBox). The machine has two interfaces: eth0 in "Host-only" mode so that the machine is accessible from the outside; and eth1 in "NAT" mode so ...
3
votes
5answers
3k views

How to overcome libc resolver limitation of maximum 3 nameservers?

Suppose I work in environment with number of domain changes and slow propagation. I want to test domain configuration immediately after setting change but the propagation is slow. So I want to add ...
3
votes
2answers
6k views

dhcpd: any way to check dhcp pool status?

Once dhcpd (IPv4) is started, is there any way to check its internal pool status? e.g how many addresses are available? I checked man(8) dhcpd, there's no signals/files available for that info.
3
votes
1answer
2k views

DHCP server: offer different subnet addresses for different interfaces

I'm running Ubuntu 10.04 on my home router which has multiple network interfaces. I have dhcpd configured to provide addresses from 192.168.1.0/24 subnet on certain interface. However, I'd like to ...
3
votes
1answer
935 views

Is there anything wrong with using dnsmasq as a dhcp server instead of isc-dhcp-server?

So I've configured my home connections to work with dnsmasq since it bundles a dhcp server with it and is quite nice to set up. There is another package - isc-dhcp-... that also does this and perhaps ...
3
votes
1answer
692 views

Run a command after acquiring IP address

I would like to run the command Urlsnarf -n -i p33p1 >> file when the p33p1 network interface gets its IP address. Initially I tried to run the command at bootup by adding the a crontab entry ...
3
votes
3answers
138 views

Can I set my Debian box to use OpenDNS nameservers if it uses DHCP?

I have a Debian box with this in /etc/network/interfaces: auto eth0 allow-hotplug eth0 iface eth0 inet dhcp auto wlan0 iface wlan0 inet dhcp wpa-ssid NetworkName wpa-psk NetworkPass and ...
3
votes
1answer
689 views

Can't ssh to beaglebone?

After I did: route add default gw 192.168.7.1 I also changed /etc/resolv.conf: nameserver 192.168.7.1 in order to share internet between Ubuntu in VMware. I've got internet working but after a ...
3
votes
1answer
599 views

configure dhcp client without accepting nameserver entries

I am trying to configre my openSuSE 12.1 machine as DHCP client, but especially do not want it to set the name server entries to /etc/resolv.conf it has got from DHCP server. Can I do it on the ...
3
votes
1answer
885 views

Two IP addresses assigned to the same machine?

I seem to be using two IP addresses on my PC. I use DHCP to get an IP address and then I statically set an IP address and activate it. ifconfig says that I am using the address given by DHCP but I am ...
3
votes
1answer
418 views

set VM IP address to be the same every time from DHCP on CentOS 5.6

I have an issue where, each time I start my CentOS 5.6 VM, DHCP (I believe) is allocating my VM a different IP. I have the VM mapped as a Samba share in Windows 7 and this changes between 192.168.0.8, ...
3
votes
2answers
2k views

How to request a hostname from a DHCP server on Ubuntu?

I have an Ubuntu 11.04 server virtual machine. I would like to request a specific hostname from the DHCP server at the office. Since I don't run it often, the IP changes nearly every time that I boot ...
3
votes
1answer
903 views

Query DHCP server leases from Perl script

I have a Windows 2003 server and need to poll the DHCP lease information from it with a perl script that is running on a Ubuntu server. Then I need to analyze & store the information in a mysql ...
3
votes
2answers
1k views

How do I use dhcpcd in openwrt instead of udhcpc?

I'm trying to determine the reason my router is not syncing up to my ISP, I do suspect snafu on their end so I'm trying to replicate my desktops setup which includes using dhcpcd. Problem is I don't ...
3
votes
1answer
452 views

PPTP with dhcp only for clients

I have a local network at home with a router and a small server. The router manages the local network (DHCP, etc) but does not support PPTP. On the server (Ubuntu 12.04) I set up pptpd and this is ...
3
votes
1answer
5k views

VirtualBox guest using Bridged networking unable to obtain DHCP address

I have a computer, called Loki, that works as a virtual machine host and DHCP server. The DHCP daemon is listening on port eth0. Part of /etc/dhcp.conf: subnet 192.168.13.0 netmask 255.255.255.0 { ...
3
votes
2answers
1k views

DHCPv6 prefix delegation server for linux?

What linux DHCPv6 client can I set up so it requests a prefix on one interface and then on all the other interfaces it will give out addresses (or if requested, a smaller prefix delegation)? It would ...
3
votes
1answer
198 views

How to setup wireless AP with two wifi cards and ethernet as WAN on debian?

I'm trying to build wireless AP with 2 Atheros cards (AR5413 / AR5414 both), and one ethernet card to act as WAN. I am also having doubts if I should use ath5k or madwifi drivers. I've tried both ...
3
votes
1answer
794 views

How can a Windows based DHCP server update DNS Server on Linux? [closed]

The updates to the zone is protected by the key (similar to: allow-update { key "rndc-key"; }).
2
votes
5answers
980 views

Starting A Bind/DHCP server

I am looking for some reading material on starting my own BIND/DHCP server. I mainly want the bind server to just be a caching server and for my home computers but it may also need to be authoritative ...
2
votes
2answers
1k views

bind the MAC with IP address?

I have configured a DHCP server on Linux. My goal is to map client IP address with their MAC address in such a way that no "unregistered" client machine gets a response from the DHCP server. That is, ...
2
votes
1answer
436 views

dhclient for normal (non-root) users

Calling dhclient as root works beautifully on my debian machine. However, I would like to allow some users to execute dhclient, too. So far, I have tried these two examples: Example 1: When a normal ...
2
votes
2answers
3k views

Get client hostnames from DHCP

I have a voyage 2.6.38 machine running DNSMASQ for a DHCP server and I would like to get the hostnames of the clients that acquire DHCP leases. How would I go about doing this?
2
votes
2answers
345 views

Working DNS-DHCP combo for LAN

Can anyone recommend a working DNS-DHCP combo for a small mixed-platform LAN? Preferably one where hosts can be assigned IP addresses and/or names with a web-GUI. The typical DHCP package on Linux ...
2
votes
1answer
68 views

Arch Linux not picking up static DHCP lease from DD-WRT

I have a Arch Linux system on my home network and its MAC address is setup in my Linksys running DD-WRT to receive a static lease. However, this system is not getting the static lease from the DD-WRT, ...
2
votes
1answer
499 views

Is it possible to use Internet Connection Sharing with DHCP?

I know it is possible to share an internet connection with another pc using ip-forwarding and masquerade. Is it possible to set up the sharing computer as a DHCP server, so the settings (ip, gateway, ...
2
votes
1answer
48 views

Determine the interface which was used for booting via PXE

I have a linux machine which was booted via PXE. Can I determine the network interface which was used for booting?
2
votes
1answer
24 views

How to handle DHCP on two network interfaces, one clobbers the other's /etc/resolv.conf

I have an embedded Debian Linux system. It has two network interfaces, eth0 and ppp0 via a cell modem. The problem I have is that when the system boots up it gets an address via DHCP on eth0. If ...
2
votes
1answer
85 views

Why is Debian hangs after DHCP?

This is my /etc/networking/interfaces file: auto eth0 allow-hotplug eth0 iface eth0 inet dhcp iface eth0 inet6 auto And here is a picture of where it is hanging:      Source: ...
2
votes
2answers
906 views

Fedora 20 - wifi hotspot almost work but something wrong

I have a Sony Vaio notebook with WiFi, and need to setup a hotspot (an ad-hoc one) under Fedora 20. I successfully did it under Debian and SuSE, but under Fedora I am struggling to understand the ...
2
votes
1answer
171 views

How to force PC to release IP?

I'm working on BackTrack and I want to give a fake IP from my DHCP server to another PC. I'm trying to make that Windows PC run the command: ipconfig /release, but without remote access. I don't want ...
2
votes
1answer
217 views

What is the simplest way to connect to wireless on a Debian system with nothing but essential?

I have a Debian Jessie system which, for reasons unrelated to this question, has nothing installed but the set of essential system packages. What is the simplest method for connecting to a wireless ...
2
votes
1answer
478 views

Could not resolve host error

I'm using Arch Linux and I have a dynamic ip address with the use of dhcpcd. I can access websites through the google chrome but the problem is that I get 'could not resolve host' error when I run ...
2
votes
1answer
2k views

u-boot disable DHCP requests with setenv

I am trying to disable the DHCP requests after the Kernel was loaded. Using freescale imx25 dev-board in standard config. In u-boot, I find two lines ip=dhcp: MX25 U-Boot > pri bootdelay=3 ...