mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-12-07 16:00:42 +00:00
This patch adds support to parse and print lwtunnel
encapsulation attributes attached to routes for MPLS
and IP tunnels.
example:
Add ipv4 route with mpls encap attributes:
Examples:
MPLS:
$ ip route add 40.1.2.0/30 encap mpls 200 via inet 40.1.1.1 dev eth3
$ ip route show
40.1.2.0/30 encap mpls 200 via 40.1.1.1 dev eth3
Add ipv4 multipath route with mpls encap attributes:
$ ip route add 10.1.1.0/30 nexthop encap mpls 200 via 10.1.1.1 dev eth0 \
nexthop encap mpls 700 via 40.1.1.2 dev eth3
$ ip route show
10.1.1.0/30
nexthop encap mpls 200 via 10.1.1.1 dev eth0 weight 1
nexthop encap mpls 700 via 40.1.1.2 dev eth3 weight 1
IP:
$ ip route add 10.1.1.1/24 encap ip id 200 dst 20.1.1.1 dev vxlan0
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Jiri Benc <jbenc@redhat.com>
|
||
|---|---|---|
| .. | ||
| libiptc | ||
| linux | ||
| netinet | ||
| bpf_elf.h | ||
| bpf_scm.h | ||
| color.h | ||
| dlfcn.h | ||
| hlist.h | ||
| ip6tables.h | ||
| iptables_common.h | ||
| iptables.h | ||
| json_writer.h | ||
| libgenl.h | ||
| libnetlink.h | ||
| ll_map.h | ||
| names.h | ||
| namespace.h | ||
| rt_names.h | ||
| rtm_map.h | ||
| SNAPSHOT.h | ||
| utils.h | ||
| xt-internal.h | ||