Date: Thu, 13 Feb 1997 10:35:15 +0000 From: joe@pavilion.net (Josef Karthauser) To: hackers@freebsd.org Subject: additions to /etc/netstart Message-ID: <Mutt.19970213103515.joe@florence.pavilion.net>
index | next in thread | raw e-mail
[-- Attachment #1 --]
I've got a sugestion for an addition to /etc/netstart for handling
ip aliases. Perhaps this isn't the best place to send it, but it's
most likely to end up in the core if one f you guys likes it :)
This is the addition:
# Set up all the network interfaces, calling startup scripts if needed
for ifn in ${network_interfaces}; do
if [ -e /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn} ${ifn}
fi
eval ifconfig_args=\$ifconfig_${ifn}
ifconfig ${ifn} ${ifconfig_args}
ifconfig ${ifn}
# joe/pavilion/19961121: added alias code
eval network_aliases=\$network_aliases_${ifn}
echo network_aliases=$network_aliases
for ifna in ${network_aliases}; do
echo ifconfig ${ifn} inet alias ${ifna} netmask 255.255.255.255
ifconfig ${ifn} inet alias ${ifna} netmask 255.255.255.255
done
done
The following can then be added to /etc/sysconfig:
ifconfig_de0="inet 194.242.128.25 -link2 netmask 255.255.255.192"
ifconfig_lo0="inet localhost"
# joe/pavilion/19961121: IP alias addresses for each interface
# Multiple is allowed: network_aliases_XXX="194.193.24.2 194.193.24.4"
# XXX is replaced by the interface name, eg de0
#
# joe/pavilion/19970203: This machine is now the primary DNS.
#
network_aliases_de0="194.242.128.1"
Whatcha think?
Joe.
--
Josef Karthauser
Technical Manager Email: joe@pavilion.net
Pavilion Internet plc. [Tel: +44 1273 607072 Fax: +44 1273 607073]
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
iQB1AwUBMwLuYg7sAx9+veyxAQFtsAL/Xeo7kDq3MFHO64pvlX2pHvvxylT7+vY7
9z+txXU8YS7JK05FRYUdRZPhUFN46X2U0ANYRDzY9kKacMvq5RvO7tM+wp19fwph
K6S5CI8z9L/SeNHKMxOpz1wGpGkd1RSo
=Y9tx
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970213103515.joe>
