The Dynamic Host Configuration Protocol (DHCP) is a network configuration protocol that assigns IP addresses and gateway configuration automatically.

learn more… | top users | synonyms

25
votes
3answers
118k views

How do I configure a DHCP server?

How to configure a DHCP server in Ubuntu 12.04? I need a step-by-step tutorial if somebody has one.
16
votes
4answers
26k views

resolv.conf doesn't get set on reboot when networking is configured for static ip

I'm experiencing what appears to be a name resolution issue in Ubuntu 12.04 Server edition when configuring my computer to use static ip. In /etc/network/interfaces: # The primary network interface ...
9
votes
4answers
22k views

How to set up a DHCP server?

I am currently at this stage of setting up DHCP, and id just like to know what this output in terminal means? I know I have to edit a file but I do not know which one, and I do not know what to put in ...
9
votes
3answers
5k views

How can I set up a Dynamic DNS fetching service on Ubuntu Server?

I've created accounts and hostnames within my http://no-ip.org/ account, which is by far the most commonly used service for my type of server. Can somebody walk me through the configuration process ...
8
votes
5answers
28k views

How to view the DNS address assigned by DHCP?

How to view the DNS address assigned by DHCP? ifconfig can not show it. $ ifconfig -a eth0 Link encap:Ethernet HWaddr 90:e6:ba:22:6a:f2 inet addr:192.168.1.111 Bcast:192.168.1.255 ...
8
votes
5answers
2k views

Accidently Deleted /usr/lib/*.so.*

While I was installing MRTG, by mistake I have deleted /usr/lib/*.so.* and /usr/lib/*.so I am now unable to boot-up my system now, it gets stuck at the splash screen and when I press PAGEDOWN button ...
8
votes
5answers
10k views

Why is dhclient saying: “SIOCSIFADDR: Permission denied”?

I have encountered a very weird error on ubuntu-server (8.04), I have no idea why dhclient is not allowed to set the network settings! I'm not the one who installed the server in the first place, so i ...
8
votes
7answers
30k views

How to get the hostname from a DHCP server

I want Ubuntu to get the hostname and DNS name from a DHCP client. The default installation of Ubuntu 11.10 (Oneiric Ocelot) does not do that. The same question was asked and is unsolved on ...
8
votes
4answers
25k views

How to make dhclient forget its last DHCP lease?

What I'm trying to achieve is to get cold-start, zero-state DHCP lease which means forcing dhclient through the full discovery and configuration process (DHCPDISCOVER–DHCPOFFER–DHCPREQUEST–DHCPACK as ...
8
votes
2answers
667 views

How to run a script when there is a change in your local IP?

Before marking as a duplicate: this is not about dynamic DNS or similar things. I know how to run a script every time my networks goes up; it is a simple matter of adding a script in the directory ...
7
votes
2answers
6k views

How to add some additional DNS search domains without ignoring the ones returned by DHCP?

Please provide: correct location to add my custom domain search option (preferably appending it to the DHCP list, instead of prepending) command to run to make the settings effective Note: do not ...
7
votes
2answers
11k views

Waiting for network configuration message at boot, then blank screen

When I boot (11.10), I get the message that it's "waiting for network configuration" and then the same, but "60 seconds longer" and then finially it "boots" but to a black screen. No cursor, just ...
6
votes
3answers
10k views

How to override the DHCP-provided nameserver?

I (think) that I've configured a static IP address in /etc/network/interfaces: # The primary network interface auto eth0 iface eth0 inet static address 10.1.1.2 netmask 255.255.255.0 ...
6
votes
4answers
11k views

Adding additional DNS search domains when using DHCP

How can I add additional DNS search domains to a network connection which is configured using DHCP? At work, we have several sub-domains (test.example.com, dev.example.com, etc), and I've grown tired ...
6
votes
2answers
5k views

DHCP and static IP address simultaneously in ubuntu

We can use multiple IP address for a single interface in linux(eth0:0, eth0:1). But can we use dhcp and static IP in the same time?? eth0:1 should have a static IP address and eth0:0 will be configure ...
6
votes
1answer
8k views

dhcp3-server or isc-dhcp-server

So. I need a dhcp server on my ubuntu server. I've found two options, and some saying it's the same thing? Could someone explain the difference, maybe even pros and cons? If it's not the same.
6
votes
3answers
4k views

Timeout in a connection to a DHCP server

I want to configure my eth0 interface using an external DHCP server (resident in my subnet), so I edited /etc/network/configure with the lines auto eth0 iface eth0 inet dhcp but I also want to ...
6
votes
2answers
3k views

Unable to connect to wired DHCP connection via my PC?

Hi As I upgrade my pc to ubuntu 11.10 I can't connect to the wired connection ! It doesn't even find my Device MAC address !!What can I do ? ifconfig -a eth0 Link encap:Ethernet HWaddr ...
5
votes
1answer
31k views

Assigning a static IP to Ubuntu Server 14.04 LTS

I've installed Ubuntu 14.04 LTS Server in my machine on a separate hard drive while having my Windows 7 installation. The Windows OS has its full network connectivity and internet access through the ...
5
votes
2answers
4k views

How to enable DHCP server to all subnets for PXE server?

I have setup-ed a PXE boot server for installing ubuntu via network. Currently i am using hosts mac address to install the ubuntu operating system. I would like to enable the DHCP server in all the ...
5
votes
1answer
985 views

What's the correct MAAS DHCP configuration?

I've set up a MAAS controller by following this documentation: http://maas.ubuntu.com/docs1.4/cluster-configuration.html However, when I got to the DHCP configurations I was a little puzzled. The ...
5
votes
3answers
31k views

How do I set a static DNS nameserver address on Ubuntu Server?

I am trying statically to set DNS server addresses in my Ubuntu server running as virtual machine. I followed all recommendations on official Ubuntu support pages but I simply cannot get rid of my ...
5
votes
1answer
26k views

Cannot connect to wireless in Lubuntu 14.04

I have tried all afternoon to fix this, but now I give up. I am trying to set up an old XP PC with Lubuntu 14.04. It works perfectly fine, except for the wireless connection. Connecting with ethernet ...
5
votes
1answer
1k views

How can I stop sending my hostname via DHCP?

Ubuntu sends my computer's configured hostname to any DHCP server it tries to use. How do I stop it from sending a hostname?
5
votes
2answers
26k views

Unable to set static IP address in Ubuntu 14.04 [closed]

I've never had so much problems setting a network interface card to static addressing. I'm not sure what has changed, but I can only seem to get this thing to work if it's set to obtain the address ...
5
votes
3answers
5k views

Check if IP is static or dynamic programmatically

I'm trying to determine whether my IP has been statically or dynamically assigned in Ubuntu 11.04 from within C. The closest I've come is examining /var/lib/dhcp/dhclient.leases, but that doesn't ...
5
votes
2answers
10k views

How to define default gateway with multiple DHCP interfaces?

How does ifconfig determine which network interface to use as the default when DHCP assigns a default route for each NIC? It seems like it's in a race-condition and I need to have a more reliable ...
4
votes
4answers
22k views

How to edit /etc/resolv.conf on Ubuntu 12.04

I have two network interfaces configured via DHCP. As a result, /etc/resolv.conf is populated with information coming from the DHCP server. How can I edit this file? I know that if I add prepend ...
4
votes
2answers
17k views

setup dhcp server - “Job failed to start”

I have an eth0 and eth1, eth0 has dynamic IP-address and on eth1 I setup static IP-address: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address ...
4
votes
1answer
204 views

Why using DHCP service?

A few simple questions for a total beginner: 1)Why use DHCP? I am running a small home-network: 1 desktop computer and twp lap-tops. What is the big advantage in DHCP for me? What configurations does ...
4
votes
3answers
134 views

How to fix my local ip address [duplicate]

I want my private IP address 192.168.xxx.xxx to be fixed and do not change, Is it possible? I am using Ubuntu 14.04. I need it to work even when I change the network? Thank's
4
votes
1answer
4k views

How to access my virtual machine server via hostname?

I created a Ubuntu 12.10 virtual machine in VMware which runs an Apache server. The VMware machine is on a bridged network adapter, so it's using the physical network connected on my host. For now I ...
4
votes
2answers
16k views

I need to reset my computer's ip address to dhcp from static

I have been running a file server on Ubuntu for a couple of years now. Recently I had to take the network down. When I brought it back up, my server lost its ip address from the router. I can't ...
4
votes
1answer
5k views

What is the difference between dhcp3-server and isc-dhcp-server packages?

What is the difference between dhcp3-server and isc-dhcp-server packages in ubuntu 12.04?
4
votes
1answer
2k views

How do I setup DHCP-Server interfaces so they are mapped/bridged to each other?

I have recently setup a DHCP-Server on an Ubuntu 10.04 server machine. The machine has two interfaces (eth0, eth1). I have the DHCP server setup correctly because computers connecting to the network ...
4
votes
1answer
3k views

How can I setup dhcpd (dynamic DNS)?

I have a Ubuntu Server 11.04 firewall/gateway set up and I'm wondering how I can configure isc-dhcp-server to update bind9 to resolve hostnames in the network. Here is my setup: 3 computers ...
4
votes
3answers
6k views

dhcpd offers ip address but client doesn't get ip

I set up a dhcpd on my ubuntu server with this configuration: please note that the ubuntu server which runs the dhcpd has a static ip of 192.168.1.50 default-lease-time 600; max-lease-time 7200; ...
4
votes
2answers
148 views

Lan party network usage statistics

Me and couple of my friends have decided to make a lan party around 40 to 50 players. I have couple of conserns I need to find solutions for. DHCP server I have now installed a DHCP server (in ...
4
votes
1answer
262 views

Blank/empty hostname

I am using Ubuntu 12.10 and i was wondering if there is way to not send my hostname when connecting to a router? For example when I connect to my router I can see my laptop hostname when I log on the ...
3
votes
1answer
26k views

Is it possible to use Ifconfig to switch an interface to DHCP and if not, what is the best way?

I have just set up a new Ubuntu server and I am going to be doing a lot of networking tests. During setup, I simply skipped the network step. I now need to switch between DHCP and an address quite ...
3
votes
1answer
10k views

I try install dhcp3-server, but /etc/init.d/dhcp3-server file is missing. Whats going on?

I've found several how-to's that essentially go through the same process in setting up DHCP. Here's a link that has the list of all steps needed to install and setup DHCP. I followed all the steps ...
3
votes
2answers
4k views

How do you actually configure DHCP in MaaS in Raring?

All the docs say is If you are using MAAS to control DHCP, you need to set this via the web interface. But I see no mention of DHCP in the web interface. What exactly do you click on to ...
3
votes
2answers
138 views

beyond MAC address spoofing

Saturday, I am going to have to attempt to connect my notebook to a network that does not like me much. It is a school network. I work there as a volunteer, but don't have a sysadmin to explain what ...
3
votes
2answers
5k views

Can't get ipv6 address using dhcp

I can get the ipv4 address using dhcp,But can't get the ipv6 address. the dhcp server also support the ipv6 service. ifconfig eth0 eth0 Link encap:Ethernet HWaddr: 00:21:85:d3:a3:36 ...
3
votes
3answers
117 views

Can't connect to internet after starting DHCP

I install isc-dhcp-server to connect with my Parallella board via ethernet cable, and I'm using internet via wifi. However, after starting DHCP server, I can't connect to the internet. I checked the ...
3
votes
2answers
3k views

How can I find my DHCP server?

On my LAN there are multiple DHCP servers running, and all of them are on the same range. Now I use a machine which has a dynamic IP address from a DHCP server. I have to know from which server it ...
3
votes
2answers
13k views

Networking stop/waiting error

I wanted to set up a bridge connection for my VMs (I am using KVM). I modified my etc/network/interfaces file and its contents are: auto lo iface lo inet loopback auto br0 iface br0 inet dhcp ...
3
votes
2answers
3k views

testing dhcp server locally on one physical machine with virtual machine

I'm writing simple program to configure and monitor DHCP server on my Ubuntu 12.04. What I'm trying to achieve that my physical machine will be DHCP server and my VM (virtual machine) get one lease ...
3
votes
1answer
134 views

Public IP address hides device from network

I have flashed a mini-image of Ubuntu 14.04.1 LTS onto my BeagleBone Black. (Find latest BBB image). The BBB is connected to my home Router via Cat5 AND USB cables. Understandably, I can directly SSH ...
3
votes
1answer
1k views

Wired network does not work in Ubuntu, but works in Windows 7

Updated: I have pasted full output of bash command in Ubuntu into here, including ifconfig, ping, nm-tool, modinfo and dmesg | grep e100. Hi all, I can surf internet in Windows 7, just pluging in ...