How to get hostnames via DHCP with a "classic" network configuration ?
On Mon, 31 Oct 2011 16:36:01 +0100, Nicolas Kovacs wrote:
> 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 Is there a reason why you're using dhcp3? If you really have to go with dhcp3 "dynamic dns" is the solution. But for a home network it might be too complex. I was at the same point as you some time ago. I gave up with dhcp3 and dynamic dns and I went for dnsmasq [1]. It combines dns and dhcp and is MUCH easier to configure. Cheers Ramon [1] http://thekelleys.org.uk/dnsmasq/doc.html -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
How to get hostnames via DHCP with a "classic" network configuration ?
On 31/10/2011 17:36, Nicolas Kovacs wrote:
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 : my question is.. why to use the hostname option? just use the hostname file.. it's already a static host names. Regrads Eliezer --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:19:DB: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 -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
How to get hostnames via DHCP with a "classic" network configuration ?
Le 31/10/2011 20:00, Ramon Hofer a écrit :
I was at the same point as you some time ago. I gave up with dhcp3 and dynamic dns and I went for dnsmasq [1]. Well, the question was more for the client side, not for the server side. But since you ask, yeah, I know dnsmasq, but I'm doing things with Bind (locally) that dnsmasq is not designed for. Anyone has a solution for my problem, besides the guy that suggested static configuration on all the clients ? :o) cheers, 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 |
| All times are GMT. The time now is 10:03 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.