1

I am trying to allocate 256 IP addresses to Subnet1, 128 IP addresses to Subnet2 and 128 addresses to Subnet3 using the IP address 120.130.10.0/23

What I have setup in GNS3 is a router connected to 3 ethernet switches, and each of these ethernet switches have a VPC connected for testing purposes. enter image description here

What I think should be done is assign 120.130.10.1-120.130.11.2 to Subnet1, 120.130.11.3-120.130.11.130 to Subnet2 and then since there isn't 128 IP's left, I should create a new network space 120.130.12.0/24 to allocate 120.130.12.1-120.130.12.128 to Subnet3.

Now I'm assuming that what I've said above works ? (beginner network knowledge) But I run into an issue when I'm trying to apply this to GNS3 because I can't assign two subnets to 120.130.10.0/3 because I get the error "120.130.10.0 overlaps with FastEthernet0/1"

So I would like to know how to fix this problem when it comes to configuring the routers, or any other problems you can see with my logic as I'm new and any help will be appreciated

oneman
  • 111
  • 2
  • 2
    Your address space isn't big enough to do what you want. You actually need a /22. – Ron Trunk Sep 06 '16 at 03:18
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Aug 15 '17 at 02:16

2 Answers2

1

You cannot assign IP addresses to the subnets the way you describe. The number of addresses in a subnet must be a power of two, and that includes the unusable-for-hosts network and broadcast addresses. If you must have 256 hosts in one subnet, you will need to use a /23 network.

Also, you cannot have overlapping subnets configured in a router, as you have discovered.

This answer will give you the basics on how to subnet correctly. You need to convert the addresses and masks to binary to do it correctly, and you will see how it works. In binary, it becomes obvious.

Ron Maupin
  • 102,040
  • 26
  • 123
  • 202
0

You need to change the IP addressing scheme you have to suite the needs of the network more efficiently, and you cannot use over-lapping subnets this way.

As others describe, you can’t use the whole amount of addresses as one (beginning) is reserved for the subnet/network number and the last is reserved for the layer three broadcast address. (192.168.0.255/24 for example).

E.g

Network Number: 192.168.0.0/24 Broadcast Address: 192.168.0.255/24

== 254 host addressses.

Also remember that if you require a gateway then the L3 device will also require a host address as well.

I suggest you re-subnet this network taking into account how many subnets you need and how many hosts you need in each as well as taking into account future growth.

Also try using a subnet calculator like http://www.subnet-calculator.com/ if you’re struggling calculating the binaries.

Ben Lavender
  • 101
  • 2