Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 1997 09:26:01 +1100
From:      David Nugent <davidn@labs.usn.blaze.net.au>
To:        "SysAdmin for paxlink.com" <jmonroy@paxlink.com>
Cc:        bugs@freebsd.org
Subject:   Re: reboot problem with alias IP
Message-ID:  <19970212092601.23228@usn.blaze.net.au>
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
References:  <1.5.4.32.19970211123823.00674d58@mail.paxlink.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970212092601.23228>