9.1. The Basics

Listing the Routing Table:

ip route

Now on my machine, this equates to the following output: dev eth0  scope link dev eth0  proto kernel  scope link  src
default via dev eth0

The first line: dev eth0 scope link is the route for the interface

The second line: dev eth0 proto kernel scope link src Is the route that says everything that goes to needs to go out

The third line:

default via dev eth0 is the default route.

9.1.1. Using the information

Now that we have walked through a basic routing table, lets see how we use it. First read the Policy routing text. If you get confused, don't worry -- it is a confusing text. It will give you the run down on everything that the new routing code can accomplish.