[VLAN] tagging packets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 21, 2005 at 12:43:25PM -0400, Patrice Seyed wrote:
> Hi,
> 
> I am using a 2.4.21-4 kernel so it has 8021q compiled in as a module.
> My purpose of using vlan is to tag packets with a specific vlan id,
> which are destined for particular vlans, 2258 and 20 (both set up on
> the switch), from the interface level; here being eth0:0 to go to
> vlan 20 and eth0:1 destined for vlan 2258. Is there a way to do this
> with vconfig? I don't see options for doing this in the docs. 
> 
> Also when I followed the instructions on creating a vlan at
> http://scry.wanfear.com/~greear/vlan/howto.html the command:
> 
> vconfig add eth0 2
> 
> 
> creates an interface/vlan called eth0.2 and not vlan002. (I just want
> to ask if this is expected behavior). 

You can control the interface naming scheme with vconfig too. Run
vconfig without parameters and check the set_name_type command, but
the naming scheme is only important if you have multiple VLANs with
the same id connected to different NICs in the Linux system, if you
only have one "set" of VLAN ids, any naming scheme will work.

You have the DEV_PLUS_VID_NO_PAD scheme active, which makes ethx.vid
style interfaces.

Run
vconfig add eth0 20
vconfig add eth0 2258

and the VLANs 20 and 2258 will be reachable on the respective
interfaces created.


//Peter

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux