LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-16-2005, 12:42 AM   #1
riffe
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
vlan and dhcp


i want to get some help..
i want to setup several vlans using cisco switches and i want to use dhcp...
how can each vlan get ip from my linux dhcp server...
do i need to setup 1 dhcp for 1 vlan?
 
Old 12-16-2005, 05:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
you've not really provided much detail about your topology but a DHCP server will need to be accessible on each subnet. If you only have a single DHCP server and are using cisco boxes to route and switch your network, you can use the "ip helper-address" command on a device accessible on each vlan to relay requests to the single DHCP server. As with standard DHCP server configs you'd then just declare as many subnets as you need, and naturally a request proxied by a cisco box will be given the right subnet as it knows what subnet the cisco device came from.
 
Old 12-20-2005, 01:17 AM   #3
riffe
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
well thanks a lot... can i install vlan in linux and make vlans on it... i think i must use vconfig but i think i'm having problem on this. do i have to recompile my kernel?
 
Old 11-17-2007, 11:08 PM   #4
hafeezisbad
Member
 
Registered: Nov 2007
Posts: 32

Rep: Reputation: 0
hi i am memeber of linux,org

i am a linux user but i am facing a problem to setup a dhcp server on fedora for a vlan setup with layer 3 switch

my vlan 10 shuld be 192.168.10.x series ip
vlan 20 shuld be 192.168.20.x

vlan30 shuld be 192.168.30.x

its so easy with windows creating scopes but in linux , the service fails when i enter subnet

ddns-update-style interim;
dynamic-bootp-lease-length 86400;
max-lease-time 604800;
default-lease-time 604800;

subnet 192.168.10.0 netmask 255.255.255.0 {
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option nis-domain "xyz.net";
option domain-name "xyz.net";
option domain-name-servers 192.168.10.2;
option time-offset -18000;
authoritative;
option ntp-servers 192.168.10.2;
option netbios-name-servers 192.168.10.2;
option netbios-node-type 2;
range 192.168.10.50 192.168.10.220;
}

it works and when i try to create other subnets or scopes below ,, it fails to restart , i checked /var/log/messages ,, its says dhcp exited multiple subnet not supported i am using fedora 7

ddns-update-style interim;
dynamic-bootp-lease-length 86400;
max-lease-time 604800;
default-lease-time 604800;

subnet 192.168.10.0 netmask 255.255.255.0 {
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option nis-domain "xyz.net";
option domain-name "xyz.net";
option domain-name-servers 192.168.10.2;
option time-offset -18000;
authoritative;
option ntp-servers 192.168.10.2;
option netbios-name-servers 192.168.10.2;
option netbios-node-type 2;
range 192.168.10.50 192.168.10.220;
}
subnet 192.168.20.0 netmask 255.255.255.0 {
option routers 192.168.20.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option nis-domain "xyz.net";
option domain-name "xyz.net";
option domain-name-servers 192.168.10.2;
option time-offset -18000;
authoritative;
option ntp-servers 192.168.10.2;
option netbios-name-servers 192.168.10.2;
option netbios-node-type 2;
range 192.168.20.50 192.168.20.220;
}

plz help me with this problem , is linux not a good opeating system for dhcp server , when compared to windows2003

i am fan of linux but this is dissapointing me now ,

thanks in advance , try to suggest some solution
 
Old 11-18-2007, 07:07 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
please don't drag up dead threads. start a new one if you have a question of your own.
 
  


Reply


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
DHCP Sever Different VLAN srikanthrao_d Linux - Networking 9 12-01-2018 08:03 PM
VLAN Question KevinGuy Linux - Networking 8 08-23-2005 07:35 AM
VLAN Routing teamchachi Linux - Networking 0 06-14-2005 09:54 AM
Vlan not sepparate collen Linux - Networking 0 06-08-2004 07:22 AM
Vlan Markvw Linux - Networking 1 09-29-2003 08:33 AM

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

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