Home > Store

Linux TCP/IP Network Administration

Register your product to gain access to bonus material or receive a coupon.

Linux TCP/IP Network Administration

  • By
  • Published Jul 16, 2001 by Pearson.

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2002
  • Dimensions: 7" x 9-1/4"
  • Pages: 880
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-032220-2
  • ISBN-13: 978-0-13-032220-3

Linux TCP/IP Network Administration offers a comprehensive tutorial on the fundamentals of Linux TCP/IP networking for new and intermediate-level network administrators, detailed coverage of advanced topics for experienced administrators, and comprehensive reference material on the entire TCP/IP protocol stack for all Linux professionals. Long-time Linux netadmin Scott Mann covers the Linux TCP/IP protocol stack from bottom to top, offering practical, up-to-date guidance for implementing, managing, and troubleshooting any TCP/IP network or application. Linux TCP/IP Network Administration includes detailed coverage of routing, routing table management daemons such as RIPv2 and OSPF, as well as new routing policy and traffic control capabilities available through iproute2. Mann also walks through implementing, securing, and troubleshooting each major network application, including DNS, NIS, LDAP, DHCP, NFS, sendmail, NFS, and Samba.

Sample Content

Online Sample Chapter

An Introduction to TCP/IP

Table of Contents

(NOTE: All chapters conclude with Summary and For Further Reading.

Preface.

A Note about Linux Distributions. Linux Documentation. Prerequisites. Typographical Conventions. Errata and Contacts. Acknowledgments.



1. An Introduction to TCP/IP.

Computer Networking. Network Types. Network Models. The Client-Server Model. Request for Comment. Institute of Electrical and Electronics Engineers (EEE). The Internet, TCP/IP, and Other Stacks.



2. Hardware and Network Interface Layers: Network Access.

Hardware Layer. Network Interface Layer. Linux Network Access Implementation.



3. Between the Network Interface and Internet Layers: Address Resolution Protocol.

ARP, RARP, and the TCP/IP Model. The Purpose of ARP. ARP Request/Reply. The ARP Cache. The arpwatch Daemon. A Related Protocol: RARP. Viewing Network Packets.



4. The Internet Layer: IPV4.

The Internet Protocol. IPV4 Addressing. Configuring NICS. Start-up Scripts and NIC Configuration Files. Hostname Resolution.



5. The Internet Layer: IPV6.

IPV6 Datagram. ICMPV6. IGMP and IPV6. IPV6 Addressing. Neighbor Discovery. The Current State of the Linux IPV6 Implementation.



6. The Internet Layer: Routing.

A Simple Routing Example. A Simple Routing Algorithm. The Routing Process. An Intermediate Routing Example. A More Complex Routing Example. Multicast Routing. What about IPV6? Default Free Routers.



7. The Transport Layer.

The Protocols. User Datagram Protocol. Transmission Control Protocol. Use of TCP versus UDP.



8. The Application Layer.

The Client-Server Model. Services and Ports. The /etc/inetd. Conf Configuration Files. TCP_Wrappers. Access Control and the Portmapper. Replacing inetd with xinetd. Which One Should I Use?



9. Troubleshooting and Monitoring.

Troubleshooting Tips. Network Monitoring and Troubleshooting Utilities.



10. Network Applications.

Domain Name Service. Dynamic Host Configuration Protocol. Remote Filesystems. Network Information Service. Lightweight Directory Access Protocol. Electronic Mail. X Window System.



11. Introducing Dynamic Routing Table Management.

Autonomous Systems. Protocol Types. The gated Daemon. RIP. Router Discovery. A Routing Example. Implementing RIP and Router Discovery with gated—An Example. One More Thing…Troubleshooting with gated.



12. OSPF.

OSPF Overview. Implementing OSPF with gated. A Flat OSPF Domain Example. Interlude: Using the ospf_monitor Utility. Examples Using OSPF Areas. RIP or OSPF? GNU Zebra.



13. BGP.

BGP Overview. Implementing BGP with gated.



14. ipchains: Address Translation, IP Accounting, and Firewalls.

What is a Firewall? Packet Filtering. Configuring the Kernel for ipchains. Introduction to Using ipchains. Packet Fragments. IP Masquerading. Adding Custom Chains. Antispoofing Rules. Rule Ordering Is Important! Saving and Restoring Rules. Rule Writing and Logging Tips. Building Your Firewall. ipchains Isn't Just for Firewalls! A Few More Things… Supplementary Utilities. The Next Generation…



15. Netfilter: Address Translation, IP Accounting, and Firewalls.

Netfilter Overview. The iptables Utility. iptables Examples.



16. Iproute2 and Other Routing Topics.

Routing and iproute2. Iproute2 Commands: ip, rtmon, rtacct, and tc. Routing Policies. Tunneling. Traffic Control. The Real Routing Algorithm. Switching. Turning Linux for Routing.



Index.

Preface

Preface

There are a lot of documents, books, whitepapers, HOWTOs, and other guides, written about network administration generally, and Linux specifically. Indeed, I reference many of these throughout this book. There are, however, two things that these resources do not do. First, the coverage of the TCP/IP stack is usually either completely theoretical or minimized. The importance of associating implementation considerations, troubleshooting methods, and performance analysis with the functionality of each layer within the TCP/IP stack cannot be overstated. I am of the firm opinion that the theory of the stack and the application of the stack should be presented simultaneously. This I have endeavored to do in the first nine chapters.

Second, few resources provide any useful implementation information about routing table management protocols like OSPF and BGP. I have a whole bunch of horror stories relating to my early efforts at implementing OSPF and the fruits of those efforts are covered in Chapters 11 and 12. Unfortunately, I only had time to cover gated. At some future point, I hope to have the opportunity to add details about zebra. Additionally, I cover the basics of BGP as implemented by the public version of gated in Chapter 13. These chapters should give most modestly seasoned network administrators enough to go on to get one or more of these protocols functional.

I think that these topics alone give credence to this book. However, I tried to round out the work with some topics of general interest to network administrators. In particular, I give an introductory treatment of implementing packet filtering with ipchains and iptables in Chapters 14 and 15, respectively. I also cover some of the very exciting advanced Linux capabilities including routing policies, tunneling, and traffic control in Chapter 16.

Finally, Chapter 10 touches on the basic network applications, including DHCP, DNS, NFS, Samba, NIS, and LDAP. These topics are covered lightly with extensive reference details for further study.

I must confess that I do regret not being able to include a more thorough treatment of certain topics. In particular, the coverage of TCP, IPv6, multicast routing, and SNMP should have considerably more attention. Other areas such as coverage of iptables and tc could certainly be enhanced. On the other hand, the book is already at about 800 pages and took nine months to write (I still have a day job). So, hopefully, this a good resource as it is and a good first step toward an even better resource a year or two down the road. I certainly hope that you benefit from it.

A Note about Linux Distributions

Throughout the book, I have attempted to address a number of different Linux distributions. In particular, I specifically address Red Hat 6.2/7.0, Caldera 2.4, SuSE 6.4, and Debian 2.1. The versions for each distribution reflect the latest available at the time of this writing.

Linux Documentation

Throughout the book, I generally assume that you will know where to find the basic Linux documentation. So whenever I reference a HOWTO or Linux Guide or FAQ, I mean the document that can be found at the Linux Documentation Project (LDP) home page, namely

 http://www.linuxdoc.org/ 

I also reference man pages by title(section number). For instance, passwd(5) refers to the passwd man page found in section 5 of the manual page catalogue. More often than not, the section number is irrelevant as there is only one man page of the given name. However, sometimes, and in this particular case, there are multiple man pages related to the given name. In the case of passwd there are two pages, one in section 1 and the other in section 5. The command man passwd will bring up the man page for passwd(1). You can scroll down and eventually get to passwd(5), but you can execute the command man 5 passwd to obtain the passwd(5) page immediately. See man(1) for further details.

Prerequisites

I do make certain assumptions about your knowledge. In general, I expect that you have some knowledge of system administration and, in particular, are familiar with the following or their equivalents.

  • an editor such as vi, emacs, or your favorite GUI text editor
  • kernel rebuilding and the use of commands like insmod, modprobe, and lsmod
  • system start/stop or start-up scripts, that is, /etc/rc* and /etc/init.d/*
  • syslog and the /etc/syslog.conf file
  • logical operators like &, |, and !

I also assume general familiarity with the Linux environment including the X Window system and the use of the X Window manager of your choice.

Errata and Contacts

If you discover anything that is incorrect or that is confusing or has some problem, please let me know! Send email to me at

 linux_upat@thekeyboard.com 

I won't always answer, but I will review any corrections, comments, and recommendations. I will post updates and corrections to a site that you'll find a link to off this book's catalog page on phptr.com:

 http://www.phptr.com/ptrbooks/ptr_0130322202.html 

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020