The Routing Table

At the heart of IPv4 routing is the route table, which contains a number of entries detailing how to get to various destinations. The route table is consulted when the exchange of data between two hosts is required. The netstat -r command is used to view the entries in the route table. The following example shows the route table for the hostname ultra10:

ultra10# netstat -r
Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
ultra-net            ultra10               U        1    177  hme0
multicast            ultra10               U        1      0  hme0
sparc-net            ultra-r1              UG       1    255  hme0
localhost            localhost             UH       3    635  lo0

Notice from this code that the first two columns are displaying names, rather than IP addresses. ...

Get Solaris™ 9 Network Administrator Exam Cram™ 2 (Exam CX-310-044) 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.