Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

iproute2 / rt_tables missing - does not exist [Resolved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
lostinspace2011
Apprentice
Apprentice
Posts: 240
Joined: Fri Sep 09, 2005 10:41 pm

iproute2 / rt_tables missing - does not exist [Resolved]

  • Quote

Post by lostinspace2011 » Fri Feb 13, 2026 12:37 am

Just looking at implementing policy based routing (https://mjg59.dreamwidth.org/72095.html) and following the steps described https://wiki.gentoo.org/wiki/Policy_based_routing

However on both my Gentoo servers the /etc/iproute2 folder does not exist. It must be something I missed in the setup.

I have confirmed that my kernel is configured as described in the Gentoo wiki and the iproute2 package is installed.

Any pointers what do look at or what I might have missed
Last edited by lostinspace2011 on Fri Feb 13, 2026 1:31 am, edited 1 time in total.
Top
lostinspace2011
Apprentice
Apprentice
Posts: 240
Joined: Fri Sep 09, 2005 10:41 pm

  • Quote

Post by lostinspace2011 » Fri Feb 13, 2026 12:49 am

I did try and create the folder / files manually

Code: Select all

# cat /etc/iproute2/rt_tables
1 wireguard

Code: Select all

# ip route show table wireguard
Error: ipv4: FIB table does not exist.
Dump terminated
Top
lostinspace2011
Apprentice
Apprentice
Posts: 240
Joined: Fri Sep 09, 2005 10:41 pm

  • Quote

Post by lostinspace2011 » Fri Feb 13, 2026 12:57 am

Kernel settings
│ │ [*] TCP/IP networking │ │
│ │ [*] IP: multicasting │ │
│ │ [*] IP: advanced router │ │
│ │ [ ] FIB TRIE statistics │ │
│ │ [*] IP: policy routing │ │
│ │ [*] IP: equal cost multipath │ │
│ │ [*] IP: verbose route monitoring │ │
│ │ [*] IP: kernel level autoconfiguration │ │
│ │ [*] IP: DHCP support │ │
│ │ [*] IP: BOOTP support │ │
│ │ [*] IP: RARP support │ │
│ │ < > IP: tunneling │ │
│ │ < > IP: GRE demultiplexer │ │
│ │ [*] IP: multicast routing │ │
│ │ [ ] IP: multicast policy routing │ │
│ │ [*] IP: PIM-SM version 1 support │ │
│ │ [*] IP: PIM-SM version 2 support
Top
lostinspace2011
Apprentice
Apprentice
Posts: 240
Joined: Fri Sep 09, 2005 10:41 pm

  • Quote

Post by lostinspace2011 » Fri Feb 13, 2026 1:06 am

Found the file in /usr/share/iproute2/rt_tables

Code: Select all

# cat /usr/share/iproute2/rt_tables
#
# reserved values
#
255     local
254     main
253     default
0       unspec
#
# local
#
#1      inr.ruhep
1       wireguard
However something is still not quite right

Code: Select all

# ip route show table 1
Error: ipv4: FIB table does not exist.
Dump terminated
# ip route show table wireguard
Error: ipv4: FIB table does not exist.
Dump terminated
Top
salahx
Guru
Guru
Posts: 572
Joined: Sat Mar 12, 2005 6:39 am

  • Quote

Post by salahx » Fri Feb 13, 2026 1:10 am

/etc/iproute2 isn't present on my system later
.
Note that adding an entry there doesn't DEFINE a table, it just creates an alias. You have to use define the table first. If you are using some kind of network manager, like netifrc, NetworkMAnager or systemd-networkd, I recommend you do it there.
Top
lostinspace2011
Apprentice
Apprentice
Posts: 240
Joined: Fri Sep 09, 2005 10:41 pm

  • Quote

Post by lostinspace2011 » Fri Feb 13, 2026 1:31 am

Once I started configuring wireguard to use the extra routing table, it all started working nicely
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic