Académique Documents
Professionnel Documents
Culture Documents
Why Subnet?
To break the network down into pieces, each
Controls network traffic Reduces broadcasts Can provide low level security with access lists on the router Organization of IP address space
network and host portions as follows: N . N . N . H To subnet we borrow bits from the host portion of the address (8 bits for Class C) N . N . N . x x x x x x x x Borrowing n bits yields 2n 2 subnets. Leaving n bits yields 2n 2 hosts. For a class C, we can borrow from 2 to 6 bits. Why not 1 bit? (How many usable subnets?) Why not 7 bits? (How many usable hosts?)
200.129.41.0000 0000
break here
Borrowing 4 bits yields 14 usable subnets How many usable hosts per subnet? Same formula as subnets (2n 2) 4 host bits (n = 4) 24 2 = 16 2 = 14 usable hosts per subnet
Last usable host on the first subnet: Broadcast address for the first subnet:
all ones in the network and subnet portion of the address all zeros in the host potion of the address The subnet mask for the previous example is:
255.255.255. 240 255.255.255. 1111^ 0000 (128 + 64 + 32 + 16 =240)
ANDing this mask with any valid host address on the network will always yield the subnet address for that host.
network and host portions as follows: N . N . H . H To subnet we borrow bits from the host portion of the address (16 bits for Class B)
N . N .x x x x x x x x . x x x x x x x x
bits.
2n 2 subnets 26 2 = 64 2 = 62 usable subnets (not enough) 27 2 = 128 2 = 126 usable subnets (enough)
132.178.0000000 0.00000000
break here
Borrowing 7 bits yields 126 usable subnets How many usable hosts per subnet? Same formula as subnets (2n 2) 9 host bits (n = 9) 29 2 = 512 2 = 510 usable hosts per subnet
First usable 132.178.0000001 ^ 0.00000000 subnet address: 132.178.2.0 First usable host 132.178.0000001 ^ 0.00000001 on the first subnet: 132.178.2.1 Second usable host 132.178.0000001 ^ 0.00000010 on the first subnet: 132.178.2.2
. . .
Last usable host 132.178.0000001 ^ 1.11111110 on the first subnet: 132.178.3.254 Broadcast address 132.178.0000001 ^ 1.11111111 for the first subnet: 132.178.3.255
255.255.254.0 255.255.1111111 ^ 0.00000000 ANDing this mask with any valid host address on this network will always yield the subnet address.
255.255.1111111 ^ 0.00000000
132.178.0111011 ^ 0.00000000
Subnet Address:
132.178.118.0