Can I subnet a subnet?

Can I subnet a subnet?

Post by Brian Rank » Mon, 12 May 1997 04:00:00



I have a classC address broken down into 6 subnets (netmask 255.255.255.224).
I would like to take one of those subnets (Network x.x.x.192) and break
it down into several smaller subnets, of 7-10 addresses per subnet.  
Is this supported by Linux?  If so, any pointers or specific examples on how
to do this would be greatly appreciated.  NOTE: This info isn't in the
subnet HOWTO.

Sincerely,

Brian Rankin

 
 
 

Can I subnet a subnet?

Post by Rob van der Putte » Mon, 12 May 1997 04:00:00


Hi there


> I would like to take one of those subnets (Network x.x.x.192) and break
> it down into several smaller subnets, of 7-10 addresses per subnet.

This would be either 8 or 16 addresses per subnet,
which is 6 or 14 host ip addresses.

Quote:> Is this supported by Linux?

Yes

Quote:> If so, any pointers or specific examples on how
> to do this would be greatly appreciated.

I have got some ascii art in http://www.dsl.nl/~rob/test/nettree.htm
The (sub)network address + 1 is the 1st host ip nr in the (sub)network.
The next (sub)network address - 2 is the last ip nr in the (sub)network.
The next (sub)network address -1 is the broadcast address of the
(sub)network.

Quote:> NOTE: This info isn't in the subnet HOWTO.

Subnetting a subnet is just like subnetting a net.

Regards,
Rob

 
 
 

Can I subnet a subnet?

Post by Bob » Fri, 16 May 1997 04:00:00



> Date: Sun, 11 May 1997 00:20:39 GMT

> Newsgroups: comp.os.linux.networking
> Subject: Can I subnet a subnet?

> I have a classC address broken down into 6 subnets (netmask 255.255.255.224).

what are you doing with the other 2 subnets ?

Quote:> I would like to take one of those subnets (Network x.x.x.192) and break
> it down into several smaller subnets, of 7-10 addresses per subnet.  
> Is this supported by Linux?  If so, any pointers or specific examples on how
> to do this would be greatly appreciated.  NOTE: This info isn't in the
> subnet HOWTO.

> Sincerely,

> Brian Rankin

Try looking at  http://www.linuxhq.com/HOWTO/mini/IP_Subnetworking

This mini-howto explains everything that you ask.

There is a specific example in the howto as to what you are asking.

bob

                              |  http://www.norcom.net.au
Yes, I am on the interthingy  |  If it aint broke, fix it, then it will be
--------------------------------------------------------------------------
 Bulk/unsoliced commercial e-mail sent to me will incur a $500.00 storage
 and archival charge. By sending e-mail the sender accepts these terms
 and conditions.
--------------------------------------------------------------------------

 
 
 

1. 2 ip adresses, different subnet, ping reply from ip in other subnet ?

Hi,

I have a linux server with 2 nic's both in a separate subnet (172.21.3.x
and 192.168.10.x).

the 192.168.10.x is connected to another server via a crossed utp cable.
the 172.21.3 is our local lan.

if i ping the 192.168.10.x interface on the server from my local
workstation (which is in the 172.21.3.x range), i get an immediate reply.

How does this happen ? does the linux server hear the request for
192.168.10.x on his 172.21.3.x interface and thinks, "hey, that's my other
interface, i'll reply" ?

in the routing table, there is no reference to the 192.168.10.x subnet,
and our default gateway also doesn't know about this subnet.

if my assumptions are correct, is it possible to stop the linux server
from responding to icmp queries not directed to its correct (same subnet)
interface ?

I don't use iptables (yet). i noticed the same behaviour with the
/proc/sys/net/ipv4/ip_forward parameter either set to 0 or 1.

Thanks,

Tom.

2. Linux NFS Compatability With SVR[34]

3. subnet to subnet routing question

4. DNS/WINS help

5. subnet to subnet isakmpd freeswan

6. sda + LILO + email

7. Subnet a subnet?

8. Linux -> OpenBSD crosscompiler

9. Reserved addresses in subnet & Number of subnets

10. Help: machines on subnet can't ping the machines outside subnet

11. firewall/router - subnet/router - subnet

12. Linking two subnets within the same Class C subnet

13. how to connect a sun/solaris 2.x subnet with an HP-UX subnet?