FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 10-31-2011, 02:36 PM
Nicolas Kovacs
 
Default How to get hostnames via DHCP with a "classic" network configuration ?

Hi,

I've just setup a small LAN consisting of a server running Ubuntu 10.04
Server and a bunch of clients running Ubuntu 11.10.


On the server I installed dhcp3-server, and here's the relevant
configuration :


--8<----- /etc/dhcp3/dhcpd.conf ----------------------------------
# /etc/dhcp3/dhcpd.conf
authoritative;
default-lease-time 86400;
max-lease-time 86400;
option broadcast-address 192.168.2.255;
option subnet-mask 255.255.255.0;
option routers 192.168.2.1;
option domain-name-servers 192.168.2.1;
option domain-name "presbytere.montpezat";

subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.100 192.168.2.200;
}

host alphamule {
hardware ethernet 00:19B:44:C5:94;
fixed-address 192.168.2.2;
option host-name "alphamule";
}

host bernadette {
hardware ethernet 00:0D:61:A6:E7:1E;
fixed-address 192.168.2.3;
option host-name "bernadette";
}

host raymonde {
hardware ethernet 00:20:Ed:B8:E8:EC;
fixed-address 192.168.2.4;
option host-name "raymonde";
}

host balthazar {
hardware ethernet 00:19:E0:83:3A:C1;
fixed-address 192.168.2.5;
option host-name "balthazar";
}

host lifebook {
hardware ethernet 00:0B:5D:46:F2:10;
fixed-address 192.168.2.6;
option host-name "lifebook";
}

host bebette {
hardware ethernet 00:27:19:F1:BC:3A;
fixed-address 192.168.2.7;
option host-name "bebette";
}
--8<--------------------------------------------------------------

On a stock Ubuntu install on the client side, I simply remove any
hardcoded hostname reference, e. g.:


# rm /etc/hostname

And then I edit /etc/hosts down to a one-liner that looks like this:

127.0.0.1 localhost.localdomain localhost

This setup works very nice.

Now until Ubuntu 10.04, I could easily remove NetworkManager and use the
"classic" network configuration with /etc/network/interfaces, like this:


# apt-get autoremove --purge network-manager*
# rm -rf /var/lib/NetworkManager

And then add an according stanza in /etc/network/interfaces:

auto eth0
iface eth0 inet dhcp

And that was it. Clients would get their hostnames very well in this setup.

Only starting from Ubuntu 10.10 (or 11.04?), things changed, and when I
replace NetworkManager by a "classic" setup, I can't get client machines
to get their hostnames from the server.


This is quite annoying, since more often than not, I have to setup
networks in schools or public libraries, where it's much better to
manage everything centrally.


Any idea how I could get this to work?

Cheers from France,

Niki Kovacs

--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web : http://www.microlinux.fr
Mail : info@microlinux.fr
Tél. : 04 66 63 10 32

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Mon Oct 31 18:30:02 2011
Return-path: <devel-bounces@lists.fedoraproject.org>
Envelope-to: tom@linux-archive.org
Delivery-date: Mon, 31 Oct 2011 17:36:58 +0200
Received: from bastion01.fedoraproject.org ([209.132.181.2]:35305 heloºstion.fedoraproject.org)
by s2.java-tips.org with esmtp (Exim 4.69)
(envelope-from <devel-bounces@lists.fedoraproject.org>)
id 1RKtv0-0001y4-GM
for tom@linux-archive.org; Mon, 31 Oct 2011 17:36:58 +0200
Received: from lists.fedoraproject.org (collab01.vpn.fedoraproject.org [192.168.1.21])
by bastion01.phx2.fedoraproject.org (Postfix) with ESMTP id A295E20E5C;
Mon, 31 Oct 2011 15:37:02 +0000 (UTC)
Received: from collab1.fedoraproject.org (localhost.localdomain [127.0.0.1])
by lists.fedoraproject.org (Postfix) with ESMTP id E2468326761;
Mon, 31 Oct 2011 15:37:01 +0000 (UTC)
X-Original-To: devel@lists.fedoraproject.org
Delivered-To: devel@lists.fedoraproject.org
Received: from smtp-mm01.fedoraproject.org (smtp-mm01.fedoraproject.org
[80.239.156.217])
by lists.fedoraproject.org (Postfix) with ESMTP id 68E66326760
for <devel@lists.fedoraproject.org>;
Mon, 31 Oct 2011 15:36:54 +0000 (UTC)
Received: from mail.tu-berlin.de (mail.tu-berlin.de [130.149.7.33])
by smtp-mm01.fedoraproject.org (Postfix) with ESMTP id 913CC87E57
for <devel@lists.fedoraproject.org>;
Mon, 31 Oct 2011 15:36:53 +0000 (UTC)
X-tubIT-Incoming-IP: 130.149.23.247
Received: from eurybates.uebb.cs.tu-berlin.de ([130.149.23.247])
by mail.tu-berlin.de (exim-4.75/mailfrontend-1) with esmtpa
for <devel@lists.fedoraproject.org>
id 1RKtut-0003PL-MN; Mon, 31 Oct 2011 16:36:52 +0100
Message-ID: <4EAEC093.1070707@tu-berlin.de>
Date: Mon, 31 Oct 2011 16:36:51 +0100
From: =?UTF-8?B?Q2hyaXN0b3BoIEjDtmdlcg==? <christoph.hoeger@tu-berlin.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
rv:7.0) Gecko/20110927 Thunderbird/7.0
MIME-Version: 1.0
To: Development discussions related to Fedora <devel@lists.fedoraproject.org>
Subject: Bug in javac ?
X-Enigmail-Version: 1.3.2
X-BeenThere: devel@lists.fedoraproject.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Development discussions related to Fedora
<devel@lists.fedoraproject.org>
List-Id: Development discussions related to Fedora
<devel.lists.fedoraproject.org>
List-Unsubscribe: <https://admin.fedoraproject.org/mailman/listinfo/devel>,
<mailto:devel-request@lists.fedoraproject.org?subject=unsubscrib e>
List-Archive: <http://lists.fedoraproject.org/pipermail/devel>
List-Post: <mailto:devel@lists.fedoraproject.org>
List-Help: <mailto:devel-request@lists.fedoraproject.org?subject=help>
List-Subscribe: <https://admin.fedoraproject.org/mailman/listinfo/devel>,
<mailto:devel-request@lists.fedoraproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: devel-bounces@lists.fedoraproject.org
Errors-To: devel-bounces@lists.fedoraproject.org

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYX NoOiBTSEExCgpIaS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VFVSRS0tLS0tClZlcnNp
b246IEdudVBHIHYxLjQuMTEgKEdOVS9MaW51eCkKQ29tbWVudD ogVXNpbmcgR251UEcgd2l0aCBN
b3ppbGxhIC0gaHR0cDovL2VuaWdtYWlsLm1vemRldi5vcmcvCg ppRVlFQVJFQ0FBWUZBazZ1d0pN
QUNna1FoTUJPNGNWU0dTL24zd0NmWWdIaDhwMHNITkpxK2txcX dQZitwZTBMCkxGc0FuMXhlb1k5
RVNldEJ4ZnFzYVdiMFNaM0VDWXRrCj1rZSswCi0tLS0tRU5EIF BHUCBTSUdOQVRVUkUtLS0tLQot
LSAKZGV2ZWwgbWFpbGluZyBsaXN0CmRldmVsQGxpc3RzLmZlZG 9yYXByb2plY3Qub3JnCmh0dHBz
Oi8vYWRtaW4uZmVkb3JhcHJvamVjdC5vcmcvbWFpbG1hbi9saX N0aW5mby9kZXZlbA
 

Thread Tools




All times are GMT. The time now is 10:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org