⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0247-0249.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:


<HTML>

<HEAD>

<TITLE>Developer.com - Online Reference Library - 0672311739:RED HAT LINUX 2ND EDITION:TCP/IP Network Management</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311739 //-->

<!-- TITLE=RED HAT LINUX 2ND EDITION //-->

<!-- AUTHOR=DAVID PITTS ET AL //-->

<!-- PUBLISHER=MACMILLAN //-->

<!-- IMPRINT=SAMS PUBLISHING //-->

<!-- PUBLICATION DATE=1998 //-->

<!-- CHAPTER=13 //-->

<!-- PAGES=0243-0298 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->









<P><CENTER>

<a href="0243-0246.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0250-0253.html">Next</A>

</CENTER></P>



<A NAME="PAGENUM-247"><P>Page 247</P></A>











<P>

bits it takes to compose the network and subnet address, you can figure out how many bits

are in the netmask.

</P>









<P>For example, if you are in the network

192.168.42.0 (equal to 11000000.10101000.

00101010.00000000) and you don't need to subnet at all, you would see that it takes 24 bits

to make the netmask. Hence, the netmask for this network is

255.255.255.0 (equal to

11111111.11111111.11111111.00000000 in binary).

</P>









<P>Let's say that you do want to subnet the network, and want to break this down into 8

subnets, each with 32 addresses. Remember that for each subnet, you need one network address

and one broadcast address. Hence, each subnet would really only be able to contain 30

addresses. Table 13.2 shows how to determine the netmask based on how many subnets you have.

</P>









<P>Table 13.2. Subnet netmasks.</P>



<TABLE WIDTH="360">



<TR><TD>

<B>Subnets</B>

</TD><TD>

<B>Hosts on the Subnet</B>

</TD><TD>

<B>Netmask</B>

</TD><TD>

</TD></TR>

<TR><TD>

2

</TD><TD>

126

</TD><TD>

255.255.255.128

</TD><TD>

(11111111.11111111.11111111.10000000)

</TD></TR>

<TR><TD>

4

</TD><TD>

62

</TD><TD>

255.255.255.192

</TD><TD>

(11111111.11111111.11111111.11000000)

</TD></TR>

<TR><TD>

8

</TD><TD>

30

</TD><TD>

255.255.255.224

</TD><TD>

(11111111.11111111.11111111.11100000)

</TD></TR>

<TR><TD>

16

</TD><TD>

14

</TD><TD>

255.255.255.240

</TD><TD>

(11111111.11111111.11111111.11110000)

</TD></TR>

<TR><TD>

32

</TD><TD>

6

</TD><TD>

255.255.255.248

</TD><TD>

(11111111.11111111.11111111.11111000)

</TD></TR>

<TR><TD>

64

</TD><TD>

2

</TD><TD>

255.255.255.252

</TD><TD>

(11111111.11111111.11111111.11111100)

</TD></TR>

</TABLE>





<P>Although it is entirely possible to encode your netmask such that the subnet part of the

address does not consume the bits in the suggested order, figuring out each host's address

becomes very tricky and cumbersome. It is not a

recommended practice.

</P>









<H4><A NAME="ch13_ 6">

Determining the Broadcast Address

</A></H4>









<P>After you have the network mask determined, it is very easy to determine the broadcast 

address.

</P>









<P>Begin by taking the network address along with the subnetwork component. In your

sample network, this would be 192.168.42.0. Because you need 24 bits (the first three dotted

numbers) to identify the network, hold those bits constant and make the remainder bits all 1.

This turns the sample address into 192.168.42.255.

</P>









<H4><A NAME="ch13_ 7">

The Next Generation of IP, IPv6

</A></H4>









<P>If you're quick with figures, you might have realized that IP numbers have 32 bits,

thereby providing us with 4+ billion possible IP addresses. Quite a few addresses, isn't it? In fact,

we should be set for a long time!

</P>



<A NAME="PAGENUM-248"><P>Page 248</P></A>













<P>Not quite. Because of the way addresses are segmented between classes A, B, C, and

reserved and because of the problem with liberal policies on IP address assignment early in the

Internet's life, we're quickly running out of available IP addresses. Between every new movie having

a new IP address for its domain name and network connectivity becoming cheap enough

for small businesses, it is predicted that we will run out of IP addresses not too long after the

year 2000.

</P>









<P>Luckily, a solution has been developed to cope with this. IPv6 is the successor to the

current IPv4 standard. (IPv5 was an experimental real-time stream protocol.) IPv6 addresses many

of the problems of IPv4, such as inadequate address space, no security, an overly complex

structure, no support for a large number of options, and no special tags indicating the type of

service in use.

</P>









<P>IPv6 solves the address space problem by expanding the address field to 128 bits. The

idea behind this was that the address space should allow for an inefficient scheme of address

assignment (similar to the idea behind class A, B, and C addresses in IPv4) but still allow for

billions of possible hosts on each subnetwork.

</P>









<P>A resolution for the security issue was something else that was designed into IPv6. With

commerce on the Internet growing at phenomenal rates, the need for security mechanisms

needed to be integrated into the network protocol itself instead of letting it remain above the

protocol. Authentication and privacy were serious considerations in IPv6's design.

</P>









<P>Multimedia has also been taking the Internet by storm. Entertainment services are looking

to broadcast their services in real-time audio and video. By tagging the packets of data with

a datatype field, the routers across the Internet know to give priority to those packets

needing real-time transmission. (If this subject interests you, look into the RSVP protocol at

<a href="http://www.ietf.org.)">http://www.ietf.org.)</A>

</P>









<P>The last major revision with IPv6 was to simply include the information needed in each

packet of data. This allows routers to be able to process more packets per second without needing

to use faster (and more costly) hardware.

</P>









<P>As of this writing, Red Hat Linux doesn't support IPv6 because most people are sticking

with IPv4 for their connectivity needs. There is an IPv6 package available for Linux if you are

interested in experimenting with it or possibly joining the 6Bone, a small network of IPv6

systems on the Internet. (Check out the site at

<a href="http://www-6bone.lbl.gov/6bone.)">http://www-6bone.lbl.gov/6bone.)</A>

</P>









<H4><A NAME="ch13_ 8">

Getting a New IP Address

</A></H4>









<P>If you're planning to join the Internet with your new Linux box for the first time, you

will need to have two things:

</P>









<UL>

<LI>     An Internet Service Provider (ISP) who is providing a connection to the Internet

<LI>     An unused IP range and domain name

</UL>



<A NAME="PAGENUM-249"><P>Page 249</P></A>















<P>Often, your ISP will assist you with all of the steps involved in getting your machine

connected, but it is always a good idea to know the steps involved.

</P>









<P>The easiest way to join the Internet is to have an existing account on someone else's

network. A good start would be the ISP you're planning to join. This will give you an opportunity

to evaluate its services and determine if its connection to the Internet is fast enough for your

needs. (See information on the traceroute command later in this chapter in the section &quot;The

Software of DNS&quot; to help you determine the quality of your connection.)

</P>









<P>When you've decided to go with a particular ISP, the ISP will need to set up its machines

to respond to connection requests for your desired domain name. (Note that your ISP

doesn't need to provide content, just the name service.) With your ISP ready to handle the

domain, you begin your registration with the InterNIC.

</P>









<P>The InterNIC is an organization that keeps track of all the domain names allocated and

their corresponding IP address ranges. Whenever a new site wants to have its own domain name,

it must be allocated from the InterNIC. If the new site also needs an IP range allocated to it,

the InterNIC will take care of that as well. (Typically, the InterNIC will allocate IP ranges to

ISPs, and the ISPs will pass them on to you.)

</P>









<P>Not too long ago, you could simply ask the InterNIC to allocate a domain name, and it

would do it. However, with the recent boom of commercialization, the rules have changed so

that you must have an ISP responding to your desired domain name before InterNIC will

allocate the domain. (In other words, you cannot request

my-new-domain.com without having a server ready to respond to requests made on that domain.) Along with each new domain is an

annual fee of $100.

</P>









<P>To request a new domain name, visit the InterNIC's Web site at

<a href="http://www.internic.net.">http://www.internic.net.</A> You will have to work with your ISP when doing this. It can take up to one week for the

InterNIC to process your request and allocate the domain name.

</P>









<P>When your new domain name is allocated and the InterNIC has announced it to all of

the nameservers across the Internet, your site will be ready to

accept connections.

</P>









<H3><A NAME="ch13_ 9">

The Network Card Solution

</A></H3>









<P>If you are using a network card to join a network, configuring it is a straightforward task.

This section shows how to use the netcfg, ifconfig, and

route commands to do this.

</P>



<CENTER>

<TABLE BGCOLOR="#FFFF99">

<TR><TD><B>

NOTE

</B></TD></TR>

<TR><TD>

<BLOCKQUOTE>

All the commands used in this section must be run as the root user because they

change kernel parameters. Some of these programs can be run as a normal user for gaining

status information; I point out these programs.

</BLOCKQUOTE></TD></TR>

</TABLE></CENTER>

<BR>





<P><CENTER>

<a href="0243-0246.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0250-0253.html">Next</A>

</CENTER></P>









</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -