Skip to main content
7 events
when toggle format what by license comment
May 4, 2023 at 16:51 review Suggested edits
May 4, 2023 at 18:52
Aug 11, 2022 at 9:38 comment added kol I had to issue these commands in reverse order: 1st sudo ip route add default via <router-addr> dev <device-name> table <table-id>, 2nd sudo ip rule add from <source-addr>/<mask> lookup <table-id>. I think the 1st one creates the table and the 2nd adds a line to it, so the reverse order shouldn't work.
S Mar 17, 2017 at 23:43 history suggested sebastian CC BY-SA 3.0
Move `table ...` to end, add `via <router>` statement.
Mar 17, 2017 at 22:03 review Suggested edits
S Mar 17, 2017 at 23:43
Jan 12, 2012 at 2:23 comment added Alex one correction (but not sure if your one will also work. for the second command: ip route add default dev eth4 table <name> (table directive should go at the end I think, just like in the first command... also default can be replaced by a subnet, just like in your example)
Jan 12, 2012 at 2:20 vote accept Alex
Jan 10, 2012 at 21:50 history answered Fox CC BY-SA 3.0