LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2009, 04:31 PM   #1
scottgutman
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
DHCP Config for VLAN's using 1NIC and non VLAN router.


I am trying to figure out a way for DHCP to assign 1 scope to VLAN capable devices and another scope to non VLAN devices.

Why?
We are using grandstream GXP2000 Voip Phones that have a mini router built in. The phones are VLAN capable. The workstations are plugged into the mini router. The phones DHCP request is tagged and gets assigned an IP address from the phone vlan scope. The the mini router forwards untagged packets from the computer's dhcp request and receives an IP address from the computer non vlan scope.

I would like to have linux perform the inspection of tagged status and then have DHCP reply from the correct scope without the help of a VLAN Router.

Or, is it possible to delay the DCHP reply from the phone VLAN scope, so that the non VLAN scope will be assigned first for the computers, and then the phones second?

here is my setup:

CentOS5.3
eth0 main lan for computers
DHCP scope 192.168.12.0 for computers
eth0.121 Phone VLAN
DHCP scope 192.168.121.0 for phones

Now the only question is how to make sure the correct devices are assigned in the right scope.
 
Old 07-22-2009, 01:41 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
A "mini router"? Are you sure it is and not a bridge? The way a voip phone works is generally that it uses a tag for it's own traffic and then bridges the traffic for a default vlan to the "PC" port, sometimes permitting tagging of that traffic too on the LAN uplink.

You've not said anything about the switch you're using, and that's more interesting in this scenario. Normally you'd just configure a 802.1q setup on each port on the switch and something similar for your server and then just configure dhcp to listen to two different subnets. In all likelihood if your switch is actually just a bargain bin £20 job and doesn't truncate the ethernet frames then you should be able to get away with completely ignoring the vlans on the switch, as long as the dhcp server is expecting the same tagged / non-tagged traffic as the phones are dishing out by means of a proper vlan setup on the server, then that would most likely also be fine.
 
  


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
DHCP Sever Different VLAN srikanthrao_d Linux - Networking 9 12-01-2018 08:03 PM
How vlan work on dhcp finsh Linux - Server 4 03-02-2009 10:38 AM
vlan and dhcp riffe Linux - Networking 4 11-18-2007 07:07 AM
1NIC->ok, no config needed; 2NICs->no connection al all (??) minike Linux - Networking 2 02-16-2006 05:53 PM
DHCP Server for many VLAN's inaki Linux - Networking 1 08-25-2005 09:07 AM

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

All times are GMT -5. The time now is 02:56 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