Score:0

Ubuntu 22 does not accept new routing table

to flag

I'm running Ubuntu 22.04 with Kernel 5.15.0 and I am unable to create a new routing table.

  1. Create a new, custom routing table:
$ sudo cat /etc/iproute2/rt_tables
#
# reserved values
#
255 local
254 main
253 default
0   unspec
#
# local
#
1   rt2
  1. reboot to make sure that the new table is known system wide

  2. Add a new route to the newly create routing table rt2:

$ sudo ip rule add from 10.0.99.0/24 table rt2
  1. Show the content of the newly create routing table rt2 leads to an error:
$ sudo ip route show table rt2
Error: ipv4: FIB table does not exist.
Dump terminated

Any idea what I am doing wrong?

mpboden avatar
do flag
Did you add any actual routes to the new table with `ip route`?
sugusi avatar
to flag
No I didn't. Would it be possible to give me a sample cmd? I would need to have this: ``` $ sudo ip rule add from 10.0.99.0/24 table rt2 ```
mpboden avatar
do flag
There are many tutorials about routing and adding additional routes. How about [here](https://www.poftut.com/add-new-route-ubuntu-linux/) or [here](https://devconnected.com/how-to-add-route-on-linux/) to get started?
sugusi avatar
to flag
None of the links you posted give me any hints on how to add a new route to a custom (none default) routing table (in my case ```rt2```). Or did I miss something?
mpboden avatar
do flag
[This](http://linux-ip.net/html/routing-tables.html) is another link you might find helpful. But as an example: `ip route add table rt2 80.100.141.27/32 via 167.99.208.1 dev eth0 src 10.18.0.10`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.