From owner-freebsd-bugs Tue Feb 11 14:29:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA24539 for bugs-outgoing; Tue, 11 Feb 1997 14:29:27 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA24534 for ; Tue, 11 Feb 1997 14:29:25 -0800 (PST) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id OAA01923 for ; Tue, 11 Feb 1997 14:29:02 -0800 (PST) Received: (from davidn@localhost) by labs.usn.blaze.net.au (8.8.5/8.8.5) id JAA11763; Wed, 12 Feb 1997 09:26:01 +1100 (EST) Message-ID: <19970212092601.23228@usn.blaze.net.au> Date: Wed, 12 Feb 1997 09:26:01 +1100 From: David Nugent To: "SysAdmin for paxlink.com" Cc: bugs@freebsd.org Subject: Re: reboot problem with alias IP References: <1.5.4.32.19970211123823.00674d58@mail.paxlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61 In-Reply-To: <1.5.4.32.19970211123823.00674d58@mail.paxlink.com>; from SysAdmin for paxlink.com on Feb 02, 1997 at 04:38:23AM Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Feb 02, 1997 at 04:38:23AM, SysAdmin for paxlink.com wrote: > network_interfaces="ed1 lo0" > ifconfig_ed1="inet 207.155.58.2 netmask 255.255.255.0" > ifconfig_ed1="inet 207.155.58.20 alias" Aside from the missing netmask 0xffffffff already pointed out, there is another problem here. "ifconfig_ed1" is a shell variable. The second line sets it to one value, and the third line overwrites it with another. In other words, the first ifconfig_ed1 will never be executed, so what /etc/netstart does is attempt to execute the second only - I'm not surprised that it hung. In 2.2 and above, this is the sort of thing you need to do: network_interfaces="ed1 lo0" ifconfig_lo0="inet 127.0.0.1" ifconfig_ed1="inet 207.155.58.2 netmask 0xffffff00" ifconfig_ed1_alias0="inet 207.155.58.20 netmask 0xffffffff" With older versions of /etc/netstart, I usually manually add the alias commands to the end of that script, unless I could be bothered modifying it and adding the alias logic from later versions. Regards, David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/