Categories
Uncategorized

Linux have more than one routing table

If you do “ip -6 route” on the command line you see a routing table. I always thought that was the only one. A few days ago i needed to route not only on destination address but also on source address. First it seemed impossible. The routing table dont have anything for source address it only looks at the destination address. I searched on google. I found something called policy based routing. It can do routing on many things. If you do “ip -6 rule” you will see some other routing tables mentioned. You can add a rule with “ip -6 rule add …”. You can add something to a routing table by adding “table tablenumber” after “ip -6 route add …”.

4 replies on “Linux have more than one routing table”

Leave a Reply

Your email address will not be published. Required fields are marked *