You are not logged in.
# ip route show table 17
Errror: ipv4: FIB table does not exist.
Last edited by Xelvet (2023-10-22 12:54:29)
Offline
First to find out table names
# ip route show table all | sed -n "s;.*table\s\(.*\)\sproto.*;\1;p"
...
local
...
Then print by name
# ip route show table local
Offline
# ip route show table 17 Errror: ipv4: FIB table does not exist.
Tables are not created by default.
# ip r show table 17
Error: ipv4: FIB table does not exist.
# ip r add to 1.2.3.4 via 192.168.1.1 table 17
# ip r show table 17
1.2.3.4 via 192.168.1.1 dev wlan0
# ip r del to 1.2.3.4 via 192.168.1.1 table 17
# ip r show table 17
#
Notice there was no error after last ip show command, as table now exists
Also you do not need to reboot to reload /etc/iproute2/rt_tables
New settings apply immediately.
Offline
ahh thX. indeed. i did create
it but it was empty. weird still..
& where should one best put
these ip rule & route policies
so they would survive reboot?
Last edited by Xelvet (2023-10-22 13:42:05)
Offline
& where should one best put
these ip rule & route policies
so they can survive reboot?
I use systemd-networkd.
man systemd.network
[ROUTE] and [ROUTINGPOLICYRULE] sections
Offline
man systemd.network [ROUTE]
and [ROUTINGPOLICYRULE] sections
Thank You. New Stuff. i shall loOk into it..
Last edited by Xelvet (2023-10-22 16:26:26)
Offline