Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-24-2006, 03:51 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
VLAN configuration - native VLAN and setting PVID

I have a Linux box with 3 ethernet interfaces, eth0, eth1 and eth2.
Am planning to convert the box into a VLAN switch. Let eth1 and eth2 are configured for VLAN 1 and 2 respectively. Let eth0 be a trunk carrying both VLAN frames. Am going for the following configuration.

$vconfig add eth1 1
$vconfig add eth2 2
$vconfig add eth0 1
$vconfig add eth0 2
$brctl addbr br1
$brctl addif br1 eth0.1
$brctl addif br1 eth1.1
$brctl addbr br2
$brctl addif br2 eth0.2
$brctl addif br2 eth1.2

The basic idea of the above configuration is based on the fact that each VLAN can be simulated with individual bridges per VLAN. The above configuration works fine as expected.
eth0 acts as trunk carrying frames with both VLAN IDs(1 and 2). This trunk can be connected to a similar switch on the other end to span the VLAN segmentation across switches.

Now, I wish to make VLAN 1 a native VLAN for VLAN unaware systems connecting to the switch. So, the trunk will carry both tagged frames as well as untagged frames. how to configure such a setup? Also, please give me an idea of how to implement PVIDs?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlan >G< Linux - Networking 3 06-29-2006 01:03 AM
vlan praveenchebolu Linux - Networking 1 03-25-2006 04:41 AM
Vlan switching fr_laz Linux - Networking 1 07-08-2005 11:49 PM
Setting a VLAN a dynamic IP address? cjs500 Linux - Networking 0 04-25-2005 12:26 AM
Vlan Markvw Linux - Networking 1 09-29-2003 09:33 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration