Technical data

176 Agilent Connectivity Guide
7TCP/IP Network Basics
Example: Class A, B, and C IP Addresses
This table shows three example IP addresses, where the bold part of the
binary equivalent is the network portion of the address and the non-bold
portion is the host portion of the address. For a Class A address, the first
8 bits are the network portion and the remaining 24 bits are the host
portion of the address.
For a Class B IP address, the first 16 bits are the network portion and the
remaining 16 bits are the host portion of the address. For a Class C IP
address, the first 24 bits are the network portion and the remaining 8 bits
are the host portion of the address.
NOTE
Dot-notation addresses ("nnn.nnn.nnn.nnn" where “nnn” is a byte value)
such as IP addresses must be expressed with care, as most web software
on the PC will interpret byte values with leading zeros as octal numbers.
Thus, “255.255.020.011” is actually equivalent to decimal
“255.255.16.9” rather than “255.255.20.11” because “.020” is
interpreted as “16” expressed in octal and “.011” as “9”. To avoid
confusion, use only decimal expressions of byte values (0 to 255), with
no leading zeros.
For example, the Agilent 33220A assumes that all IP addresses and
other dot-notation addresses are expressed as decimal byte values and
strips all leading zeros from these byte values. Thus, trying to enter
“255.255.020.011” in the IP address field, it becomes “255.255.20.11”
(a purely decimal expression). You should enter exactly the same
expression, “255.255.20.11” in your PC web software to address the
instrument. Do not use “255.255.020.011” as the PC will interpret that
address differently due to the leading zeros.
Class IP Address Binary Equivalent
A 54.16.23.1 0011 0110. 0001 0000. 0001 0111. 0000 0001
B 154.16.23.1 1001 0110. 0001 0000. 0001 0111. 0000 0001
C 204.16.23.1 1100 1100. 0001 0000. 0001 0111. 0000 0001