LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2008, 04:59 AM   #1
ThanhDuongCong
LQ Newbie
 
Registered: Nov 2008
Posts: 27

Rep: Reputation: 15
I would like to ask about VLANs


Hi Mate ,
I'm using switch cisco layer3 3560 to configure VLANs and routing few VLANs for my network and using firewall machines CentOS 5.0 to configure IPTABLES and OPENSWAN .things are going well now .But I'd like to ask you , can I configure VLANs like cisco layer3 to replace my switch cisco ?if Linux can configure VLANs , please show me which's packages can be avaiable ? or show me the documents about VLANs on CentOS
Many Thanks
 
Old 11-25-2008, 04:10 PM   #2
krock923
Member
 
Registered: Jul 2004
Posts: 171

Rep: Reputation: 30
Hi. I've configured vlans on CentOS using the vconfig program. If I recall correctly, 802.1q support is already in the CentOS kernel.

Here's a document that looks similar to what I've done in the past to get this working: http://www.linuxjournal.com/article/7268

Just make sure you use 'switchport trunk encapsulation dot1q' on your switch. Let me know if you need any more help with this.
 
Old 11-25-2008, 07:52 PM   #3
ThanhDuongCong
LQ Newbie
 
Registered: Nov 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you for your assistance ,I've just read your article but it's only using CENTOS to configure trunk with switch layer 2 , I mean I want to devide VLAN by CENTOS to replace switch (for example I don't have cisco switch).
 
Old 11-25-2008, 08:24 PM   #4
krock923
Member
 
Registered: Jul 2004
Posts: 171

Rep: Reputation: 30
Ah, so you want your machine to become the switch. We tried something like that once, but it ended up not working out so well. What you can do is bond virtual interfaces to external ones. So, say you have eth0.3002, you can bond this to say eth2 and it'll act like a bridge. The program to do that is called ifenslave. I haven't used it in some time, however.
 
  


Reply

Tags
vconfig, vlan



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
NIC for vlans Berhanie Linux - Networking 3 09-22-2008 09:55 AM
bonding and vlans. Bonding a vlan interface vs applying vlans to a bond interface JasonCzerak Linux - Networking 0 09-11-2008 09:59 AM
Broadcast over Vlans cristian123 Linux - Networking 6 08-30-2007 03:07 PM
VLANS communications metallica1973 Linux - Networking 6 09-10-2006 04:17 PM
Switches and VLANS metallica1973 Linux - Networking 2 04-26-2006 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:09 AM.

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