On Sun, Apr 19, 2009 at 01:45:34PM -0500, Mike Mestnik wrote: > On Sun, Apr 19, 2009 at 10:11 AM, Marc Haber > <[email protected]> wrote: > > On Wed, Feb 11, 2009 at 08:50:52PM +0100, Vincent Bernat wrote: > >> The following configuration does not work: > >> iface myvlan inet manual > >> encapsulation dot1q > >> master eth0 > >> vlan-id 45 > >> > >> I get: > >> error: Network is down > >> > >> A work around is to add: > >> iface eth0 inet manual > >> > >> I have attached a patch for this issue. > > > > I do not think that it's a good idea - from a security point of view - > > to automatically take up an interface just because a VLAN is > > configured. I will think about adding an option like "init_master" to > > allow this to happen, but I do not think that it's a good idea to do > > this by default. > > > I do believe this functionality belongs to the kernel, so the kernel > can do this securely. From user space simply bringing up an interface > could lead to an IP being bound to that interface. A inter-kernel API > could allow the interface to receive packets w/o it's configuration > being applied, while at the same time keeping the configuration intact > so the eth0 interface can be uped from userspace is requested.
And what could this package do here? > Another thing, why are you using tags on every frame? It seams to me > that it would be smart to try and save bits by choosing one vlan to be > un-tagged being suspected of having more frames then any of the > others. You are not seriously thinking about saving 4 bytes per frame. If you want to have a VLAN untagged, just configure it on the master device. Additionally, any host that can send frames to a VLAN that is untagged on any trunk port, it can send frames to any VLAN that is tagged on that port by forging VLAN tags. I do not understand you reasoning here. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

