From owner-freebsd-questions@FreeBSD.ORG Tue Nov 9 20:52:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F8AD1065693 for ; Tue, 9 Nov 2010 20:52:04 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by mx1.freebsd.org (Postfix) with ESMTP id 820DC8FC28 for ; Tue, 9 Nov 2010 20:52:04 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0LBM00G42XYNSF50@asmtp030.mac.com> for freebsd-questions@freebsd.org; Tue, 09 Nov 2010 12:52:00 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1011090134 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-11-09_12:2010-11-09, 2010-11-09, 1970-01-01 signatures=0 From: Chuck Swiger In-reply-to: Date: Tue, 09 Nov 2010 12:51:59 -0800 Message-id: References: To: Leonardo Santagostini X-Mailer: Apple Mail (2.1082) Cc: FreeBSD - Subject: Re: Multiple tun loadbalancing question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 20:52:04 -0000 On Nov 9, 2010, at 12:33 PM, Leonardo Santagostini wrote: > Do you have some working config? To answer this part more specifically, from "man ppp": Multi-link capabilities are enabled using the ``set mrru'' command (set maximum reconstructed receive unit). Once multi-link is enabled, ppp will attempt to negotiate a multi-link connection with the peer. [ ... ] Armed with this information, the following configuration might be used: mp: set timeout 0 set log phase chat set device /dev/cuad0 /dev/cuad1 /dev/cuad2 set phone "123456789" set dial "ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 \"\" ATZ \ OK-AT-OK \\dATDT\\T TIMEOUT 45 CONNECT" set login set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0 set authname ppp set authkey ppppassword set mrru 1500 clone 1,2,3 # Create 3 new links - duplicates of the default link deflink remove # Delete the default link (called ``deflink'') Note how all cloning is done at the end of the configuration. Usually, the link will be configured first, then cloned. If you wish all links to be up all the time, you can add the following line to the end of your configuration. link 1,2,3 set mode ddial If you want the links to dial on demand, this command could be used: link * set mode auto Links may be tied to specific names by removing the ``set device'' line above, and specifying the following after the ``clone'' command: link 1 set device /dev/cuad0 link 2 set device /dev/cuad1 link 3 set device /dev/cuad2 Use the ``help'' command to see which commands require context (using the ``link'' command), which have optional context and which should not have any context. You might also check the fine FreeBSD Handbook for examples, also... Regards, -- -Chuck