From owner-freebsd-net@FreeBSD.ORG Mon Nov 30 22:17:05 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9229106566B for ; Mon, 30 Nov 2009 22:17:04 +0000 (UTC) (envelope-from thodoriss@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id 58DB78FC08 for ; Mon, 30 Nov 2009 22:17:04 +0000 (UTC) Received: by ewy26 with SMTP id 26so4630210ewy.3 for ; Mon, 30 Nov 2009 14:17:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=9aTsq1k2HczmM4K9qpX2aOXd/2rkYIpcfXFMCGjM5VQ=; b=ODCs3WuVyN9Tqar/J8HO5Vb1z9y8A8QraIknuc/BHN5rIW2IvwT+GCPpwudQfzCk0h AQ7hPnVxSVFzwt0tM+qbVKKSM4/reD9sdrvKYCdwCbjMgvR0qid7L4+ljzF936fQ2OAt r96Sv1J/CRCwJFXnsdSa8cagVid4l0gDWYq7M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=LNVOtmd+1STeBSxQKv/RKkIDBjNzMpqi7w9dccvvBnNjSCpkLm2iGHi7k5EbtJKJs4 PwwHYlSdLs4EvdldaVyUN5l2AEENZ8ky+OOPbAn/oy+ju9oxtqSO1oLTp5H0FO2CeCgZ 8skCwwyZ8IvpNG9HQuSpVITVvhUXOXPKkot/Y= Received: by 10.213.110.9 with SMTP id l9mr227279ebp.14.1259619423229; Mon, 30 Nov 2009 14:17:03 -0800 (PST) Received: from paranic7b99.lan (ppp-94-67-212-111.home.otenet.gr [94.67.212.111]) by mx.google.com with ESMTPS id 13sm2792301ewy.9.2009.11.30.14.17.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 30 Nov 2009 14:17:02 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) From: Thodoris Stamatopoulos In-Reply-To: <4B08214F.8070204@gmx.com> Date: Tue, 1 Dec 2009 00:17:00 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <3739D5B5-5AA3-47A5-B8FA-AC35EF6B273E@gmail.com> References: <927edfce0911190736r3f202001h2082052b7922c723@mail.gmail.com> <4B08214F.8070204@gmx.com> To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.1077) Subject: Re: MPD Multiple PPPoE to same ISP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2009 22:17:05 -0000 Thank you very much Nikos, at first it didnt worked with the 7.2 Release = kernel (cant compile kernel with radix option), but with 8 it worked = like a charm, all interface now have the same gateway and all ng interfaces have ip at last... Thanks Thodoris (euxaristw:)) On Nov 21, 2009, at 7:20 PM, Nikos Vassiliadis wrote: > Thodoris S. wrote: >> I am trying to make Multiple PPPoE Connections to the Same ISP for >> Load Balancing reasons >> my mpd.conf is: >> default: >> load adsl0 >> load adsl1 >> load adsl2 >> adsl0: >> new -i ng0 pppoe0 pppoe0 >> set iface route default >> set iface disable on-demand >> set iface idle 0 >> set bundle disable multilink >> set bundle authname "***" >> set bundle password "***" >> set bundle no noretry >> set link keep-alive 10 60 >> set link max-redial 0 >> set link no acfcomp protocomp >> set link disable pap chap >> set link accept chap >> set link mtu 1492 >> set ipcp yes vjcomp >> set ipcp ranges 0.0.0.0/0.0.0.0/0 >> set ipcp enable req-pri-dns >> set ipcp enable req-sec-dns >> open >> adsl1: >> new -i ng1 pppoe1 pppoe1 >> set iface route default >> set iface disable on-demand >> set iface idle 0 >> set bundle disable multilink >> set bundle authname "***" >> set bundle password "***" >> set bundle no noretry >> set link keep-alive 10 60 >> set link max-redial 0 >> set link no acfcomp protocomp >> set link disable pap chap >> set link accept chap >> set link mtu 1492 >> set ipcp yes vjcomp >> set ipcp ranges 0.0.0.0/0.0.0.0/0 >> set ipcp enable req-pri-dns >> set ipcp enable req-sec-dns >> open >> adsl2: >> new -i ng2 pppoe2 pppoe2 >> set iface route default >> set iface disable on-demand >> set iface idle 0 >> set bundle disable multilink >> set bundle authname "***" >> set bundle password "***" >> set bundle no noretry >> set link keep-alive 10 60 >> set link max-redial 0 >> set link no acfcomp protocomp >> set link disable pap chap >> set link accept chap >> set link mtu 1492 >> set ipcp yes vjcomp >> set ipcp ranges 0.0.0.0/0.0.0.0/0 >> set ipcp enable req-pri-dns >> set ipcp enable req-sec-dns >> open >> And mpd.links is: >> pppoe0: >> set link type pppoe >> set pppoe iface em0 >> set pppoe service "we" >> set pppoe enable originate >> set pppoe disable incoming >> pppoe1: >> set link type pppoe >> set pppoe iface em1 >> set pppoe service "we1" >> set pppoe enable originate >> set pppoe disable incoming >> pppoe2: >> set link type pppoe >> set pppoe iface bce1 >> set pppoe service "we2" >> set pppoe enable originate >> set pppoe disable incoming >> The problem is tha only one (the first logged in) ng interface gets = ip >> assigned to it, all others assigned to lo0 interface >> and when i am trying to NAT them with PF it gives me this error: >> /etc/pf.conf:26: could not parse host specification >> im giving you ifconfig and netstat -nr >> ifconfig: >> [root@emperor ~]# ifconfig >> bce0: flags=3D8843 metric 0 = mtu 1500 >> = options=3D1bb >> ether 00:1e:c9:db:24:7f >> inet 192.168.0.1 netmask 0xfffffff8 broadcast 192.168.0.7 >> media: Ethernet autoselect (1000baseTX ) >> status: active >> em0: flags=3D8843 metric 0 = mtu 1500 >> = options=3D19b >> ether 00:15:17:78:fd:56 >> inet 192.168.101.1 netmask 0xffffff00 broadcast 192.168.101.255 >> media: Ethernet autoselect (100baseTX ) >> status: active >> em1: flags=3D8843 metric 0 = mtu 1500 >> = options=3D19b >> ether 00:15:17:78:fb:41 >> inet 192.168.102.1 netmask 0xffffff00 broadcast 192.168.102.255 >> media: Ethernet autoselect (100baseTX ) >> status: active >> bce1: flags=3D8843 metric 0 = mtu 1500 >> = options=3D1bb >> ether 00:1e:c9:db:24:7d >> inet 192.168.103.1 netmask 0xffffff00 broadcast 192.168.103.255 >> media: Ethernet autoselect (100baseTX ) >> status: active >> lo0: flags=3D8049 metric 0 mtu 16384 >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 >> inet6 ::1 prefixlen 128 >> inet 127.0.0.1 netmask 0xff000000 >> pflog0: flags=3D141 metric 0 mtu 33204 >> ng0: flags=3D88d1 = metric >> 0 mtu 1492 >> inet 11.11.11.11 --> 12.12.12.2 netmask 0xffffffff >> ng1: flags=3D88d1 = metric >> 0 mtu 1492 >> ng2: flags=3D88d1 = metric >> 0 mtu 1492 >> nestat -nr: >> Routing tables >> Internet: >> Destination Gateway Flags Refs Use Netif = Expire >> default 192.168.0.2 UGS 0 13812 bce0 >> 192.168.0.0/29 link#1 UC 0 0 bce0 >> 12.12.12.2 11.11.11.11 UH 0 0 ng0 >> 33.33.33.33 lo0 UHS 0 4797 lo0 >> 22.22.22.22 lo0 UHS 0 1370 lo0 >> 11.11.11.11 lo0 UHS 0 0 lo0 >> 127.0.0.1 127.0.0.1 UH 0 0 lo0 >> 192.168.101.0/24 link#2 UC 0 0 em0 >> 192.168.102.0/24 link#3 UC 0 0 em1 >> 192.168.103.0/24 link#4 UC 0 0 bce1 >=20 > Could you add to your kernel config "options RADIX_MPATH" and give it > a go then? >=20 > It seems that you try to add a second point-to-point interface with > the same destination address. For example: > ng0 1.1.1.1 2.2.2.2 and > ng1 1.1.1.2 2.2.2.2 etc >=20 > This is not valid without the aforementioned kernel option. >=20 > I *think* it will be ok then, but do try and report back to the list > your findings. >=20 > HTH, Nikos >=20