Subject: FYI: Multiple PPPoE sessions on one physical interface using tap(4) and bridge(4)
To: None <tech-net@netbsd.org>
From: Nino Dehne <ndehne@gmail.com>
List: tech-net
Date: 06/28/2005 00:00:36
Hi,

I remember when I needed a way to run several (3 at that time) PPPoE
sessions on one interface. The problem is that the so-called T-DSL
accounts in Germany seem to restrict PPPoE to one session per MAC
address. I also vaguely remember is(at)netbsd.org(?) suggesting the
use of tap(4) for this.

I decided to look into this again and I succeeded. The setup is very
simple and straightforward:

ifconfig sip0 up
ifconfig bridge0 create
brconfig bridge0 add sip0 up
for i in 0 1 2
  do
    ifconfig tap${i} create up
    brconfig bridge0 add tap${i}
    ifconfig pppoe${i} create
    pppoectl -e tap${i} pppoe${i}
  done

Configure pppoe${i} as usual.

Works here[tm]

Regards,

ND