LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2007, 12:14 AM   #1
hafeezisbad
Member
 
Registered: Nov 2007
Posts: 32

Rep: Reputation: 0
dhcp for vlan setup fails


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, 04:54 PM   #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
you're configuring isc dhcp, which is *VASTLY* more common globally than windows based dns services, not even nearly a comparison. also note this has nothing to do with linux, but software which runs on just about ALL unix variants and windows to boot.... it's not fair to assume this is linux's fault, esp if you may have made a mistake, which you have.

So, your config is clearly wrong. the broadcast address for 192.168.20.0/24 is listed as 192.168.10.255, which doesn't make sense.
 
Old 11-18-2007, 05:04 PM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
This may help;
http://www.openfree.org/forums/showthread.php?t=524
 
Old 11-30-2007, 03:51 AM   #4
hafeezisbad
Member
 
Registered: Nov 2007
Posts: 32

Original Poster
Rep: Reputation: 0
if its wrong ,, i need correct example of dhcp.conf and settings

if its wrong ,, i need correct example of dhcp.conf and settings
just saying wrong would not help me , i request u sir to provide me a sample which works for vlan clients to get ip address from my server





Quote:
Originally Posted by acid_kewpie View Post
you're configuring isc dhcp, which is *VASTLY* more common globally than windows based dns services, not even nearly a comparison. also note this has nothing to do with linux, but software which runs on just about ALL unix variants and windows to boot.... it's not fair to assume this is linux's fault, esp if you may have made a mistake, which you have.

So, your config is clearly wrong. the broadcast address for 192.168.20.0/24 is listed as 192.168.10.255, which doesn't make sense.
 
Old 11-30-2007, 03:56 AM   #5
hafeezisbad
Member
 
Registered: Nov 2007
Posts: 32

Original Poster
Rep: Reputation: 0
the site links only describe about single network , that is 192.168.0.x , with c class subnet 255.255.255.0

thats only single subnet , i know that how to use it

i need multiple scopes of different subnet

192.168.0.x , 192.168.1.x , 192.168.3.x with all subnet as 255.255.255.0 for all machines


can some one plz help me out , in linux , i am not able to understand how to make this server work for vlan

in microsoft win 2003 its so easy , just creating scopes ,, works but in linux it never works why ?
 
Old 11-30-2007, 04:25 AM   #6
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
i've told what what *i* can see is immediately wrong, you just haven't read it...
Quote:
the broadcast address for 192.168.20.0/24 is listed as 192.168.10.255
 
0 members found this post helpful.
  


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 09:03 PM
vlan and dhcp riffe Linux - Networking 4 11-18-2007 08:07 AM
dhcp server fails for vlan setup hafeezisbad Red Hat 1 11-18-2007 04:23 AM
VLAN Setup with RHEL3 jmouzon Linux - Networking 1 08-07-2006 05:33 PM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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