/ 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ip route show table main | grep -Ev ^default | while read ROUTE; do ip route add $ROUTE table new-routing-table; done
Comments
