Jump to content

VLSM subnetting question

Jim79

Hello, I hope you guys could help me out on a subnetting question I need to work through, Im really confused with VLSM and subnetting

 

How do I use VLSM to split 172.16.0.0/24 into 4 subnets? I need an IP address and subnet mask for router interfaces and sub interfaces (2 VLANs)

Appreciate any help on this, 

Thanks, 

Jim. 

 

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, Jim79 said:

Hello, I hope you guys could help me out on a subnetting question I need to work through, Im really confused with VLSM and subnetting

 

How do I use VLSM to split 172.16.0.0/24 into 4 subnets? I need an IP address and subnet mask for router interfaces and sub interfaces (2 VLANs)

Appreciate any help on this, 

Thanks, 

Jim. 

 

How many hosts do you need per subnet?

Internet Connection

My Rig: AMD Ryzen 9 3900X @ 4.3Ghz | Asus Prime X470-Pro | Corsair Vengeance RGB Pro 32 GB (4 x 8GB) DDR-4 3000Mhz OC'd @ 3400Mhz 16-20-20-38 |

EVGA RTX 2070 8GB XC Gaming OC @ 2145Mhz Boosted/ 1925Mhz Memory | WD SN750 500GB M.2 NVME | Gigabye 240GB SSD | 
XSPC EX 360mm | Corsair XC7 RGB CPU WB | EK-Vector RTX 2080 | Alphacool Eisbecher D5 150mm Plexi | XSPC Fittings | XSPC FLX Clear 7/16" ID, 5/8" OD |
Corsair LL120 x6 | Corsair RM750x White 2018 | Corsair Commander Pro | Corsair Obsidian 500D RGB SE | Corsair RGB LED Lighting PRO Expansion |
Corsair Strafe RGB MK.2 | Corsair Ironclaw RGB Wireless 18,000DPI | Acer 32" 4K 60Hz HDR600 Cert. ET322QK CBMIIPZX |

Passmark Score

3dmark Score

PC Parts Picker Link to Build

Network

Netgear LBR20 LTE Router | Verizon Unlimited Prepaid Hotspot Plan

HP 2530-48G-PoEP Switch

Rasberry Pi 4 Running Pihole

Linksys Velop 3 Mesh Wifi AP's

 

Link to comment
Share on other sites

Link to post
Share on other sites

25 minutes ago, Jim79 said:

Hello, I hope you guys could help me out on a subnetting question I need to work through, Im really confused with VLSM and subnetting

 

How do I use VLSM to split 172.16.0.0/24 into 4 subnets? I need an IP address and subnet mask for router interfaces and sub interfaces (2 VLANs)

Appreciate any help on this, 

Thanks, 

Jim. 

 

So say you want to split your whole 172.16.0.0/24 evenly and you don't care how many host are on each Subnet it would look like this

                                                                                                               172.168.x.x

Subnet Name  # of Host    Address          Mask    Dec Mask                Assignable Range         Broadcast Address

           A                 62       172.16.0.0         /26      255.255.255.192      x.x.0.1 - x.x.0.62            172.16.0.63

           B                62        172.16.0.64      /26      255.255.255.192      x.x.0.65 - x.x.0.126         172.16.0.127

          C                 62        172.16.0.128    /26      255.255.255.192     x.x.0.129 - x.x.0.190        172.16.0.191

          D                 62        172.16.0.193    /26      255.255.255.192     x.x.0.193 - x.x.0.254         172.16.0.255

Internet Connection

My Rig: AMD Ryzen 9 3900X @ 4.3Ghz | Asus Prime X470-Pro | Corsair Vengeance RGB Pro 32 GB (4 x 8GB) DDR-4 3000Mhz OC'd @ 3400Mhz 16-20-20-38 |

EVGA RTX 2070 8GB XC Gaming OC @ 2145Mhz Boosted/ 1925Mhz Memory | WD SN750 500GB M.2 NVME | Gigabye 240GB SSD | 
XSPC EX 360mm | Corsair XC7 RGB CPU WB | EK-Vector RTX 2080 | Alphacool Eisbecher D5 150mm Plexi | XSPC Fittings | XSPC FLX Clear 7/16" ID, 5/8" OD |
Corsair LL120 x6 | Corsair RM750x White 2018 | Corsair Commander Pro | Corsair Obsidian 500D RGB SE | Corsair RGB LED Lighting PRO Expansion |
Corsair Strafe RGB MK.2 | Corsair Ironclaw RGB Wireless 18,000DPI | Acer 32" 4K 60Hz HDR600 Cert. ET322QK CBMIIPZX |

Passmark Score

3dmark Score

PC Parts Picker Link to Build

Network

Netgear LBR20 LTE Router | Verizon Unlimited Prepaid Hotspot Plan

HP 2530-48G-PoEP Switch

Rasberry Pi 4 Running Pihole

Linksys Velop 3 Mesh Wifi AP's

 

Link to comment
Share on other sites

Link to post
Share on other sites

Hi ddennis002 , thanks for replying. 

 

Its not specified how many host are required per subnet if that makes sense. 

 

Looking at your response, if I need to assign IP address to hosts on a router what address could I use, do I take then form the 

assignable range? 

 

Thanks 

Jim 

Link to comment
Share on other sites

Link to post
Share on other sites

10 minutes ago, Jim79 said:

Hi ddennis002 , thanks for replying. 

 

Its not specified how many host are required per subnet if that makes sense. 

 

Looking at your response, if I need to assign IP address to hosts on a router what address could I use, do I take then form the 

assignable range? 

 

Thanks 

Jim 

Indeed, use one from the range, just do not use the broadcast address.

 

Great answer btw!

System/Server Administrator - Networking - Storage - Virtualization - Scripting - Applications

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, Jim79 said:

if I need to assign IP address to hosts on a router what address could I use, do I take then form the 

assignable range? 

Correct! so you can use any address in the assignable rage for your Router, PCs, ect. Usually when I do multiple subnets I use a /16 subnet and leave space in between and leave gaps to increase the number of hosts over time when needed. This helps in a lot of ways such as

improve network performance and speed.

Reduces network congestion.

Helps with network security.

Control over network growth.

Easier administration.

Internet Connection

My Rig: AMD Ryzen 9 3900X @ 4.3Ghz | Asus Prime X470-Pro | Corsair Vengeance RGB Pro 32 GB (4 x 8GB) DDR-4 3000Mhz OC'd @ 3400Mhz 16-20-20-38 |

EVGA RTX 2070 8GB XC Gaming OC @ 2145Mhz Boosted/ 1925Mhz Memory | WD SN750 500GB M.2 NVME | Gigabye 240GB SSD | 
XSPC EX 360mm | Corsair XC7 RGB CPU WB | EK-Vector RTX 2080 | Alphacool Eisbecher D5 150mm Plexi | XSPC Fittings | XSPC FLX Clear 7/16" ID, 5/8" OD |
Corsair LL120 x6 | Corsair RM750x White 2018 | Corsair Commander Pro | Corsair Obsidian 500D RGB SE | Corsair RGB LED Lighting PRO Expansion |
Corsair Strafe RGB MK.2 | Corsair Ironclaw RGB Wireless 18,000DPI | Acer 32" 4K 60Hz HDR600 Cert. ET322QK CBMIIPZX |

Passmark Score

3dmark Score

PC Parts Picker Link to Build

Network

Netgear LBR20 LTE Router | Verizon Unlimited Prepaid Hotspot Plan

HP 2530-48G-PoEP Switch

Rasberry Pi 4 Running Pihole

Linksys Velop 3 Mesh Wifi AP's

 

Link to comment
Share on other sites

Link to post
Share on other sites

@Jim79

 

To clear up how he got the 4 subnets.

 

So remember 2^n. Its everwhere in subnetting and very important from number of networks to number of host.  So lets take your example 172.16.0.0/24. That is 24 subnet bits and 8 host bits. Look at it this way before even looking at the network.

 

11111111.1111111.11111111.xxxxxxxx

 

They want you to split it into 4 networks, how many bits does it take to get 4? Remember the formula. 2^2 = 4. To split that address all you need to do is steal 2 host bits.

 

11111111.1111111.11111111.00xxxxxx

 

So now what you are left with is a /26. Out of those two bits you stole you can make 4 networks. 0000000, 01000000, 1000000, 11000000 which in decimal comes out to 0, 64, 128, 192

 

Now just slap on what ever network you like or were given and boom. 172.16.0.0, 172.16.0.64, 172.16.0.128, 172.16.0.192.

 

I hope it clears it up a tad. Subnetting is much simipler than it appears. Just remember that you are just taking a subnet and breaking it down. Always look at it at a high level, dont get caught up with the actual network until the very end. Just take the subnet say a /21 and say "okay to break it into 8 networks, 2^n=8...3 bits need to be stolen from host so now I have 8 /24s. Then you can just take you original network and add the subnet mask for each.

Link to comment
Share on other sites

Link to post
Share on other sites

Folks, really appreciate all of your reply's, its really helped me out. 

 

I may have a some follow up Q's but for now - thank you!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×