07-31-2017 12:06 PM - edited 03-08-2019 11:33 AM
Hi dears
I am weak in sub-netting so please cal calculate for me
My requirement is
Vlan10 require host 360
VLAN 20 require host 250
VLAN 30 require host 200
VLAN 40 require host 200
VLAN 50 require host 200
VLAN 60 require host 120
VLAN 70 require host 100
VLAN 80 require host 100
VLAN 90 require host 80
VLAN 100 require host 80
VLAN 110 require host 60
VLAN 120 require host 60
VLAN 130 require host 60
VLAN 140 require host 50
VLAN 150 require host 50
VLAN 160 require host 40
VLAN 170 require host 30
VLAN 180 require host 30
VLAN 190 require host 30
MY IP ADDRESS IS B CLASS
172.141.0.2 255.255.0.0
Solved! Go to Solution.
07-31-2017 12:23 PM
Below should be what you are looking for.
VLAN 10 - 172.141.0.0/23
VLAN 20 - 172.141.2.0/24
VLAN 30 - 172.141.3.0/24
VLAN 40 - 172.141.4.0/24
VLAN 50 - 172.141.5.0/24
VLAN 60 - 172.141.6.0/25
VLAN 70 - 172.141.6.128/25
VLAN 80 - 172.141.7.0/25
VLAN 90 - 172.141.7.128/25
VLAN 100 - 172.141.8.0/25
VLAN 110 - 172.141.8.128/26
VLAN 120 - 172.141.8.192/26
VLAN 130 - 172.141.9.0/26
VLAN 140 - 172.141.9.64/26
VLAN 150 - 172.141.9.128/26
VLAN 160 - 172.141.9.192/26
VLAN 170 - 172.141.10.0/27
VLAN 180 - 172.141.10.32/27
VLAN 190 - 172.141.10.64/27
07-31-2017 01:57 PM
Hi
The problem is the subnet mask: 172.141.0.1 255.255.252.0
255.255.252.0 = /22
If you are going to use a /23 it should be 255.255.254.0
A /22 is providing 1022 valid IP addresses and it involves 4 subnets in one:
172.141.0.0
172.141.1.0
172.141.2.0
172.141.3.0
So that is the reason of the overlapping, because the subnet 172.141.2.0 was included.
:-)
07-31-2017 12:23 PM
Below should be what you are looking for.
VLAN 10 - 172.141.0.0/23
VLAN 20 - 172.141.2.0/24
VLAN 30 - 172.141.3.0/24
VLAN 40 - 172.141.4.0/24
VLAN 50 - 172.141.5.0/24
VLAN 60 - 172.141.6.0/25
VLAN 70 - 172.141.6.128/25
VLAN 80 - 172.141.7.0/25
VLAN 90 - 172.141.7.128/25
VLAN 100 - 172.141.8.0/25
VLAN 110 - 172.141.8.128/26
VLAN 120 - 172.141.8.192/26
VLAN 130 - 172.141.9.0/26
VLAN 140 - 172.141.9.64/26
VLAN 150 - 172.141.9.128/26
VLAN 160 - 172.141.9.192/26
VLAN 170 - 172.141.10.0/27
VLAN 180 - 172.141.10.32/27
VLAN 190 - 172.141.10.64/27
07-31-2017 12:49 PM
Hi
The formula to get any amount of hosts is: [(2^n) - 2], the (^) represents an exponential.
Example:
[(2^12) - 2] = 4094
[(2^11) - 2] = 2046
[(2^10) - 2] = 1022
[(2^9) - 2] = 510
[(2^8) - 2] = 254
:
:
:
[(2^2) - 2] = 2
Where "n" will represent the bits (represented in zeros) subtracted from the available bits to subnetting.
Now your question is more related to implement VLSM in order to avoid wasting of IP addressing.
:-)
07-31-2017 01:44 PM
sir when i am using this ip range in different vlan then it is not working
means
suppose i given ip to vlan 10 172.141.0.1/23
after that in that switch i giving ip address for vlan 20 that 172.141.2.1/24 then it show
Switch(config-if)#ip add 172.141.2.1 255.255.255.0
% 172.141.2.0 overlaps with Vlan10
Switch(config-if)#
how can i give that ip sir
07-31-2017 01:48 PM
Hi
Could you please share the config of the vlan 10?
07-31-2017 01:51 PM
yes sir
Switch(config)#int vlan 10
Switch(config-if)#ip add 172.141.0.1 255.255.252.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
After that i try to configure vlan 20
Switch(config)#int vlan 20
Switch(config-if)#ip add 172.141.2.1 255.255.255.0
% 172.141.2.0 overlaps with Vlan10
Sir i try to configure this in one switch
07-31-2017 01:57 PM
Hi
The problem is the subnet mask: 172.141.0.1 255.255.252.0
255.255.252.0 = /22
If you are going to use a /23 it should be 255.255.254.0
A /22 is providing 1022 valid IP addresses and it involves 4 subnets in one:
172.141.0.0
172.141.1.0
172.141.2.0
172.141.3.0
So that is the reason of the overlapping, because the subnet 172.141.2.0 was included.
:-)
07-31-2017 01:59 PM
Thanks you sir...
07-31-2017 02:15 PM
It was a pleasure my friend,
Have a good day
:-)
08-01-2017 09:46 AM
Please sir send me your mail id i will send you one packet tracer file where i make a topology and i am not able to resolve so sir please
08-01-2017 10:40 AM
Hi,
if you like you could attach the file here as ZIP.
08-01-2017 11:24 AM
Sir when i try to ping one vlan to another vlan then it shows
Reply from 192.168.1.1: Destination host unreachable.
Request timed out.
Reply from 192.168.1.1: Destination host unreachable.
Reply from 192.168.1.1: Destination host unreachable.
What is the reason sir
06-04-2019 10:32 PM
Subnets: 128, Hosts per subnet: 510 thats a /23 and u would be wasting a lot of ip's but u would have room to grow network and in lab its fine mask=255.255.254.0 this way no overlap u would have 128 networks w/510 hosts for each of those 128 subnets. remember u are subnetting the class b not class c most techs dont know how to subnet the B as shown in post your case is a classic vlsm design but another post here looked right if u wanted to do that
cheers
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide