The company leased an IP path is 192.168.1.0. Now the director is required divided divided into 3 subnets for three departments in the company. Please do share this subnet. First, we analyze the structure of the address: 192.168.1.0 as follows: + Address NetMask: 255.255.255.0 + Network ID: 11111111.11111111.11111111 + HostID: 00000000 In this example we need divided into 3 subnets (3 subnet) so we need to use 2 bits in the Host ID to add the Network ID. How to know the number of bits needed to borrow more? We have the formula: 2 ^ n> = m (where m is the number of subnets to divide, n is the number of bits needed to borrow). Here 2 ^ 2> = 3. After borrow 2 bits, we have the new structure in binary is (to borrow one bit set value by 1 offline): + Address NetMask :: 11111111.11111111.11111111.11000000 + Network ID: 11111111.11111111.11111111.11 + Host ID: 000000 => In the decimal format is: 255 255 255 192 new IP address now: 192.168.1.0/26 (figure 26 is 24 + 2 bits borrowed). We define "hops "for the subnet: k = 256-192 = Leap 64 => I have the following networks: IP: 192.168.1.0 Netmask: 255 255 255 192 IP: 192.168.1.64 Netmask: 255 255 255 192 IP: 192.168.1.128 Netmask: 255 255 255 192 IP: 192.168.1.192 Netmask: 255 255 255 192 Thus the machine on each network by how much? The remaining bits of the Host ID Network ID after being on loan: x = 32-26 = 6 => Hubs on each network: 2 ^ n-2 = 2 ^ 6-2 = 62 machine
đang được dịch, vui lòng đợi..
