Posted By

laforge on 10/14/10


routing iproute2 policy

Versions (?)

Populating a new routing table on linux without the default

 / Published in: Bash

Useful when you want to do policy routing on linux and need to populate a new routing table, without the default route.

  1. ip route show table main | grep -Ev ^default | while read ROUTE; do ip route add $ROUTE table new-routing-table; done

Report this snippet  

You need to login to post a comment.