12
Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0

Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

Embed Size (px)

Citation preview

Page 1: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

Binary to Decimal Conversion

128 64 32 16 8 4 2 1

27 26 25 24 23 22 21 20

Page 2: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

IP AddressesIP Addresses

A computer only knows binary (0s and 1s)

An IP address in IP version 4 has 32 bits

(separated by periods into 4 octets)

11000000.10101000.00001010.10010110

Page 3: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

IP AddressesIP Addresses Humans are more familiar with

decimal numbers, so we use a

Dotted decimal formatAn IP address of 192.168.10.150

has a Binary equivalent of 11000000.10101000.00001010.10010110

Conversion can be done in Windows calculator. Make sure to include any leading zeros to make a full octet.

Page 4: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

IP AddressesIP AddressesIP Addresses have 2 Parts:IP Addresses have 2 Parts:

Network NumberNetwork Number and and Host NumberHost Number..

In the IP Address In the IP Address 192192..168168..1010..150150

the the Network NumberNetwork Number is is 192192..168168..1010

and the and the Host NumberHost Number is is 150150

The Correct Notation is The Correct Notation is 192192..168168..1010..00

and and 00..00..00..150150

Page 5: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

IP AddressesIP Addresses

IP Address Classes

Class Decimal Binary

A 0-126 00000000 - 01111110

B 128-191 1000000 - 10111111

C 192-223 11000000 – 11011111

Page 6: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

IP AddressesIP Addresses• In binary, the highest number 8 bits can

designate is 11111111 or 255 in decimal.

IP Class Subnet masks

Class Subnet mask - Decimal Subnet mask - Binary

A 255.0.0.0 11111111.00000000.00000000.00000000

B 255.255.0.0 11111111.11111111.00000000.00000000

C 255.255.255.0 11111111.11111111.11111111.00000000

Page 7: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

IP AddressesIP AddressesTo differentiate between the network portion and the host

portion, network administrators use subnet maskssubnet masks.

The default subnet masksubnet mask for the Class C IP address of 192.168.10.150 is 255.255.255.0

In binary:

11000000.10101000.00001010.10010110

11111111.11111111.11111111.00000000

11000000.10101000.00001010.00000000

192 .168 .10 .0

Page 8: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

Convert decimal to binary in Convert decimal to binary in Windows calculatorWindows calculator

• Go to Start, Run and type in: calc

• Type in a decimal number: 100• Click on radio button beside bin (binary)

and the binary equivalent will show in the answer box: 1100100 (7 bits)

• Be careful the answer box doesn’t show leading 0s: 01100100 (8 bits)

Page 9: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

Ipconfig - Windows 2000Ipconfig - Windows 2000

• Go to Start, Run and type in cmd

• Type in ipconfig /?

• Type in ipconfig /all

• Type in ipconfig /release

• Type in ipconfig /renew

Page 10: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

PINGPINGPacket Internet Groper (PING) is a utility

that can verify that TCP/IP is installed, bound to the NIC, configured correctly, and communicating with the network.

• Type ping 127.0.0.1• Type ping your IP address• Type ping another computer in your

network• Type ping your default gateway• Type ping www.yahoo.com (internet host)

Page 11: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

An Example• Subnet a Class C network, 200.133.175.0, into 14

subnets for security, traffic control and multiple locations.

• 2n - 2 = number of subnets (need minimum of 14 subnets) where n = number of bits borrowed2?-2 > 1424-2 = 16

• Borrow four bits = subnet mask 255.255.255.240• Table

Page 12: Binary to Decimal Conversion 128 64 32 16 8 4 2 1 2727 2626 2525 2424 23232 2121 2020

An Example

200.133.175.0 11001000.100000101.10101111.00000000

255.255.255.240

11111111.11111111.11111111.11110000

Example