Allocating an IP Address

Team-Fly    

Solaris™ Operating Environment Boot Camp
By David Rhodes, Dominic Butler
Table of Contents
Chapter 13.  Connecting to the Internet


The first thing we need to do is install an additional Network Interface Card (NIC) and allocate an IP address for it. We have already seen that each interface connected to the network requires an IP address, and we also know that these addresses need to be unique. This rule extends to any TCP/IP connectionit must not clash with any machine already out there.

So, how do we choose what address to assign it? Either an ISP or one of the naming authorities responsible for maintaining sanity among Internet users will probably allocate at least part of it. For example, we may be allocated a range of addresses from which we assign each one as we see fit, or we may be given an individual address.

Domain Names and Addresses

Groups of numbers such as IP addresses are hard for people to remember, whereas names are much easier. To help overcome this problem, the Domain Name System (DNS) was introduced. We don't want to complicate things by introducing another topic that we cover in more detail later (see Chapter 16, "Configuring DNS"), so we'll just describe it briefly here.

DNS is used to perform host name resolving. This is a process in which we pass a fully qualified domain name to DNS (such as www.sun.com), and, in return, it will tell us what the corresponding IP address is. DNS does this by querying a machine known as a "nameserver," which if it doesn't know, will query its nameserver, and so forth.

Apart from the reserved and private network addresses that we discussed in Chapter 11, "Connecting to the Local Area Network," every address range that is allocated by the naming authorities needs to have an associated domain name. We would like our system to use a domain named "solarisbootcamp.com."

Registering a Domain Name

So, how do we get a domain name? A number of governing bodies administer domains; which one you turn to depends on whether you require a ".com" or a ".co.uk," for example. Each country has its own governing body that is responsible for handing out domains and their associated addresses.

For the purpose of this chapter, we will assume that our IP addresses have been allocated by either an ISP or our network administrator. The reason for this is that we don't want to complicate things too much by introducing another topic at this point (we'll cover this in more detail in Chapter 16, "Configuring DNS").

Our Values

After speaking to our friendly network administrator, we have been told that two routes are available for us to use, as listed in Table 13.1.

Table 13.1. Available Routes to External Networks

Route

Network Interface Address

Gateway/ Router Address

DNS Resolver Address

Netmask

1

175.35.63.50

172.35.63.1

172.35.63.2

255.255.255.0

2

195.10.132.50

195.10.132.1

195.10.132.2

255.255.255.0

Initially, we'll use route "1." Later, we'll show how to add route "2" to create a second default route to make use of both available routes.


    Team-Fly    
    Top
     



    Solaris Operating Environment Boot Camp
    Solaris Operating Environment Boot Camp
    ISBN: 0130342874
    EAN: 2147483647
    Year: 2002
    Pages: 301

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net