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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-18-2007, 12:14 AM
|
#1
|
Member
Registered: Nov 2007
Posts: 32
Rep:
|
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
|
|
|
11-18-2007, 04:54 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
11-18-2007, 05:04 PM
|
#3
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
|
|
|
11-30-2007, 03:51 AM
|
#4
|
Member
Registered: Nov 2007
Posts: 32
Original Poster
Rep:
|
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
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.
|
|
|
|
11-30-2007, 03:56 AM
|
#5
|
Member
Registered: Nov 2007
Posts: 32
Original Poster
Rep:
|
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 ?
|
|
|
11-30-2007, 04:25 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
All times are GMT -5. The time now is 05:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|