From owner-freebsd-net@FreeBSD.ORG Thu Jun 19 06:50:34 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 299C037B401 for ; Thu, 19 Jun 2003 06:50:34 -0700 (PDT) Received: from mx.vipnet.ro (cosmic.vipnet.ro [193.230.219.1]) by mx1.FreeBSD.org (Postfix) with SMTP id B8CEA43FAF for ; Thu, 19 Jun 2003 06:50:31 -0700 (PDT) (envelope-from vladg@vipnet.ro) Received: (qmail 24953 invoked from network); 19 Jun 2003 13:53:15 -0000 Received: from unknown (HELO rtfm.vipnet.ro) (193.230.219.12) by cosmic.vipnet.ro with SMTP; 19 Jun 2003 13:53:15 -0000 Date: Thu, 19 Jun 2003 16:49:50 +0300 From: Vlad GALU To: freebsd-net@freebsd.org Message-Id: <20030619164950.49c942c0.vladg@vipnet.ro> In-Reply-To: <20030619164024.L698@mcd01p59.mrc.alcatel.ro> References: <20030619164024.L698@mcd01p59.mrc.alcatel.ro> Organization: VipNET Bucharest X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.CggU66nugv24?w" Subject: Re: Redundant link configuration X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 13:50:34 -0000 --=.CggU66nugv24?w Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 19 Jun 2003 16:50:17 +0300 (EEST) Ciprian Badescu wrote: > Hi, > > I'm not very old in networking, and I want to migrate to following > configuration: > > > > Local router Remote router > +---------------+ +---------------+ > | | | | > | |192.168.0.1 link 1 192.168.0.11 | | > | |---------------------------------------| | > | |---------------------------------------| | > | |192.268.0.2 link 2 192.168.0.12 | | > +---------------+ +---------------+ > I tried channel bonding and it worked pretty good. I haven't yet tested it extensively. Give it a try though. As for the system interface, all I know about this is that you should use mii-based NIC's, because they know how to report downlinks. I'm not aware of any failover software at this very moment, but this can be my poor memory. I hope someone else can answer to this more properly. > > The link 192.168.0.1 <->192.168.0.11 Is the actual one, using RF, and > I want to move all traffic to the new OF link 192.268.0.2 > <->192.168.0.12. > > I don't know how to configura the routers to use the second link, and > to keep the first link for redundancy, and if something is happening > with link2, tha traffic must use automatically link1. > > It's enough tu use routing metrics, or I must use a routing protocol > (and if so, which one)? > > > > > > -- > Ciprian Badescu > > On Thu, 19 Jun 2003, Scot Loach wrote: > > > Date: Thu, 19 Jun 2003 08:20:34 -0400 > > From: Scot Loach > > To: "'freebsd-net@freebsd.org'" > > Subject: socket leak in FreeBSD 4.7 > > > > If I execute the following program on a FreeBSD 4.7 system: > > > > int main() > > { > > for (int i = 0; i < 70000; i++) > > { > > socket(PF_INET, SOCK_STREAM, 0); > > } > > return 0; > > } > > the sockets never seem to be freed. > > > > vmstat tells me the memory is still in use: > > > > bash-2.05a$ vmstat -z > > > > ITEM SIZE LIMIT USED FREE REQUESTS > > > > tcpcb: 544, 106000, 65557, 4474, 70029 > > udpcb: 192, 106000, 7, 35, 481 > > unpcb: 160, 0, 7, 43, 78 > > socket: 192, 106000, 65571, 4487, 70639 > > > > However, fstat and sockstat do not show a large number of sockets. > > > > netstat shows them, and they look like this: > > > > tcp4 0 0 *.* *.* > > CLOSED > > > > > > If I explicitly close the sockets before the program exits, this > > does not occur. However I'm worried about the case where a > > high-volume server exits unexpectedly and leaks sockets. > > > > Any ideas of what might be wrong? > > > > > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to > > "freebsd-net-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Vlad GALU Network Administrator VipNET Bucharest tel: 021/3039940 email: vladg@vipnet.ro web: http://www.vipnet.ro PGP: http://mirapoint.vipnet.ro/public_key.pgp --=.CggU66nugv24?w Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+8b+CBQlxy6GegvARAo/1AKDifIFKRaHE20g2fdg+iDRJ9/KrIQCgyr6k EIpww7tfN+wppxn42nMLa1I= =qioA -----END PGP SIGNATURE----- --=.CggU66nugv24?w--