topic 6A : ipv4 addressing Flashcards
how many bits are in an ipv4 address?
32 bits
how many octets are there? and how many bits are there in an octet?
4 octets and 8 bits in each octet
what is the decimal range of each octet?
0 to 255
ipv4 address structure
[192.168.10] .[1]
network portion / host portion
binary number system
only two digits : 0 and 1
how to convert a binary address to decimal?
1st decimal : 2^7 = 128
2nd decimal : 2^6 = 64
3rd decimal : 2^5 = 32
4th decimal : 2^4 = 16
5th decimal : 2^3 = 8
6th decimal : 2^2 = 4
7th decimal : 2^1 = 2
8th decimal : 2^0 = 0
converting from decimal to binary
a series of steps starting from the leftmost bit of the octet
one eg : converting 168 to binary
168 >= 128 so 168-128=40
but if the number is not >= the octet bit value then move on to the next value.
ipv4 address and subnet mask
(EXAMPLE) when subnet mask is /16, the network portion of the ipv4 address is the first 16 digits of the binary form of the ipv4 address, and the rest of it is the host portion
IPv4 network, host and broadcast address
when the host portion is :
all 0s -> network address
0’s and 1’s -> host address
all 1s -> broadcast address
00000001 -> 1st host address
11111110 -> last host address
what is DHCP?
- the preferred method of assigning ipv4 addresses to hosts on large networks because it reduces the burden on network support staff and virtually eliminates entry errors
- enables the automatic assignment of addressing information such as IP address, subnet mask, default gateway and other configuration information