man: explain rt_tables.d and rt_protos.d directories
Subsystems (2)
PATCH 2/2 man: explain rt_tables.d and rt_protos.d directories
--- man/man8/ip-route.8.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
man/man8/ip-route.8.in +14 -0
@@ -1474,6 +1474,20 @@ ip route add 10.1.1.0/30 nhid 10 .RS 4 Adds an ipv4 route using nexthop object with id 10. .RE + +.SH FILES +.BR *.conf +files under +.BR @SYSCONF_USR_DIR@/rt_tables.d " or " @SYSCONF_ETC_DIR@/rt_tables.d +are also read in addition to +.BR @SYSCONF_USR_DIR@/rt_tables " or " @SYSCONF_ETC_DIR@/rt_tables "." + +.BR *.conf +files under +.BR @SYSCONF_USR_DIR@/rt_protos.d " or " @SYSCONF_ETC_DIR@/rt_protos.d +are also read in addition to +.BR @SYSCONF_USR_DIR@/rt_protos " or " @SYSCONF_ETC_DIR@/rt_protos "." + .SH SEE ALSO .br .BR ip (8)
Signature · 1 line
2.51.0
Quoted 20 lines · On Thu, 18 Dec 2025 00:45:47 +0900 Masatake YAMATO <[email protected]> wrote:
Signed-off-by Masatake YAMATO <[email protected]>--- man/man8/ip-route.8.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+)man/man8/ip-route.8.in +7
-0@@ -1474,6 +1474,20 @@ ip route add 10.1.1.0/30 nhid 10 .RS 4 Adds an ipv4 route using nexthop object with id 10. .RE + +.SH FILES +.BR *.conf +files under +.BR @SYSCONF_USR_DIR@/rt_tables.d " or " @SYSCONF_ETC_DIR@/rt_tables.d +are also read in addition to +.BR @SYSCONF_USR_DIR@/rt_tables " or " @SYSCONF_ETC_DIR@/rt_tables "."
man/man8/ip-route.8.in ip route add 10.1.1.0/30 nhid 10 · line 1493
Quoted 10 lines
man/man8/ip-route.8.in +7
-0+ +.BR *.conf +files under +.BR @SYSCONF_USR_DIR@/rt_protos.d " or " @SYSCONF_ETC_DIR@/rt_protos.d +are also read in addition to +.BR @SYSCONF_USR_DIR@/rt_protos " or " @SYSCONF_ETC_DIR@/rt_protos "." + .SH SEE ALSO .br .BR ip (8)
This results in the same paragraph twice??
FILES
*.conf files under /usr/share/iproute2/rt_tables.d or
/etc/iproute2/rt_tables.d are also read in addition to
/usr/share/iproute2/rt_tables or /etc/iproute2/rt_tables.
*.conf files under /usr/share/iproute2/rt_protos.d or
/etc/iproute2/rt_protos.d are also read in addition to
/usr/share/iproute2/rt_protos or /etc/iproute2/rt_protos.
From: Stephen Hemminger <[email protected]>
Subject: Re: [PATCH iproute2 2/2] man: explain rt_tables.d and rt_protos.d directories
Date: Sat, 20 Dec 2025 17:38:27 -0800
Quoted 36 lines
Quoted 20 lines · On Thu, 18 Dec 2025 00:45:47 +0900 Masatake YAMATO <[email protected]> wrote:
Signed-off-by Masatake YAMATO <[email protected]>--- man/man8/ip-route.8.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+)man/man8/ip-route.8.in +7
-0@@ -1474,6 +1474,20 @@ ip route add 10.1.1.0/30 nhid 10 .RS 4 Adds an ipv4 route using nexthop object with id 10. .RE + +.SH FILES +.BR *.conf +files under +.BR @SYSCONF_USR_DIR@/rt_tables.d " or " @SYSCONF_ETC_DIR@/rt_tables.d +are also read in addition to +.BR @SYSCONF_USR_DIR@/rt_tables " or " @SYSCONF_ETC_DIR@/rt_tables "."man/man8/ip-route.8.in ip route add 10.1.1.0/30 nhid 10 · line 1493
Quoted 10 lines
man/man8/ip-route.8.in +7
-0+ +.BR *.conf +files under +.BR @SYSCONF_USR_DIR@/rt_protos.d " or " @SYSCONF_ETC_DIR@/rt_protos.d +are also read in addition to +.BR @SYSCONF_USR_DIR@/rt_protos " or " @SYSCONF_ETC_DIR@/rt_protos "." + .SH SEE ALSO .br .BR ip (8)This results in the same paragraph twice??
Quoted 9 lines
FILES
*.conf files under/usr/share/iproute2/rt_tables.dor
/etc/iproute2/rt_tables.dare also read in addition to
/usr/share/iproute2/rt_tablesor/etc/iproute2/rt_tables.*.conf files under
/usr/share/iproute2/rt_protos.dor
/etc/iproute2/rt_protos.dare also read in addition to
/usr/share/iproute2/rt_protosor/etc/iproute2/rt_protos.
They are similar, but a little different; please look at "rt_tables" and "rt_protos".
Masatake YAMATO