LinuxQuestions.org
Review your favorite Linux distribution.
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 08-26-2010, 03:57 PM   #1
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Rep: Reputation: 16
Netmask and multiple subnet setup


Hi. I have a dhcp3 server serving three different subnets (10.0.0.*, 10.0.1.* and 10.0.100.*). I have DHCP only working on one subnet as it should be. The other two only have static clients. Everyone gets their IP's correctly. I just need the different subnets to be able to speak. I have the dhcp server's subnet (10.0.0.*) set with a netmask of 255.224.0.0 which allows the 10.0.0.* and 10.0.1.* subnets to talk just fine. The 10.0.100.* subnet will not speak, however. I thought I had the netmask set correctly for this but maybe not. I am not a network Guru quite yet so could some of you veterans please help an aspiring admin?
 
Old 08-26-2010, 04:12 PM   #2
spokz
LQ Newbie
 
Registered: May 2008
Location: Poland
Distribution: Debian
Posts: 13

Rep: Reputation: 0
I would try 255.0.0.0 mask but not sure wheater it should work with your settings already. Maybe You have sth wrong with DHCP settings related to 10.0.100.0 subnet.
 
Old 08-26-2010, 05:39 PM   #3
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Original Poster
Rep: Reputation: 16
Thanks, but that didn't work. I will have to look through some of my other settings to see what's up. It doesn't make sense to me that the only client on that subnet can get its address but can't talk to other subnets.

Ok. Its not a subnet problem. If I manually assign the IP addresses, and routes, everyone plays nice. For some reason,the machines on that subnet are not picking up their gateway even though I have the line
Code:
option routers 10.0.0.1
in the subnet container and this line works for the other subnets. I am at a loss at the moment.

Last edited by dpeterson3; 08-26-2010 at 08:24 PM. Reason: New Info
 
Old 08-27-2010, 09:21 AM   #4
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
If they're TRULY subnets, your need a subnet mask of 255.255.255.0. The first 3 octets define the network, the last one defines the host on the network. You need a router to route between the subnets.

If you're just creating an ip scheme that's all really just in a single 10.x.x.x subnet, then the subnet mask would be 255.0.0.0 - the 10. defines the network and the last 3 octets define the host on the network. Then you will not need a router, just a switch (or a hub).
 
1 members found this post helpful.
Old 08-27-2010, 03:52 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,003

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
255.0.0.0 or 255.255.0.0 should work.


To be exact you could get the exact subnet mask by hand or calculator.

Last edited by jefro; 08-27-2010 at 03:53 PM.
 
Old 08-30-2010, 02:35 PM   #6
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Original Poster
Rep: Reputation: 16
Sorry about my slow rely. Homework comes first. This is why I am still a novice networker. I guess I just have an IP scheme setup rather than true subnets. Everything goes through the same switch. I don't think my problem is subnet related anymore. I believe it has something to do with the routers option as nothing on this subnet wants to add the gateway I push to them to the routing table like everyone else does. If I add the gateway to the routing table manually, everything works just fine. I am not sure why computers aren't doing it on their own.
 
Old 08-31-2010, 07:53 AM   #7
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
Make sure everything has a 255.0.0.0 netmask. SOMETHING thinks 10.0.0.x and 10.0.100.x are on different subnets and thus needs to be routed. If everything starts with 10.0, then theoretically 255.255.0.0 will work, (as should your original even broader 255.224.0.0) - I bet something somewhere has a 255.255.255.0 netmask, that's a 'class c' subnet, very common, and the default for a lot of setups.
 
Old 08-31-2010, 08:58 AM   #8
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Check those entries above in the dhcpd.conf file:

Quote:
subnet 192.168.1.0 netmask 255.255.255.0 {
This one belongs for the first portion of the subnet that will issue the dhcp server for the client machines: (first global parameters)
Quote:
option subnet-mask 255.255.255.0;
and you might have a different subnet mask for the second and the third subnetwork.

So this is the last part of the dhcpd.conf check this one too: (second global parameter)

Quote:
subnet 192.168.2.0 netmask 255.255.255.0 {
}
If you want to communicate between those subnets you must have the same subnet or you must insert static routes between the networks.

Anyway check the subnets you might made a mistake somewhere.

Laz.
 
  


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
How to config DHCP for multiple subnet applebees Linux - Networking 4 06-29-2010 08:11 PM
Subnet Server setup Murdock1979 Linux - Server 11 05-07-2009 03:03 PM
DHCP problems using multiple external NICs on same subnet Leffster Linux - Networking 2 11-18-2008 11:46 AM
Outside access multiple RealVNC subnet hosts? vaworx Linux - Networking 1 07-12-2006 05:38 AM
VPN Firewall with multiple subnet masks CJ_Grobler Linux - Security 1 05-26-2005 03:47 PM

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

All times are GMT -5. The time now is 02:17 AM.

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