]> git.ipfire.org Git - people/stevee/network.git/blame - man/network-route.8.in
batman-adv: Add documentation.
[people/stevee/network.git] / man / network-route.8.in
CommitLineData
3b655131
MT
1.TH network-route 8 "11 Aug 2012" "@VERSION@" "network man page"
2
3.SH NAME
4network-route \- Network Route Configuration Control Program
5
6.SH SYNOPSIS
478de6f9 7\fBnetwork [OPTIONS] route add <network> <--gateway=..., --unreachable, --prohibit, --blackhole> [--mtu=N]\fR
3b655131
MT
8.P
9\fBnetwork [OPTIONS] route remove <network>\fR
10.P
11\fBnetwork [OPTIONS] route list\fR
12
13.SH DESCRIPTION
14The route subcommands, help to configure static routes.
15.PP
16It is possible to create and remove static routes.
17
18.SH COMMANDS
19The \fBnetwork route\fR command offers various sub commands:
20
478de6f9 21\fBadd <network> <--gateway=..., --unreachable, --prohibit, --blackhole> [--mtu=N]\fR
3b655131
MT
22.RS 4
23A new route may be added by the \fBadd\fR command.
24It is always required to pass a valid network prefix (\fB<network>\fR), which
25can be either IPv6 or IPv4.
26.PP
27For unicast routes, the \fB--gateway=<gateway>\fR option must be passed, where
28\fB<gateway>\fR is a valid IP address of the same protocol type as the network
29prefix is.
30.PP
31Use \fB--unreachable\fR, \fB--prohibit\fR, \fB--blackhole\fR can be used to create
32of that type. See \fBROUTE TYPES\fR below for more information about these options.
478de6f9
MT
33.PP
34The optional \fB--mtu\fR parameter defines the MTU along the path to the
35destination and must be an integer number.
3b655131
MT
36.RE
37.PP
38
39\fBremove <network>\fR
40.RS 4
41A route can be removed with this command.
42.PP
43\fB<network>\fR is the network prefix of a existing route.
44.RE
45.PP
46
478de6f9 47\fBlist [--protocol=ipv6|ipv4]\fR
3b655131
MT
48.RS 4
49Shows a list of all configured routes.
50.PP
478de6f9
MT
51Pass the protocol option to filter the output only for the given
52protocol.
3b655131
MT
53.RE
54.PP
55
56.SH ROUTE TYPES
57
58\fBunicast\fR
59.RS 4
60A unicast route is the most common route in routing tables. It is a route to a destination
61network address, which describes the path to the destination.
62Use the \fB--gateway=...\fR option to create such a route.
63.RE
64.PP
65
66\fBunreachable\fR
67.RS 4
68When a route is determined and the routing decision process returns a destination with
69an unreachable route type, an ICMP unreachable message is generated and returned to
70the source address.
71.RE
72.PP
73
74\fBprohibit\fR
75.RS 4
76This works like an \fBunreachable\fR route, but the returned ICMP message is an
77ICMP prohibited message.
78.RE
79.PP
80
81\fBblackhole\fR
82.RS 4
83Packets matching this kind of route are silently discarded. There will be no ICMP message
84sent to the source and no packet be forwarded.
85.RE
86.PP
87
88.SH SEE ALSO
89network(8), ip-route(8)
90
91.SH AUTHOR
92Michael Tremer (michael.tremer@ipfire.org)