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

learn more… | top users | synonyms

21
votes
2answers
94k 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.
17
votes
4answers
25k 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
20k 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 ...
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
8k 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 ...
7
votes
2answers
217 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
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
4answers
17k 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 ...
6
votes
1answer
7k 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
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 ...
6
votes
3answers
2k 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 ...
5
votes
6answers
22k views

How to get hostname from DHCP server

I want Ubuntu to get hostname and DNS name from DHCP client. Default installation of 11.10 does not do that. Update: same question asked and Unsolved
5
votes
4answers
8k 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 ...
5
votes
2answers
3k 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
233 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
2answers
5k 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 ...
5
votes
1answer
698 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
4answers
15k 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 ...
5
votes
3answers
4k 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
1answer
8k 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
3answers
8k 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 ...
4
votes
2answers
14k 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
4answers
18k 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
1answer
193 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
1answer
4k 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
2answers
9k 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
3answers
3k 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 ...
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
17k 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 ...
4
votes
1answer
2k 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
2answers
12k 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 ...
4
votes
1answer
63 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
155 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
8k 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 step needed install and setup DHCP. I follow all the steps and find ...
3
votes
2answers
3k 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
1answer
3k 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 ...
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
25k 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 ...
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
3answers
5k 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; ...
3
votes
1answer
454 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 ...
3
votes
1answer
338 views

MAAS on Ubuntu 12.10

I just upgraded a Ubuntu 12.04 server to 12.10. It was built with MAAS but no other servers had been added to its private network yet, but I confirmed that dnsmasq was setup correctly for DHCP and ...
3
votes
2answers
212 views

MAAS: Unable to start “Commisioned” nodes

I am having problems while trying to start my first node using KVM (QEMU 2.0.0) and MAAS. Automatic detection worked fine, and during the commission (virtual machine window) I get errors such as: ...
3
votes
1answer
651 views

Can't resolve windows domains in local network

I've installed ubuntu on my computer at work because I think it is a perfect system for work which I do but I got some issues. I can't resolve domains from windows DNS server. Basically, we have two ...
3
votes
1answer
116 views

What IP address does Ubuntu assign itself when it cannot reach a DHCP server?

When Windows is attached to a network but cannot reach a DHCP server, it defaults to an IP address of the form 169.254.XXX.XXX. Does Ubuntu do something similiar?
3
votes
1answer
1k views

Changing/Setting DNS settings on boot

I have a situation where i do not give access to a machine, but there may be circumstances where the IP settings need to be changed. I have overcome this by providing a USB stick with a file with both ...
3
votes
1answer
291 views

Is it possible to setup an interface with both DHCP and a static IP?

Sending a box out to a colo and the guy taking it has no idea of networking. was hoping I could set it up so I can access it no matter which of two switches he plugs it into. After which I can remove ...
3
votes
1answer
530 views

Casper set hostname via dhcp

I'm booting sucessfull via pxeboot a live ubuntu remix. I wan't to set the hostname via dhcp because I'm booting several instances of the same image. Right now I'm using a hookline in ...
3
votes
1answer
1k views

can the hostname changed via DHCP?

According to several comments in the web most DHCP clients simply ignore the hostname provided by the DHCP server. Does Ubuntu use the provided hostname? If not, how can Ubuntu be persuaded to use the ...
3
votes
1answer
101 views

Add Server between current wireless router and new router

I have a Ubuntu 12.04 Server with a wireless router attached. I would like to connect it to my modem/wireless router via the wireless interface in a transparent manner. My goal is to use the server to ...