From owner-freebsd-hackers Thu Feb 13 02:35:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA02561 for hackers-outgoing; Thu, 13 Feb 1997 02:35:51 -0800 (PST) Received: from florence.pavilion.net (florence.pavilion.net [194.242.128.25]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA02556 for ; Thu, 13 Feb 1997 02:35:47 -0800 (PST) Received: (from joe@localhost) by florence.pavilion.net (8.8.5/8.8.5) id KAA16615; Thu, 13 Feb 1997 10:35:15 GMT Message-ID: Date: Thu, 13 Feb 1997 10:35:15 +0000 From: joe@pavilion.net (Josef Karthauser) To: hackers@freebsd.org Subject: additions to /etc/netstart X-Mailer: Mutt 0.58.1 Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-md5; boundary=WXdDmUznG2R74hYJ Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk --WXdDmUznG2R74hYJ Hiya, 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] --WXdDmUznG2R74hYJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQB1AwUBMwLuYg7sAx9+veyxAQFtsAL/Xeo7kDq3MFHO64pvlX2pHvvxylT7+vY7 9z+txXU8YS7JK05FRYUdRZPhUFN46X2U0ANYRDzY9kKacMvq5RvO7tM+wp19fwph K6S5CI8z9L/SeNHKMxOpz1wGpGkd1RSo =Y9tx -----END PGP SIGNATURE----- --WXdDmUznG2R74hYJ--