Set up the LAN by dividing the subnet

Split subnet is one of the useful solutions to build local network, both secure and broadcast, and save resources in allocating IP address for each workstation.

1. Planning IP address

You need to build an intranet (LAN) for an office, a small and medium-sized company with about 7 to 8 rooms, each with 30 machines. The problem is how to be effective, secure the network system, prevent possible risks, but also can save network resources.

Set up the LAN by dividing the subnet Picture 1
A LAN model.

One of the effective construction methods is planning IP addresses by dividing subnet . With this option, you will only provide a sufficient number of IP addresses for computers to use, split into multiple subnets, prevent broadcast events and if there is a problem, only locally subnet branch.

An IP address consists of 4 octets, each octet is 1 byte containing 8 bits, a total of 32 bits. The IP address will be identified in class A, B or C through the subnet mask address. With the above problem, we will use the C class. You need 30 machines, we see 25 = 32, minus 2 first and last addresses are network addresses and broadcast addresses of the network branch, you will be left 30 addresses. Thus, 1 octave has 8 bits, we will take 28 - 23 = 25, meaning you will borrow 3 more bits to divide the subnet for your network.

How to divide by a procedure is as follows:

Class C has a subnet mask of 255.255.255.0 or even written as / 24. An 8-bit octet, you borrow 3 bits, the number of borrowed bits will turn up to 1, the remaining number of bits will remain at 0.

128 64 32 16 8 4 2 1 1 1 1 0 0 0 0

0

You get 3 bits of value 1 combined: 128 + 64 + 32 = 224. Similarly, if you borrow 4 bits, the subnet mask will be 240. From there, to make it easy to remember, people on the network set a table to look up.

1 128 -128 2 192 -64 3 224 -32 4 240 -16 5 248 +8 6 252 +4 7 254 +2 8 255 +1

You only need to remember the value in the 4th bit to borrow will have the corresponding subnet mask value of 240, from which you add and subtract as above table to find the subnet mask of the other bits.

Returning to the above problem, using the C network layer and borrowing an additional 3 bits (24 + 3 = 27), you will have a 255.255.255.224 subnet mask, and each subnet branch will be divided accordingly as follows:

  1. 0. 192.168.1.0/27
  1. 1: 192.168.1.32/27
  1. 2: 192.168.1.64/27
  1. 3: 192.168.1.96/27
  1. 4: 192.168.1.128/27
  1. 5: 192.168.1.160/27
  1. 6: 192.168.1.192/27
  1. 7: 192.168.1.224/27
  1. 8: 192.168.1.254/27

Here, you should note in the 8th order number, value 224 + 32 = 256, but because C class has only 254 IP addresses, address 255 is broadcast address, so the network here is 192.168.1.254 , and room 8 you can set the IP address from 192.168.1.225/27 - 192.168.1.253/27 . Similarly, you set room number 1 to the IP address range: 192.168.1.1/27 - 192.168.1.30/2 7, which can use the address 192.168.1.1 as the default address for this room number 1.

2. Application of network system construction

You have completed the subnet split, and will now apply to the local network. Now the rooms are a sub-branch, completely separate. You cannot sit in room number 1 to transfer data, access or use ICMP protocol as ping command to another machine in room 2.

In order for the rooms to connect to the internet, you need to have a computer as a router function. This router will help machines in each local network connect to the ADSL modem and access the internet. If you use a Cisco device like Router 2800, subnet sharing in the router is called Inter Vlan technique.

Depending on the security policy of the company or agency, you can build more firewalls, access lists and mechanisms Nat inside or outside to access the workstations outside the internet, outside the remote internet in. intranet.

3.9 ★ | 29 Vote

May be interested

  • IP, Subnet mask, installation and configuration for 1 serverIP, Subnet mask, installation and configuration for 1 server
    ip address is a unique number assigned to a device in a network - these devices can be a computer, a router, a network printer (network printer with a network card), etc. etc. this type of address is called a software address - it is different from the address address hardware address - or we know as the mac address of the network card or hard-code in some network devices - please say a little about this address - every network card manufacturer in the world before production must apply for a batch of mac addresses from inte
  • Why is Localhost's IP address 127.0.0.1?Why is Localhost's IP address 127.0.0.1?
    127 is the last network number (network number) in network class a with subnet mask 255.0.0.0. address 127.0.0.1 is the first transfer address in the subnet. address 127.0.0.0 is not used because this is the address of the wired network.
  • How to split columns in Word - Instructions on dividing columns in Word 2007, 2010, 2013, 2016How to split columns in Word - Instructions on dividing columns in Word 2007, 2010, 2013, 2016
    how to divide a column in word - instructions on how to divide a column in word 2007, 2010, 2013, 2016. in order for your text content to be presented scientifically beautifully and visually, dividing columns in the text is also a layout. popular version. the article below helps these
  • Dividing hard drive right in Windows 10 does not lose dataDividing hard drive right in Windows 10 does not lose data
    dividing hard drive right in windows 10 does not lose data. normally, each physical hard drive will be equivalent to a partition of data on the computer, this is obvious when you buy a new computer will have only one drive, that is c.
  • How to use the MOD function and QUOTIENT function in ExcelHow to use the MOD function and QUOTIENT function in Excel
    injury in excel has many ways of doing it, can be used manually or using the calculation function.
  • Configure a Mac VLANConfigure a Mac VLAN
    the addition of software-based vlans allows segmenting workstations into completely separate lan local networks.
  • 10 concepts Windows administrators need to know10 concepts Windows administrators need to know
    concepts allow us to systematize our understanding of the world. in the area of ​​network administration, here are 10 important concepts that administrators need to know.
  • Is Facebook dividing people?Is Facebook dividing people?
    whether unintentionally or deliberately, facebook is becoming a bad spin.
  • What is Subnetting and its advantages and disadvantages?What is Subnetting and its advantages and disadvantages?
    subnetting, also known as 'network fragmentation', is the process of dividing a large network into several smaller subnets.
  • Top 3 most PDF PDF reader softwareTop 3 most PDF PDF reader software
    top 3 most pdf reading software in 2020. it can be said that pdf is the most popular text file format today because this format has many advantages compared to other formats such as: compact size, high security, very suitable for dividing