14.1 PACKET FORWARDING: A CLOSER LOOK
Before we jump into the management of routing tables, let’s take a more detailed look at how the tables are used. Consider the network shown in Exhibit A.
Exhibit A Example network
![image](/api/v2/epubs/9780137002740/files/graphics/networkdiagram.jpg)
Router R1 connects the two Ethernets, and router R2 connects one of the nets to the outside world. (For now, we’ll assume that R1 and R2 are UNIX computers rather than dedicated routers.) Let’s look at some routing tables and some specific packet forwarding scenarios. First, host A’s routing table:
A% netstat -rnRouting tablesDestination Gateway Flags Refs Use If127.0.0.1 127.0.0.1 UH 6 563131 lo0 ...
Get UNIX System Administration Handbook, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.