Menu

#1154 Ethernet interfaces using 802.1q (vlan) do not validate

1.090
closed
5
2003-05-29
2003-05-29
No

According to http://www.candelatech.com/~greear/vlan.html the
linux vlan implementation can support up to 4094 VLANs per
ethernet interface.

The interfaces are in the form eth0.1, eth0.2 upto eth0.4094 ..
In order to allow these, you have to modify shorewall-lib.pl and
change the regexp in sub interfaces_validate ..

Here is a small patch to fix this..

--- shorewall-lib.pl.orig 2003-05-29 11:33:39.000000000
+0300
+++ shorewall-lib.pl 2003-05-29 11:20:27.000000000 +0300
@@ -257,7 +257,8 @@

sub interfaces_validate
{
-$in{'iface'} =~ /^[a-z]+\d*$/ || &error($text{'interfaces_eiface'});
+$in{'iface'} =~ /^[a-z]+\d?\.?\d+$/ ||
&error($text{'interfaces_eiface'});
$in{'broad_mode'} || $in{'broad'} =~ /^[0-9\.,]+$/ ||
&error($text{'interfaces_ebroad'});
return ( $in{'zone'}, $in{'iface'},

Regards,
Sotiris Tsimbonis.

Discussion

  • Sotiris Tsimbonis

    Logged In: YES
    user_id=789282

    Vlan ethernet interfaces should be allowed as valid in the network
    interfaces module as well, not only in shorewall..

    Sotiris.

     
  • Nobody/Anonymous

    Logged In: NO

    Vlan interfaces should be allowed as valid in the network configuration
    module as well, it's not only a shorewall issue.

     
  • Jamie Cameron

    Jamie Cameron - 2003-05-29

    Logged In: YES
    user_id=129364

    Thanks for the information - I didn't even know about these
    vlan interfaces!
    The shorewall and network configuration modules will support
    them in future releases ..

     
  • Jamie Cameron

    Jamie Cameron - 2003-05-29
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB