Re: multiple DSL modems and pppoe sessions on the same ethernet ?



----- Original Message ----- From: "Luigi Rizzo" <rizzo@xxxxxxxx>
To: <net@xxxxxxxxxxx>
Sent: Wednesday, July 26, 2006 10:12 PM
Subject: multiple DSL modems and pppoe sessions on the same ethernet ?


hi,
i am trying to run, on a single FreeBSD box, multiple (3 in my case)
pppoe instances talking to as many DSL modems on the same ethernet cable

------+--------------+--------------+--------------+-----
| | | |
+-[modem1] +-[modem2] +-[modem3] +-[FreeBSD/ppp]
DSL#1 DSL#2 DSL#3

Ideally, in /etc/ppp/ppp.conf i can write something like

modem1:
set device PPPoE:rl0:dsl1
...

modem2:
set device PPPoE:rl0:dsl2
...

modem3:
set device PPPoE:rl0:dsl3
...

and the PPPoE spec (RFC2516) says this should work as long as each
DSL line has a different 'service name' (tag 0x101 in the packet).

The problem is, my provider does not provide specific service names,
but it will accept anything i supply. So when i run the three ppp instances,
they will all match, and the code in ng_pppoe.c will happily take the
first reply as good.

The only approach left is then implement some form of MAC filtering,
e.g. overloading the 'service name' to specify the mac address of the
modem i am interested in.
There is a couple of ways to implement this, one is patching the
receive path (ng_pppoe_rcvdata(), case PADO_CODE) to filter replies
based on the source mac address, and the other one is to patch
the code transmitting the PADI packet to replace the broadcast
dst address with the unicast MAC taken from the "service name".

Any better ideas ?

hello luigi,

have you considered pado's ac-name tag return? according to rfc2516 section 5.2... the pado packet MUST contain one ac-name tag containing the access concentrator's name...

fooler.

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • How on earth do I configure Now broadband (PPPoE) with Aiport Express
    ... THESE ARE THE INSTRUCTIONS FOR CONNECTING WHEN PLUGGING IN THE ETHERNET ... CABLE TO YOUR MAC: ... Check the "Connect using PPPoE box, ...
    (uk.comp.sys.mac)
  • Ethernet config for net access query
    ... get through to the 'net from another Mac connected to it via Ethernet, ... But I need to configure PPPoE first. ... Ethernet connection between them. ...
    (uk.comp.sys.mac)
  • Re: mac os 9 dsl freenet
    ... Mac kann dann via Ethernet ins Web ohne jenes PPPoE dazu. ... Prev by Date: ... Next by Date: ...
    (de.comp.sys.mac.internet)
  • Re: PPPoE configuration
    ... >post the requested show interface output along with debug ppoe packet ... >Is the same cable used to connect DSL modem to the the Netgear ... we don't have Billy-OS but a Mac doing the PPPoE stuff does also get ...
    (comp.dcom.sys.cisco)
  • Re: How to make ipfw consider MAC-IP match?
    ... >> I have a table with ethernet (MAC) addresses matching IPs. ... > of thing you need to use 802.1x authentication or maybe even PPPoE. ... means i will need to give up DHCP, because PPP will serve IPs, not DHCP. ...
    (freebsd-stable)