Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2005 18:48:46 +0200
From:      Ragnar Lonn <raglon@packetfront.com>
To:        freebsd-net@freebsd.org
Subject:   PPPoE on virtual interfaces inside vimages?
Message-ID:  <42B1AD6E.8010600@packetfront.com>
In-Reply-To: <18857.130.76.32.16.1118934349.squirrel@www.frob.org>
References:  <20050615114556.6df96e8c.lists@yazzy.org>	<1118925438.91936.2.camel@realtime.exit.com>	<20050616144707.18bfa000.lists@yazzy.org> <18857.130.76.32.16.1118934349.squirrel@www.frob.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Yet another complex question regarding vimage/netgraph :-)

I'm trying to use the ppp program to do PPPoE on an ngeth interface 
without much
luck. I'm using the following Netgraph tree setup:

    upper---link0
[fxp0]          [ng_bridge] link2---ds [ng_vlan] vlan101--- ether 
[ngeth0@vimage1]
    lower---link1

The physical ethernet interface fxp0 has setautosrc=0 configured and the 
ngeth interface
has its own unique MAC address set. Packets sent out are thus tagged 
with VLAN id
101 and gets a certain MAC address. All of this behaviour is a necessity 
for the
application we run (client simulations - The VLAN node actually has 
hundreds of
upstream VLAN hooks connected to hundreds of ngeth interfaces in 
hundreds of
vimages).

Now, the ppp program uses Netgraph to connect to the "orphan" hook of a 
real
ethernet interface, so when I try to run it in a vimage on the ngeth0 
interface there it
complains that the interface type is wrong (I have patched the kernel so 
it is possible
to create ng_sockets inside any vimage so that's not a problem at 
least). It wants
an ng_ether interface, with an "orphans" hook.

Is it possible to have ppp connect to the ng_eiface (ngeth) interface 
instead of
a real physical interface, and how should I do that?  Or if not, what 
would be
the best way to be able to do PPPoE inside a vimage, while simultaneously
forcing VLAN-tagging and MAC address overwriting?

Regards,

  /Ragnar










Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42B1AD6E.8010600>