From owner-freebsd-current Thu Mar 25 8:41:44 1999 Delivered-To: freebsd-current@freebsd.org Received: from bolero-x.rahul.net (bolero.rahul.net [192.160.13.1]) by hub.freebsd.org (Postfix) with SMTP id 015B115418 for ; Thu, 25 Mar 1999 08:41:42 -0800 (PST) (envelope-from dhesi@rahul.net) Received: from q.bolero.rahul.net (bolero.rahul.net) by bolero-x.rahul.net with SMTP id AA07426 (5.67b8/IDA-1.5 for ); Thu, 25 Mar 1999 08:41:23 -0800 Message-Id: <199903251641.AA07426@bolero-x.rahul.net> Received: (qmail 7422 invoked from network); 25 Mar 1999 16:41:22 -0000 Received: from waltz.rahul.net (192.160.13.9) by bolero.rahul.net with SMTP; 25 Mar 1999 16:41:22 -0000 To: freebsd-current@freebsd.org Subject: rc.conf issues: host identity vs host config Date: Thu, 25 Mar 1999 08:41:22 -0800 From: Rahul Dhesi Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The current rc.conf system doesn't seem to allow for separating out host identity from host configuration. As a result I'm not able to create a site-wide rc.conf file and rdist it to multiple machines, configured identically except for having distinct own host names. I think some very basic information identifying a host should be kept in its own place: host name and ip address for each network interface And I like the way SunOS does it: The file hostname. contains the machine's host name, where is the name of the network interface. E.g., if the only network interface is le0, the file hostname.le0 contains the host name. With multiple network interfaces you would have a distinct hostname. file for each one. Now you can rdist /etc/hosts containing all host names and IP addresses. At boot time we get the host name from hostname., look up the host name in /etc/hosts, and get our IP address. And non-default netmasks are listed in /etc/netmasks, which can also be propagated via rdist. To reassign IP addresses, simply rdist a new copy of /etc/hosts and reboot all machines. Rahul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message