cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

216
Views
0
Helpful
12
Replies
Beginner

Subnetting

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

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Beginner

Below should be what you are

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

VIP Advisor

Hi

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. 

:-)

12 REPLIES 12
Beginner

Below should be what you are

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

VIP Advisor

Hi

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. 

:-)

Beginner

sir when i am using this ip

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 

VIP Advisor

Hi

Hi

Could you please share the config of the vlan 10?

Beginner

yes sir

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

VIP Advisor

Hi

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. 

:-)

Beginner

Thanks you sir...

Thanks you sir...

VIP Advisor

It was a pleasure my friend,

It was a pleasure my friend,

Have a good day

:-)

Beginner

Please sir send me your mail

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

VIP Advisor

Hi,

Hi,

if you like you could attach the file here as ZIP. 

Beginner

Sir when i try to ping one

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

Highlighted
Beginner

Re: Sir when i try to ping one

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

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards