Questions tagged [dhcp]

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

The Dynamic Host Configuration Protocol (DHCP) is a network configuration protocol for hosts on Internet Protocol (IP) networks. Computers that are connected to IP networks must be configured before they can communicate with other hosts. The most essential information needed is an IP address, and a default route and routing prefix. DHCP eliminates the manual task by a network administrator. It also provides a central database of devices that are connected to the network and eliminates duplicate resource assignments.

Excerpted from Wikipedia.

1083 questions
75
votes
13 answers

Wrong nameserver set by resolvconf and NetworkManager

My DNS server is 192.168.1.152. This DNS is provided to clients by DHCP. The windows clients on my LAN resolve names properly using that DNS, but my Ubuntu VM doesn't. The VM is set up with bridge networking and is being properly provided the DNS…
FireSpore
  • 751
74
votes
5 answers

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 alonside my Windows 7 installation. The Windows OS has full network connectivity and internet access through the Ethernet, but the Ubuntu installation does not. I have a…
FastSloth
  • 741
65
votes
9 answers

How do I set a static IP in Ubuntu?

I am a new with Linux, having years experience with Windows servers/desktops and am having issues setting a static IP. I am using a method used for previous versions of Ubuntu, which doesn't seem to work with 16.04 I have used the command sudo nano…
TeeStar
  • 753
56
votes
3 answers

How do I install and configure a DHCP server?

How to install and configure a DHCP server in Ubuntu 12.04? I need a step-by-step tutorial if somebody has one.
user61928
50
votes
11 answers

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 Mask:255.255.255.0 inet6 addr:…
Victor S
  • 875
46
votes
3 answers

Ubuntu 16.04 - system boot waits saying "Raise network interfaces"

I have an Ubuntu 16.04 system with two interfaces - eth0 configured with DHCP and eth1 configured with static ip addresses. The /etc/network/interfaces file has the following config # The loopback network interface auto lo iface lo inet loopback #…
j202
  • 561
42
votes
5 answers

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 opposed to the shortcutted DHCPREQUEST–DHCPACK…
ulidtko
  • 5,988
23
votes
2 answers

how to change DNS server permanently on Ubuntu 20.04?

I know there are other posts here asking this, but those suggestions do not help, the configuration keeps changing and I simply cannot get my own changes to persist. I have the Google 8.8.8.8 and 8.8.4.4 servers in my Network Manager configuration…
grobber
  • 353
22
votes
3 answers

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 of using ddclient with no-ip, as I'm a command…
Trevon
  • 221
22
votes
5 answers

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 comes. How to do that?!
Maythux
  • 87,123
22
votes
3 answers

Renew DHCP lease in systemd-networkd

I have my eth0 interface configured for DHCPv4 via netplan: network: version: 2 renderer: networkd ethernets: eth0: dhcp4: true dhcp6: true optional: true How do I tell systemd-networkd to…
villapx
  • 567
20
votes
6 answers

Both DHCP and static IP addresses simultaneously on one interface

We can use multiple IP addresses for a single interface in Linux (eg. eth0:0, eth0:1). But can we use DHCP and static IP at the same time? eth0:1 should have a static IP address and eth0:0 should be configured using DHCP. How can we accomplish both?
shantanu
  • 8,835
20
votes
1 answer

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 often. I know I can easily give a port an address…
wilhil
  • 1,795
19
votes
10 answers

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 Ubuntu Forums.
18
votes
4 answers

Why dhclient is still running when I choose static IP?

I modify dhcp to static in /etc/network/interfaces (like below). # The primary network interface auto eth0 iface eth0 inet static netmask 255.255.0.0 address 10.10.130.128 gateway 10.10.1.1 Then restart the interface. $ sudo ifdown eth0; sudo ifup…
user276851
  • 652
  • 3
  • 10
  • 21
1
2 3
72 73