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-19-2003, 09:21 AM   #1
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Rep: Reputation: 15
DHCP subnets


Hello,
I obtained a dhcp relay package from
http://www.dcc.unicamp.br/~ra007256/...y-0.3.1.tar.gz that compiled easily and runs on a Slackware 8.1 router between two subnets. I works fairly easily from what I can tell. I do have a problem with Windows 95 client obtaining addresses. I don't know if it is also with 98 and above because I haven't tested.

The Windows 95 client receives the correct gateway, DNS etc. but the leased address is from the wrong subnet. It seems like the it wants to retain a previous leased address in the wrong subnet.

These are protected by NAT and proxy servers and the subnets are in different buildings. Also, I need to specify the the MAC and disallow unknowns because we use a shared network.

1st subnet

subnet 172.16.0.0 netmask 255.255.224.0 {
range 172.16.5.1 172.16.5.254;
option domain-name "whs.wps";
option broadcast-address 172.16.31.255;
option subnet-mask 255.255.224.0;
option domain-name-servers 172.16.0.10,63.240.76.19,204.127.198.19;

2nd subnet

subnet 172.16.32.0 netmask 255.255.224.0 {
range 172.16.32.2 172.16.32.253;
option broadcast-address 172.16.63.255;
option domain-name-servers 172.16.0.10, 63.240.76.19, 204.127.198.19;
option domain-name "ev.wps";
group {option routers 172.16.63.254;
use-host-decl-names on;
host ha0050040ede9a {hardware ethernet 00:50:04:0e:de:9a;}#test computer on other subnet
}

What happens is the "test computer" gets an address from the 1st range of addresses and not the second, which is the subnet that it resides in. If I try to assign it a fixed-address which I believe is bootp protocol, it doesn't pass through the router.

Any suggestions why this would occur or how to fix it.
 
Old 06-19-2003, 01:02 PM   #2
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Original Poster
Rep: Reputation: 15
DHCP across routers

I get the same response using a W2K machine. The IP address is taken from the wrong subnet pool of addresses. Can't figure this one out.
 
Old 11-17-2007, 11:04 PM   #3
hafeezisbad
Member
 
Registered: Nov 2007
Posts: 32

Rep: Reputation: 0
dhcp server 192.168.10.x , 20.x ,30.x vlan using cisco or hp switch fails dhcp

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
 
  


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
One DHCP server serving 2 subnets scng Linux - Networking 3 07-12-2005 09:57 AM
help on subnets HappyGilmore Linux - Networking 12 07-07-2005 09:33 AM
DHCP assignments across two subnets otisthegbs Linux - Networking 5 04-24-2004 11:16 PM
how can i create subnets on dhcp server castify Linux - Networking 0 07-24-2003 03:13 AM
DHCP server with multiple nics and subnets hawkpaul Linux - Networking 6 12-20-2001 07:32 AM

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

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