04 Ene, 2010
Enrutar interfaces por distintos gateway con iproute
Posted by: leopoldomaestro In: Linux
# Creamos la tabla de rutas
echo «1 admin» >> /etc/iproute2/rt_tables
# definimos gateway y interfaces
ip route add 192.168.143.0/24 dev eth0.101 src 91.200.143.253 table admin
ip route add default via 192.168.143.1 dev eth0.101 table admin
# reglas from y to
ip rule add from 192.168.143.253/32 table admin
ip rule add to 192.168.143.253/32 table admin