iproute(8)

iproute8

Program to control policy-based routing tables

Usage

iproute [{-c | -r | -l}]

iproute [{add | del}] [{PREFIX | NET mask MASK}] [tos TOS] [nat NET] [class CLASS] INFO

iproute [{addrule | delrule}] [from PREFIX] [to PREFIX] [tos TOS] [dev DEVICE] [{masq | drop | reject | prohibit | nat NET}] [pref PREFERENCE] [{class CLASS | INFO}]

INFO references any combination of the routing parameters "gw [gateway] ", "dev [device] ", "metric [metric] ", "mtu [mtu] ", "irtt [rtt] ", "window [window] ", and any of FLAGS

Overview

This manual page documents briefly the various invocations of the iproute command. This manual page was written for the Debian GNU/Linux distribution (but may be used by others), because the original program does not have a manual page. Instead, it has documentation as part of the Linux source tree. Note that this documentation may also be found in /usr/doc/iproute on Debian systems.

iproute will modify or show the current policy-based routing tables. These are held in kernel space, so iproute requires root permissions to run. Note that policy based routing tables are a feature of kernels 2.1.16 and above, so you will not be able to use this program unless you have a specific patch with an earlier kernel.

Options

iproute accepts the following single options on the command line:-

-c

Shows the current routing cache.

-r

Shows the current routing classes.

-l

Shows a long listing of routes.

Invoking the program with no command-line will produce a simple list of current routes.

Releases

Unchanged in 2 releases since Debian 1.3 (Bo).

  1. 1.3–2.1

Bugs

Not very well documented anywhere :)

Author

This manual page was written by Tom Lees <[email protected]>, for the Debian GNU/Linux system.

From iproute 980630-1 in Debian 2.1 (Slink). Parsed by carta from the page's man source.