venerdì, settembre 19, 2014

linux source routing (multiple routing tables)

ip addr add 192.168.74.10/24 dev ${NIC}
ip route add default via 192.168.74.1 dev ${NIC} table 60
ip route add 192.168.74.0/24 dev ${NIC} table 60
ip rule add from ${IP} lookup 60

Nessun commento: