DHCP is an auto configuration protocol used on IP networks.

learn more… | top users | synonyms

8
votes
3answers
12k 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 ...
8
votes
3answers
14k 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 ...
7
votes
3answers
515 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
4answers
5k 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 ...
6
votes
2answers
6k 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
2answers
155 views

How to send an alert if the DHCP range exceeds using shell script?

I've install and configure DHCP server on CentOS 6.5. I've also added a subnet to the dhcpd.conf file as follows: subnet 192.168.1.0 netmask 255.255.255.0 { option domain-name-servers 192.168.1.2, ...
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

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 ...
5
votes
1answer
5k 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
1answer
1k 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 ...
5
votes
1answer
471 views

How to auto generate resolv.conf on Centos 6.5

I just installed CentOS 6.5 and configured the following files: /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=aa:bb:dd:dd:ee:ff TYPE=Ethernet UUID=adfddfaf-9sda-adse-dfs4-asdfsdfdfg97 ...
5
votes
4answers
521 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
444 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
4k 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
2answers
2k 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
1answer
17k 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
1answer
1k 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 ...
4
votes
2answers
263 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
1k 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 ...
4
votes
1answer
3k 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
1k 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 ...
4
votes
4answers
2k 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 ...
4
votes
2answers
741 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.
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
8k 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
799 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
1answer
3k 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
72 views

Spoofing or removing DHCP client hostname in response to DHCP server

In linux, when my machine requests an IP address it also sends the hostname back to the DHCP server. How can I stop my machine from sending back this hostname? I use dhclient, possibly via ...
3
votes
1answer
282 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, ...
3
votes
3answers
350 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
698 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
511 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
3answers
3k 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
985 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
568 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
6k 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
2k 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
252 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
0answers
115 views

To what extent does LXC manage configuring the network interface in a container?

In the LXC config file we can specify an IP address for a container: lxc.network.type=veth lxc.network.link=br0 lxc.network.ipv4 = 10.1.0.35/16 lxc.network.flags=up lxc.network.hwaddr= ...
3
votes
1answer
843 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
1k 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
646 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
4k 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
373 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
54 views

Specifying DNS settings to override those of DHCP

Every 6 months or so I cannot access the DNS on whatever router I'm using. usually have to add the nameserver by hand to the /etc/resolv.conf file. I've tried adding Google free DNS to the file and it ...
2
votes
1answer
565 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
103 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
652 views

How to configure DHCP so that boot is completed even without a DHCP server?

I have configured /etc/network/interface like this: auto lo eth0 iface lo inet loopback iface eth0 inet dhcp But when a lease cannot be obtained, the booting is not completed. Is it possible to ...