man: ip-route.8: Document nexthop limit
Subsystems (2)
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
@@ -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
Quoted 5 lines · Phil Sutter
man/man8/ip-route.8.in +0
-0
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.
Hi David,
Quoted 9 lines · David Ahern
Quoted 8 lines · Phil Sutter
man/man8/ip-route.8.in +0
-0@@ -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
Stephen Hemminger
AppliedQuoted 4 lines · On Mon, 12 Nov 2018 23:21:01 +0100 Phil Sutter <[email protected]> wrote:
Add a note to 'nexthop' description stating the maximum number of nexthops per command and pointing at 'append' command as a workaround.
Signed-off-by Phil Sutter <[email protected]>
Applied