
30.1 IP Addresses and Routing
The discussion in this section is limited to IPv4 networks. For information about IPv6
protocol, the successor to IPv4, refer to
Section 30.2, “IPv6—The Next Generation
Internet”
(page 550).
30.1.1 IP Addresses
Every computer on the Internet has a unique 32-bit address. These 32 bits (or 4 bytes)
are normally written as illustrated in the second row in
Example 30.1, “Writing IP
Addresses”
(page 547).
Example 30.1
Writing IP Addresses
IP Address (binary): 11000000 10101000 00000000 00010100
IP Address (decimal): 192. 168. 0. 20
In decimal form, the four bytes are written in the decimal number system, separated by
periods. The IP address is assigned to a host or a network interface. It cannot be used
anywhere else in the world. There are exceptions to this rule, but these are not relevant
in the following passages.
The points in IP addresses indicate the hierarchical system. Until the 1990s, IP addresses
were strictly categorized in classes. However, this system has proven too inflexible and
was discontinued. Now, classless routing (CIDR, classless interdomain routing) is used.
30.1.2 Netmasks and Routing
Netmasks are used to define the address range of a subnetwork. If two hosts are in the
same subnetwork, they can reach each other directly, if they are not in the same subnet-
work, they need the address of a gateway that handles all the traffic between the subnet-
work and the rest of the world. To check if two IP addresses are in the same subnet,
simply “AND” both addresses with the netmask. If the result is identical, both IP ad-
dresses are in the same local network. If there are differences, the remote IP address,
and thus the remote interface, can only be reached over a gateway.
To understand how the netmask works, look at
Example 30.2, “Linking IP Addresses
to the Netmask”
(page 548). The netmask consists of 32 bits that identify how much of
Basic Networking
547
Summary of Contents for LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Page 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Page 14: ......
Page 19: ...Part I Deployment...
Page 20: ......
Page 60: ......
Page 128: ......
Page 243: ...Part II Administration...
Page 244: ......
Page 274: ......
Page 312: ......
Page 348: ......
Page 380: ......
Page 381: ...Part III System...
Page 382: ......
Page 438: ......
Page 452: ......
Page 478: ......
Page 486: ......
Page 498: ......
Page 512: ......
Page 558: ......
Page 559: ...Part IV Services...
Page 560: ......
Page 652: ......
Page 670: ......
Page 742: ......
Page 754: ......
Page 796: ......
Page 817: ...Part V Security...
Page 818: ......
Page 858: ......
Page 886: ......
Page 910: ......
Page 911: ...Part VI Troubleshooting...
Page 912: ......
Page 924: ......