Skip to contentSkip to conversation

man: explain rt_tables.d and rt_protos.d directories

PATCH In review Masatake YAMATO 2 participants 3 messages Dec 17, 2025 – Dec 22, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index aafa6d98..d30285a4 100644
@@ -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
#1 lore raw
Quoted 20 lines · On Thu, 18 Dec 2025 00:45:47 +0900 Masatake YAMATO <[email protected]> wrote:
---
 man/man8/ip-route.8.in | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
man/man8/ip-route.8.in +7 -0
index aafa6d98..d30285a4 100644
@@ -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.

#2 lore raw

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:
---
 man/man8/ip-route.8.in | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
man/man8/ip-route.8.in +7 -0
index aafa6d98..d30285a4 100644
@@ -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.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.

They are similar, but a little different; please look at "rt_tables" and "rt_protos".

Masatake YAMATO