[LARTC] routing: multiple tables dude

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I have this configuration here:


$ip rule add from 172.16.0.0/24 lookup 80 $ip rule add to 172.16.0.0/24 lookup 81

$ip route add 0.0.0.0/0 via 195.55.92.122 table 80
$ip route add 195.55.92.122 dev vlan7 table 80          <- Is really necessary?
$ip route add 172.16.0.0/24 via 172.16.0.254 table 81

and...

$ip rule add from 172.16.0.5 lookup 800
$ip rule add from 172.16.0.6 lookup 800
$ip rule add from 172.16.0.7 lookup 800
$ip rule add to 172.16.0.5 lookup 810
$ip rule add to 172.16.0.6 lookup 810
$ip rule add to 172.16.0.7 lookup 810

$ip route add 0.0.0.0/0 via 195.55.97.222 table 800
$ip route add 195.55.92.122 dev vlan7 table 800 <- Is really necessary too?
$ip route add 172.16.0.0/24 via 172.16.0.254 table 810


What tables will be used by 172.16.0.5? 80 and 81? or 800 and 810? Should I use prio command?


Luis Miguel Cruz Miranda. | B2B INTEGRAL, S.A. CCNA - Systems Administrator | Pol. Ind. de Asipo | C/A - Parcela 86-C Tel: +34 902 506 605 | 33.428 - CAYES - LLANERA Fax:+34 985 980 794 | ASTURIAS (ESPAÑA/SPAIN)




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux