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


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


  • 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

  • The comprehensive, one-stop TCP/IP resource guide for every Linux netadmin!
  • Applied coverage of the entire protocol stack
  • Covers every key TCP/IP application: DNS, DHCP, sendmail, NFS, Samba, and more
  • All examples thoroughly tested on four leading Linux distributions
  • Includes advanced coverage of firewalls, OSPF, BGP, routing policies, QoS, and more

The authoritative, comprehensive guide to Linux TCP/IP networking!

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 wide-ranging 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. You'll find detailed coverage of all this, and more:

  • Routing and routing table management daemons
  • Superior techniques for running RIPv2, OSPF, and BGP
  • Linux firewall security: effective use of ipchains and iptables
  • iproute2: advanced routing policies, traffic control, and QoS
  • Implementing, securing, and troubleshooting key network applications
  • DNS, NIS, LDAP, DHCP, NFS, sendmail, and Samba

Linux TCP/IP Network Administration includes hundreds of real-world implementation examples and commands tested on five major Linux distributions: Red Hat, Caldera, SuSe, and Debian. Whatever your environment, whatever your expertise, there's never been a Linux networking guide this complete, this authoritative, or this useful!

Sample Content

Online Sample Chapter

An Introduction to TCP/IP

Table of Contents

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


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.




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


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.


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


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:



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership