LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-01-2002, 08:56 PM   #1
cestor
LQ Newbie
 
Registered: Jan 2002
Posts: 26

Rep: Reputation: 15
DHCP, VLANs and Linux


I would like to use a linux machine to act as a DHCP server across multiple VLANs.
Will the following work?

1. Use a Layer 3 Switch which has DHCP relay functionality built in to assign the VLANs by IP address
2. Use a normal kernel without VLAN support on a linux box that is configured with a range of virtual interfaces (e.g. eth0:1 etc) but which is plugged in to the trunking port on the switch.
3. Assign DHCP addresses accordingly per virtual interface

If this is a bad way of doing things, I would be interested in knowing why, and also if people have experience with the VLAN patch for the kernel what there view of it has been.
 
Old 06-02-2002, 05:04 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
I used the VLAN patch with 3Com superstack switches and I was unable to get it to work reliably.

This may well have been due to the fact I was using FreeSWAN at the same time. FreeSWAN is famous for its ability to break low level network protocols

Regards
 
Old 06-02-2002, 10:13 AM   #3
cestor
LQ Newbie
 
Registered: Jan 2002
Posts: 26

Original Poster
Rep: Reputation: 15
That matches what I have heard about VLAN+FreeSwan which is why I want to just use IP routing on the Linux box without it having to know anything about VLANs but not sure if it will work.

What about without FreeSwan?
 
Old 06-02-2002, 10:28 AM   #4
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
My only real reason to use the VLAN patch was to try to tidy up the cabling on the primary and secondary firewall at a company I used to work for.

As each server had 10 physical NICs, you can imagine the cabling was a little spaghetti-ish.

FreeSWAN was essential, so the VLAN patched got dropped.

Regards
 
Old 06-02-2002, 11:22 AM   #5
cestor
LQ Newbie
 
Registered: Jan 2002
Posts: 26

Original Poster
Rep: Reputation: 15
Another question:
If the kernel does not have VLAN support but I use a NIC which does and then bind multiple virtual interfaces to that card, will clients on multiple VLANs be able to all access that server?
 
Old 06-02-2002, 03:19 PM   #6
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
That depends on your VLAN implementation. VLAN tagging is simply another layer round an ethernet frame that indicates what VLAN it belongs to. The hardware should handle it transparently but, of course, YMMV.

Regards
 
  


Reply



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
Arpwatch across VLANS? TotalDefiance Linux - Software 0 09-15-2005 10:19 AM
sniffing many vlans by arpwatch starbase_947 Linux - Networking 1 04-13-2005 11:08 AM
creation of vlans Kike Linux - Networking 2 04-15-2004 02:12 AM
Connect static and dynamic DHCP with VLANs FatMike Linux - Software 0 11-12-2003 07:08 AM
Redhad Linux dropping IP packets on network with VLANs deweaver Linux - Networking 0 09-12-2003 03:28 PM

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

All times are GMT -5. The time now is 08:52 PM.

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