mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-08 14:50:03 +00:00
ip-route man: add usage and description for lwtunnel encap attributes
This patch updates ip-route man page with lwtunnel encap usage and description, covering MPLS and IP encapsulation. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: Thomas Graf <tgraf@suug.ch> Acked-by: Jiri Benc <jbenc@redhat.com>
This commit is contained in:
parent
1e5293056a
commit
70e4663472
@ -80,6 +80,8 @@ replace " } "
|
|||||||
|
|
||||||
.ti -8
|
.ti -8
|
||||||
.IR NH " := [ "
|
.IR NH " := [ "
|
||||||
|
.B encap
|
||||||
|
.IR ENCAP " ] [ "
|
||||||
.B via
|
.B via
|
||||||
[
|
[
|
||||||
.IR FAMILY " ] " ADDRESS " ] [ "
|
.IR FAMILY " ] " ADDRESS " ] [ "
|
||||||
@ -164,6 +166,26 @@ throw " | " unreachable " | " prohibit " | " blackhole " | " nat " ]"
|
|||||||
.IR PREF " := [ "
|
.IR PREF " := [ "
|
||||||
.BR low " | " medium " | " high " ]"
|
.BR low " | " medium " | " high " ]"
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.IR ENCAP " := [ "
|
||||||
|
.IR MPLS " | " IP " ]"
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.IR ENCAP_MPLS " := "
|
||||||
|
.BR mpls " [ "
|
||||||
|
.IR LABEL " ]"
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.IR ENCAP_IP " := "
|
||||||
|
.B ip
|
||||||
|
.B id
|
||||||
|
.IR TUNNEL_ID
|
||||||
|
.B dst
|
||||||
|
.IR REMOTE_IP " [ "
|
||||||
|
.B tos
|
||||||
|
.IR TOS " ] ["
|
||||||
|
.B ttl
|
||||||
|
.IR TTL " ]"
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B ip route
|
.B ip route
|
||||||
@ -589,6 +611,48 @@ Discovery messages. Namely:
|
|||||||
- the route has a highest priority
|
- the route has a highest priority
|
||||||
.sp
|
.sp
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI encap " ENCAPTYPE ENCAPHDR"
|
||||||
|
attach tunnel encapsulation attributes to this route.
|
||||||
|
.sp
|
||||||
|
.I ENCAPTYPE
|
||||||
|
is a string specifying the supported encapsulation type. Namely:
|
||||||
|
|
||||||
|
.in +8
|
||||||
|
.BI mpls
|
||||||
|
- encapsulation type MPLS
|
||||||
|
.sp
|
||||||
|
.BI ip
|
||||||
|
- IP encapsulation (Geneve, GRE, VXLAN, ...)
|
||||||
|
.sp
|
||||||
|
|
||||||
|
.in -8
|
||||||
|
.I ENCAPHDR
|
||||||
|
is a set of encapsulation attributes specific to the
|
||||||
|
.I ENCAPTYPE.
|
||||||
|
|
||||||
|
.in +8
|
||||||
|
.B mpls
|
||||||
|
.in +2
|
||||||
|
.I MPLSLABEL
|
||||||
|
- mpls label stack with labels separated by
|
||||||
|
.I "/"
|
||||||
|
.in -2
|
||||||
|
.sp
|
||||||
|
|
||||||
|
.B ip
|
||||||
|
.in +2
|
||||||
|
.B id
|
||||||
|
.I TUNNEL_ID
|
||||||
|
.B dst
|
||||||
|
.IR REMOTE_IP " [ "
|
||||||
|
.B tos
|
||||||
|
.IR TOS " ] ["
|
||||||
|
.B ttl
|
||||||
|
.IR TTL " ]"
|
||||||
|
.in -2
|
||||||
|
.sp
|
||||||
|
|
||||||
.in -8
|
.in -8
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
@ -847,7 +911,11 @@ ip route add default via 192.168.1.1 dev eth0
|
|||||||
Adds a default route (for all addresses) via the local gateway 192.168.1.1 that can
|
Adds a default route (for all addresses) via the local gateway 192.168.1.1 that can
|
||||||
be reached on device eth0.
|
be reached on device eth0.
|
||||||
.RE
|
.RE
|
||||||
|
.PP
|
||||||
|
ip route add 10.1.1.0/30 encap mpls 200/300 via 10.1.1.1 dev eth0
|
||||||
|
.RS 4
|
||||||
|
Adds an ipv4 route with mpls encapsulation attributes attached to it.
|
||||||
|
.RE
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.br
|
.br
|
||||||
.BR ip (8)
|
.BR ip (8)
|
||||||
|
Loading…
Reference in New Issue
Block a user