Skip to contentSkip to conversation

man: ip-route.8: Document nexthop limit

PATCH Applied Phil Sutter 3 participants 4 messages Nov 13, 2018 – Nov 15, 2018

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man: ip-route.8: Document nexthop limit

Add a note to 'nexthop' description stating the maximum number of nexthops per command and pointing at 'append' command as a workaround.

---
 man/man8/ip-route.8.in | 7 +++++++
 1 file changed, 7 insertions(+)
man/man8/ip-route.8.in +7 -0
index a33ce1f0f4006..383178c11331e 100644
@@ -589,6 +589,13 @@ argument lists:
 route reflecting its relative bandwidth or quality.
 .in -8
 
+The internal buffer used in iproute2 limits the maximum number of nexthops to
+be specified in one go. If only a gateway address is given, the current buffer
+size allows for 144 IPv6 nexthops and 253 IPv4 ones. If more are required, they
+may be added to the existing route using
+.B "ip route append"
+command.
+
 .TP
 .BI scope " SCOPE_VAL"
 the scope of the destinations covered by the route prefix.
Signature · 1 line
2.19.0
#1 lore raw
Quoted 5 lines · Phil Sutter
man/man8/ip-route.8.in +0 -0
index a33ce1f0f4006..383178c11331e 100644

man/man8/ip-route.8.in argument lists: · line 598

Quoted 10 lines
man/man8/ip-route.8.in +7 -0
@@ -589,6 +589,13 @@ argument lists:
 route reflecting its relative bandwidth or quality.
 .in -8
 
+The internal buffer used in iproute2 limits the maximum number of nexthops to
+be specified in one go. If only a gateway address is given, the current buffer
+size allows for 144 IPv6 nexthops and 253 IPv4 ones. If more are required, they
+may be added to the existing route using
+.B "ip route append"
+command.
+

That is not true for IPv4. 'ip ro append' adds a new route after the existing route - an entry that can not be hit unless all of the nexthops in the first route are down. 'ip ro prepend' adds a new entry before the existing one meaning it takes precedence over the existing entries.

For IPv6, 'append' and 'prepend' both add new nexthops to the existing entry.

#2 lore raw

Hi David,

Quoted 9 lines · David Ahern
Quoted 8 lines · Phil Sutter
man/man8/ip-route.8.in +0 -0
index a33ce1f0f4006..383178c11331e 100644
@@ -589,6 +589,13 @@ argument lists:
 route reflecting its relative bandwidth or quality.
 .in -8
 
Quoted 12 lines

man/man8/ip-route.8.in argument lists: · line 598

Quoted 7 lines
man/man8/ip-route.8.in +7 -0
+The internal buffer used in iproute2 limits the maximum number of nexthops to
+be specified in one go. If only a gateway address is given, the current buffer
+size allows for 144 IPv6 nexthops and 253 IPv4 ones. If more are required, they
+may be added to the existing route using
+.B "ip route append"
+command.
+

That is not true for IPv4. 'ip ro append' adds a new route after the existing route - an entry that can not be hit unless all of the nexthops in the first route are down. 'ip ro prepend' adds a new entry before the existing one meaning it takes precedence over the existing entries.

Oh, thanks for clarifying. I'll follow-up with a fixed version.

Quoted 2 lines

For IPv6, 'append' and 'prepend' both add new nexthops to the existing entry.

'ip route prepend' is not even documented. :(

Thanks, Phil