Date: Fri, 4 Jun 2004 09:56:12 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Artem Koutchine <matrix@itlegion.ru> Cc: freebsd-questions@freebsd.org Subject: Re: how to attach class C net to an interface? Message-ID: <20040604085612.GC85236@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <009501c44a06$9d58acb0$0c00a8c0@artem> References: <004401c4496f$08f83be0$7a01a8c0@nobodyfuckhead> <01fa01c44973$efe697f0$0c00a8c0@artem> <40BF6596.8090705@davidfuchs.ca> <009501c44a06$9d58acb0$0c00a8c0@artem>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Jun 04, 2004 at 11:36:10AM +0400, Artem Koutchine wrote:
> > for (( foo = 1; foo < 255; foo++ )); \
> > do ifconfig fxp1 alias 172.16.100.$foo netmask 0xffffffff; \
> > done
> Thank you for the scrip. I will then asign a single main ip to the interface
> in rc.conf and then run this script from /usr/local/etc/rc.d because i think
> rc.local is merged after each cvp/buildworld/installworld/mergmaster,
> so /usr/local/etc/rc.d is a safer place to to keep it. Right or not?
Probably the best place to put this is in a file named 'start_if.fxp1'
assuming fxp1 is the interface you want all this to happen to. That
will be read into /etc/rc.network and executed by this bit of code:
for ifn in ${network_interfaces}; do
if [ -r /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
eval showstat_$ifn=1
fi
This effectively lets you introduce custom bits of shell script into
the standard /etc/rc.network script without having to worry about
keeping that script patched and in synch across system updates.
There isn't a similar 'stop_if.fxp1' facility -- just disabling the
interface usually does the trick.
> The other question, will assigning 200+ ip addresses degrade tcp/ip
> perfomance noticeably?
Hard to say. Probably not a huge amount, but it will depend on your
hardware amongst other things. The only way to know for sure is to
run some tests yourself.
> How to i spell noticably or noticaebly? :)
noticeably
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAwDksiD657aJF7eIRAktaAJ9GME3Pvhp7/SPqeITAV4U3RWinRACeIXI0
CGKHWpM8hXkF7WsOSQdt94c=
=LDjN
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040604085612.GC85236>
