From owner-freebsd-net@FreeBSD.ORG Thu Oct 23 05:31:15 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 B768B16A4B3 for ; Thu, 23 Oct 2003 05:31:15 -0700 (PDT) Received: from tdwyer.arach.net.au (tdwyer.arach.net.au [203.15.140.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02F1D43FDD for ; Thu, 23 Oct 2003 05:31:12 -0700 (PDT) (envelope-from sdwyer@arach.net.au) Received: from arach.net.au (hades.ctnet.org.au [10.60.32.12]) by tdwyer.arach.net.au (Postfix) with ESMTP id 973F2152AC; Thu, 23 Oct 2003 20:31:13 +0800 (WST) Message-ID: <3F97CB52.1080100@arach.net.au> Date: Thu, 23 Oct 2003 20:36:34 +0800 From: Shaun Dwyer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Leon Verheem References: <651BBF3EA452AA459E5578E94B0DE30170F11B@exch01.korbitec.int> In-Reply-To: <651BBF3EA452AA459E5578E94B0DE30170F11B@exch01.korbitec.int> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: net@freebsd.org Subject: Re: Using multilink ppp(or similar) over 2 bridge mode ADSLconnections... -- WORKS! 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, 23 Oct 2003 12:31:15 -0000 Hi, Yes, I was successful actually :) The configuraton was as follows(ip addresses changed to hide the box-- s/real.ip.address/192.168.1/g): Co-located machine had 2 IP addresses assigned: fxp0: flags=8843 mtu 1500 inet 192.168.1.11 netmask 0xffffffc0 broadcast 192.168.1.63 inet 192.168.1.14 netmask 0xffffffff broadcast 192.168.1.14 ether 00:02:b3:d1:c5:39 media: Ethernet autoselect (100baseTX ) status: active Machine at office had two bridge mode 1.5Mbit/256kbit ADSL connections(The IP addresses were just ifconfig'd on each NIC). The co-lo machine's ppp.conf is as follows: #---start ppp.conf--- default: #Only enable logging for troubleshooting #set log CBCP CCP Chat Connect Command IPCP tun Phase Warning Debug LCP sync #set log Connect tun Phase Debug LCP set log Connect tun Phase LCP #set log Chat Connect Command IPCP tun Phase Warning LCP ppp-in: set timeout 0 set speed 0 set device 192.168.1.11:7900/tcp 192.168.1.14:7900/tcp set enddisc MAC set mrru 1450 set mtu 1450 set mru 1450 set dial set login # Addresses for: MyAddr, HisAddr, Netmask # set ifaddr 192.168.2.1/8 192.168.3.1/8 255.255.255.255 # set ifaddr 192.168.2.1 192.168.3.1/24 255.255.255.255 set ifaddr 10.60.50.5 10.60.50.6 255.255.255.252 #Chap is encrypted, pap isnt enable chap disable pap enable MSCHAPv2 enable lqr #---End ppp.conf--- The co-lo machine's ppp.secret contains: #---start ppp.secret--- username_goes_here password_goes_here 10.60.50.6 #---end ppp.secret--- /etc/inetd.conf on the co-lo machine had the following lines added: #--start-- #incoming ppp ppp-in stream tcp nowait root /usr/sbin/ppp ppp -direct ppp-in #--end-- /etc/services had the following added: #--start-- ppp-in 7900/tcp #incoming TCP ppp session #--end-- The Office Machine's ppp.conf is as follows: #---start ppp.conf--- default: #set log CBCP CCP Chat Connect Command IPCP tun Phase Warning Debug LCP sync set log Connect tun Phase LCP multilink: set escape 0xff # set device 192.168.1.11:7900/tcp 192.168.1.14:7900/tcp set speed sync set ctsrts off set timeout 30 set authname username_goes_here set authkey password_goes_here # enable lqr set mrru 1450 set mtu 1450 set mru 1450 clone 1,2 link 1 set device 192.168.1.11:7900/tcp link 2 set device 192.168.1.14:7900/tcp link deflink remove link 1,2 set mode ddial #---end ppp.conf--- ppp on the office machine was started with: ppp -background multilink The co-lo machine's uname -v: FreeBSD 4.8-STABLE #1: Sat Jul 12 22:10:42 WST 2003 sdwyer@server..com.au:/usr/obj/usr/src/sys/SERVER The office machine's uname -v: FreeBSD 4.8-STABLE #0: Sat Jul 5 17:35:42 WST 2003 root@server..org.au:/usr/obj/usr/src/sys/SERVER Performance increase was about what I expected.. doing an FTP download we were seeing about 280kb/sec. Uploads were going at about 38kb/sec Not too bad considering it was a quick and dirty job. I tried to get it going with UDP but it refused to work for some reason. Perhaps MTU/MRU stuff could be tuned a bit more finely but in the end it wasnt going to be quite fast enough for the client. He was hoping to see 45kb/sec for uploads. Let me know how you go :) ive cc'd this to net@freebsd.org in the hope that it becomes useful to some one else also. Mabye something a bit too obscure for the FAQ or Handbook.. let me know if im wrong :) Cheers, -Shaun *im not subscribed to the net mailing list. Please email me directly* Leon Verheem wrote: > Have you had any luck setting up the multilinking? If so any tips you might have would be appreciated as I have a similar project > Leon Verheem > > Subject: Using multilink ppp(or similar) over 2 bridge mode ADSL connections... > From: sdwyer@arach.net.au (Shaun Dwyer) > Newsgroups: freebsd.net > Organization: TAC News Gateway > Date: Jul 25 2003 09:12:53 > Hi All, > > Please include me in the to: line as I'm not subscribed to this list(Thanks!). > > > I have a project where I need to be able to use the full available bandwidth of > 2x 1.5M/256k ADSL links. I will have a machine co-located at a local ISP shortly > and hope to run a ppp(or other?) server on that machine, and make 2 connections > to it from the home machine (one on each ADSL link). Has anyone done this > before? any ideas as to the best way to achieve this? Secure data transmission > is a must. I'm thinking that ipsec on the tunnel thats established would be > sufficient. > > This is more in an effort to gain full speed access to the machine terminating > the > remote end of the link. Access to the net via this multilink connection is not > important. > > > > TIA, > -Shaun > > > >