Add encapsulation support to ip route

Bug #1771764 reported by Nicolas Dichtel
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iproute2 (Ubuntu)
Fix Released
Wishlist
Unassigned
Xenial
Triaged
Wishlist
Unassigned

Bug Description

The following command does not work:

$ ip route add 10.201.0.0/24 nexthop encap mpls 300 via 10.200.0.1 dev ntfp2
Error: "nexthop" or end of line is expected instead of "encap"

In fact, iproute2 version points to v4.3.0, but the xenial kernel is a 4.4.
$ ip -V
ip utility, iproute2-ss151103

=> https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=6720eceff7b4

With an iproute2 v4.4.0 (iproute2-ss160111), that command works:
$ modprobe mpls_iptunnel
$ ./ip/ip route add 10.201.0.0/24 nexthop encap mpls 300 via 10.200.0.1 dev ntfp2
$ ./ip/ip r
[snip]
10.201.0.0/24 encap mpls 300 via 10.200.0.1 dev ntfp2

At least, this patch is missing:
1e5293056a02 ("lwtunnel: Add encapsulation support to ip route")
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=1e5293056a02

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1771764

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: xenial
affects: linux (Ubuntu) → iproute2 (Ubuntu)
Revision history for this message
Khaled El Mously (kmously) wrote : Re: iproute2: unable to add ip lwt mpls route on xenial

Proposed fix for lp #1771764 and lp #1771783

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "proposed-fix-1771764-1771783.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for iproute2 (Ubuntu) because there has been no activity for 60 days.]

Changed in iproute2 (Ubuntu):
status: Incomplete → Expired
Changed in iproute2 (Ubuntu):
status: Expired → Triaged
importance: Undecided → Medium
Revision history for this message
Nicolas Dichtel (nicolas-dichtel) wrote :

I tested the patch, it works.
Thank you.

Mathew Hodson (mhodson)
tags: added: patch-accepted-upstream
Mathew Hodson (mhodson)
Changed in iproute2 (Ubuntu):
importance: Medium → Wishlist
Mathew Hodson (mhodson)
Changed in iproute2 (Ubuntu):
status: Triaged → Fix Released
Changed in iproute2 (Ubuntu Xenial):
importance: Undecided → Wishlist
status: New → Triaged
summary: - iproute2: unable to add ip lwt mpls route on xenial
+ Add encapsulation support to ip route
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Please see my comment on bug 1771783 -- unsubscribing the Ubuntu Sponsors Team.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.