Question Locked

Subnetting question

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have run out of addresses on our 10.0.0.0 class A subnet due to wireless connections in DHCP.

Without using an additional router how can we add the 10.0.1.0 network for wireless connections only?

Why cant I setup a server with a static address of 10.0.1.2 with our default 10.0.0.1 gateway and use this as a DHCP server for the 10.0.1.0 network? The wireless clients really only need internet access, which would be provided via the gateway listing.

They would need to access printers on the 10.0.0.0 network. Since both networks would be on the same 24bit subnet mask, I do not understand why this will not work.

Again, we would prefer not to use additional routers for this configuration.

Thanks for any help!

7 replies

by churdoo

I believe you meant class C network rather than class A, because down further in your post, you stated 24-bit mask, so I'm answering your question based on a 24-bit mask, class C network. Yes the 10.0.0.0 network was originally a class A network, however when you specify 24-bit mask, you're now talking class C.

10.0.0.0/24 is a network ranging from 10.0.0.1 - 10.0.0.254 with a broadcast of 10.0.0.255.
10.0.1.0/24 is a network ranging from 10.0.1.1 - 10.0.1.254 with a broadcast of 10.0.1.255.
The router or default gateway address for a given network MUST lie within the network; this is why you can't have a server 10.0.1.2 (24-bit mask) with a default gateway of 10.0.0.1 as the default gateway is outside of its network.

Now to your original question about how to increase your network (hosts) without adding routers? The answer is, DECREASE the number of bits in the subnet mask.

If you convert your network to, say a 22-bit subnet mask (255.255.252.0), then 10.0.0.0/22 has a range of 10.0.0.1 - 10.0.3.254 and now you have plenty of room for your wireless clients without adding routers.

Reference http://www.subnet-calculator.com

by ted

Sorry, I was in a rush and obviously meant class C! sorry for the confusion.

Your answer is great and I want to run with it. Since we are running a large live network I have to be very careful with any reconfigs.

To implement this new mask, would you recommend the following?

All servers are Win2003 Stnd R2

Update Subnet in ADSS on all DC's (to save ntfrs time)

Update static address stack on each server

Edit existing /24 listings on our Firewall

I shouldnt have to touch DNS servers

I also shouldnt have to touch DHCP servers

Then I will add DHCP to another server with maybe.. 10.0.2.0 network and point all wireless access points to this network

One of our static servers hosts our website, which basically can never go down. This is our main worry. Where/when would we lose connectivity during this reconfiguration of our big network?

Thanks again for the help!

by deity_chooch

You ran out of addresses on a class A subnet? Perhaps you mean class C (a class C subnet has only 253 (255^1 - 2) usable addresses whereas a class A subnet has 16,581,373 (255^3 - 2)).

As far as your questions regarding the proper subnets, it really depends on what kind of router you have. If you have a small, home-use router, you will probably have to change the subnet (perhaps to a class B) to include more addresses, but all addresses will still use the same DHCP server regardless of which interface the clients connect. If you have a higher-end router you can program the router to have different IP addresses and subnets. All you'd have to do is add a second subnet on to your wireless interface so the connected users would use an aliased IP address on the router as the DHCP server (assuming that your router _is_ your DHCP server). If your router doesn't serve IP addresses too, you'll have to include a DHCP server on the same subnet as the wireless clients.

by nimmo

If your going to subnet a network you have to route between them, they are seperate broadcast domains.

Here is a tutorial I found explaining subnetting, it deals with classful subnetting which means that the subnet mask isnt sent with routing updates.

Therefore each subnet must have the same subnet mask, whereas classless does send the subnet mask with routing updates.

http://www.swcp.com/~jgentry/topo/unit3.htm

If you like I can email a tutorial I have written on calculating network IP addresses.

In short you have to route between different subnets.

I just re-read your post and relised you said \24 which cant be right for a class A.

by dumphrey

but if you have a cisco or such, you can use your existing router and simply add a nother network with static entries between them. At this point, your networks will not know the other is not local, except for division of broadcast.

"They would need to access printers on the 10.0.0.0 network. Since both networks would be on the same 24bit subnet mask, I do not understand why this will not work."

They will not be on the same 24 bit bask. They are on the same 16 bit mask though, but you are using them as class C or 24 bit masks. 10.0.Networkbit.hostbits.

As for changing everything to class B, I would only do this if your router can handle route agregation, so that it would know to send a 10.0.0.0/24 address to its 10.0.0.0/16 route. I would have changed the router's table first, then changed the dhcp and static IPs.

All in all, you are better off puttting in a second router, or jumping off another ethernet iface on your existing router. Less chance for problems, and it keeps a seperate network for wireless for traffic monitoring and accounting.

by jdclyde

You need to have a port for each network added, or use subinterfaces to fake it.

This sounds more like VLANs, as your working local, correct?

This discussion is closed to new replies.