i need help,
at my scenario I need that pakets from hosts wich have default gw eth0 to lookup
table 1
and the pakets that come from hosts that have default gw eth0:0 to lookup tha
main table
in my tests the scenario 1 didn''t work and at the scenario 2 everything
works
I reseted to default switches but everything is the same,
anyone have the idea or explanation what could be a problem,
router configuration
eth0 10.0.0.254/24 -- LAN
eth0:0 10.0.0.253/24 -- LAN
eth1 100.100.100.254/24 -- BACKBONE
Table main
ip route add 10.0.0.0/24 via 10.0.0.253 table main
ip route add 100.100.100.0/24 dev eth1 table main
ip route add default via 100.100.100.2 table main
Table 1
ip route add 10.0.0.0/24 via 10.0.0.254 table 1
ip route add 100.100.100.0/24 dev eth1 table 1
ip route add default via 100.100.100.1 table 1
ip rule add dev eth0 table 1
-------------------------------------------------------
Scenario 1
backbone
==switch= |
|
==router== --- ==switch= |
|
LAN
-------------------------------------------------------
Scenario 2
backbone
==switch= |-------------| |
| | |
==router== --- ==switch= |
|
LAN
--------------------------------------------------------
thanks a lot,