subnetting Flashcards
what is subnetting
- allocating 1 IP address range to several networks.
- partition adress space into multiple smaller networks (subnets)
- all hosts in same subnet have the same subnet number (network address)
why do we need subnetting
- IP exhaustion
- efficient address spacing
- security
- efficient broadcast domain
class A
first bits = 0
7 bit network
24 bit host
class B
first bits = 10
14 bit network
16 bit host
class C
first bits = 110
21 bit network
8 bit host
how to find out how many possible hosts in a network?
let n = # of host bits
ex: class A: n = 24
hosts = 2^24 - 2
minus 2 since the first address is the net ID and the last address is the broadcast address
what is the subnet mask
shows 1’s for all bits that are apart of the network address
determine the subnet number from the subnet mask and ip address
in binary write the ip address under the subnet mask and all the bits of ip aligning with 1’s from mask are apart of the subnet number.
broadcast address
the last available address of a network
network address
the first availible address of a network
DHCP
- a way to automate host configuration
- a new host on a network sends a request to the DHCP server who responds with assignment and info
- each admin domain has at least 1 DHCP server