linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* VLAN subinterfaces
@ 2006-04-23 16:15 Marco d'Itri
  2006-04-28 20:15 ` Marco d'Itri
  2006-04-28 23:44 ` Bryan Kadzban
  0 siblings, 2 replies; 3+ messages in thread
From: Marco d'Itri @ 2006-04-23 16:15 UTC (permalink / raw)
  To: linux-hotplug

I wrote a script to handle persistent rules for network interfaces, but
I noticed that VLAN subinterfaces have the same MAC address of the
parent interface and I could not find in sysfs anything evident which I
could use in a rule. The only difference I noticed is that the VLAN
subinterfaces lack the device and drivers symlinks.
This problem affects anybody using VLANs, is there a good solution?

-- 
ciao,
Marco


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: VLAN subinterfaces
  2006-04-23 16:15 VLAN subinterfaces Marco d'Itri
@ 2006-04-28 20:15 ` Marco d'Itri
  2006-04-28 23:44 ` Bryan Kadzban
  1 sibling, 0 replies; 3+ messages in thread
From: Marco d'Itri @ 2006-04-28 20:15 UTC (permalink / raw)
  To: linux-hotplug

On Apr 23, Marco d'Itri <md@Linux.IT> wrote:

> I wrote a script to handle persistent rules for network interfaces, but
> I noticed that VLAN subinterfaces have the same MAC address of the
> parent interface and I could not find in sysfs anything evident which I
> could use in a rule. The only difference I noticed is that the VLAN
> subinterfaces lack the device and drivers symlinks.
> This problem affects anybody using VLANs, is there a good solution?
Another user (Debian bug #365248) reported that this applies to bridges
too. Is adding DRIVER="?*" to the rules the correct workaround?

-- 
ciao,
Marco


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: VLAN subinterfaces
  2006-04-23 16:15 VLAN subinterfaces Marco d'Itri
  2006-04-28 20:15 ` Marco d'Itri
@ 2006-04-28 23:44 ` Bryan Kadzban
  1 sibling, 0 replies; 3+ messages in thread
From: Bryan Kadzban @ 2006-04-28 23:44 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]

Marco d'Itri wrote:
> On Apr 23, Marco d'Itri <md@Linux.IT> wrote:
> 
>> I wrote a script to handle persistent rules for network interfaces,
>> but I noticed that VLAN subinterfaces have the same MAC address of
>> the parent interface and I could not find in sysfs anything evident
>> which I could use in a rule. The only difference I noticed is that
>> the VLAN subinterfaces lack the device and drivers symlinks. This
>> problem affects anybody using VLANs, is there a good solution?
> 
> Another user (Debian bug #365248) reported that this applies to
> bridges too. Is adding DRIVER=="?*" to the rules the correct
> workaround?
> 

What I do in my (modified Debian testing) firewall at work is rename the
base device, and let the kernel handle the VLAN naming.

So I have a rule to rename the interface based on its MAC address, but
also based on KERNEL=="eth*".  The "base" interface gets created first,
then renamed to "intif" or "extif" or whatever.  Then the VLANs get
created, but the sub-interface's name is already "intif.1" or "extif.16"
or whatever, so it doesn't match the KERNEL=="eth*" part of the rule.

I'm not sure if checking KERNEL on a network device is correct, though,
or whether something similar would be possible in either of these cases,
but it might be worth considering.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-28 23:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-23 16:15 VLAN subinterfaces Marco d'Itri
2006-04-28 20:15 ` Marco d'Itri
2006-04-28 23:44 ` Bryan Kadzban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).