Part III. Appendices and Reference

The content in this part is intended to function as supporting reference material for the above chapters. Following you will find a reference for many common linux command line utilities as well as the example network map and network description. A set of links to external resources, and a troubleshooting guide round out the content in this part of the document.

Table of Contents

A. An Example Network and Description
1. Example Network Map and General Notes
2. Example Network Addressing Charts
B. Ethernet Layer Tools
1. arp
2. arping
3. ip link
3.1. Displaying link layer characteristics with ip link show
3.2. Changing link layer characteristics with ip link set
3.3. Deactivating a device with ip link set
3.4. Activating a device with ip link set
3.5. Using ip link set to change the MTU
3.6. Changing the device name with ip link set
3.7. Changing hardware or Ethernet broadcast address with ip link set
4. ip neighbor
5. mii-tool
C. IP Address Management
1. ifconfig
1.1. Displaying interface information with ifconfig
1.2. Bringing down an interface with ifconfig
1.3. Bringing up an interface with ifconfig
1.4. Reading ifconfig output
1.5. Changing MTU with ifconfig
1.6. Changing device flags with ifconfig
1.7. General remarks about ifconfig
2. ip address
2.1. Displaying interface information with ip address show
2.2. Using ip address add to configure IP address information
2.3. Using ip address del to remove IP addresses from an interface
2.4. Removing all IP address information from an interface with ip address flush
2.5. Conclusion
D. IP Route Management
1. route
1.1. Displaying the routing table with route
1.2. Reading route's output
1.3. Using route to display the routing cache
1.4. Creating a static route with route add
1.5. Creating a default route with route add default
1.6. Removing routes with route del
2. ip route
2.1. Displaying a routing table with ip route show
2.2. Displaying the routing cache with ip route show cache
2.3. Using ip route add to populate a routing table
2.4. Adding a default route with ip route add default
2.5. Setting up NAT with ip route add nat
2.6. Removing routes with ip route del
2.7. Altering existing routes with ip route change
2.8. Programmatically fetching route information with ip route get
2.9. Clearing routing tables with ip route flush
2.10. ip route flush cache
2.11. Summary of the use of ip route
3. ip rule
3.1. ip rule show
3.2. Displaying the RPDB with ip rule show
3.3. Adding a rule to the RPDB with ip rule add
3.4. ip rule add nat
3.5. ip rule del
E. Tunnels and VPNs
1. Lightweight encrypted tunnel with CIPE
2. GRE tunnels with ip tunnel
3. All manner of tunnels with ssh
4. IPSec implementation via FreeS/WAN
5. IPSec implementation in the kernel
6. PPTP
F. Sockets; Servers and Clients
1. telnet
2. nc
3. socat
4. tcpclient
5. xinetd
6. tcpserver
7. redir
G. Diagnostic Tools
1. ping
1.1. Using ping to test reachability
1.2. Using ping to stress a network
1.3. Recording a network route with ping
1.4. Setting the TTL on a ping packet
1.5. Setting ToS for a diagnostic ping
1.6. Specifying a source address for ping
1.7. Summary on the use of ping
2. traceroute
2.1. Using traceroute
2.2. Telling traceroute to use ICMP echo request instead of UDP
2.3. Setting ToS with traceroute
2.4. Summary on the use of traceroute
3. mtr
4. netstat
4.1. Displaying socket status with netstat
4.2. Displaying the main routing table with netstat
4.3. Displaying network interface statistics with netstat command
4.4. Displaying network stack statistics with netstat
4.5. Displaying the masquerading table with netstat
5. tcpdump
5.1. Using tcpdump to view ARP messages
5.2. Using tcpdump to see ICMP unreachable messages
5.3. Using tcpdump to watch TCP sessions
5.4. Reading and writing tcpdump data
5.5. Understanding fragmentation as reported by tcpdump
5.6. Other options to the tcpdump command
6. tcpflow
7. tcpreplay
H. Miscellany
1. ipcalc and other IP addressing calculators
2. Some general remarks about iproute2 tools
3. Brief introduction to sysctl
I. Links to other Resources
1. Links to Documentation
1.1. Linux Networking Introduction and Overview Material
1.2. Linux Security and Network Security
1.3. General IP Networking Resources
1.4. Masquerading topics
1.5. Network Address Translation
1.6. iproute2 documentation
1.7. Netfilter Resources
1.8. ipchains Resources
1.9. ipfwadm Resources
1.10. General Systems References
1.11. Bridging
1.12. Traffic Control
1.13. IPv4 Multicast
1.14. Miscellaneous Linux IP Resources
2. Links to Software
2.1. Basic Utilities
2.2. Virtual Private Networking software
2.3. Traffic Control queueing disciplines and command line tools
2.4. Interfaces to lower layer tools
2.5. Packet sniffing and diagnostic tools
J. GNU Free Documentation License
1. PREAMBLE
2. APPLICABILITY AND DEFINITIONS
3. VERBATIM COPYING
4. COPYING IN QUANTITY
5. MODIFICATIONS
6. COMBINING DOCUMENTS
7. COLLECTIONS OF DOCUMENTS
8. AGGREGATION WITH INDEPENDENT WORKS
9. TRANSLATION
10. TERMINATION
11. FUTURE REVISIONS OF THIS LICENSE
12. ADDENDUM: How to use this License for your documents