Differencie between route and route-rule
HI,
could you explain what's difference between this two examples ?
ip addr add 10.10.10.3/24 brd + dev eth0
ip addr add 192.168.1.254/24 brd + dev eth1
ip route add default 10.10.10.1
# first case ip route add via 10.10.10.5 table 100 ip rule add to 192.168.2.0/24 table 100
# second case ip route add to 192.168.2.0/24 via 10.10.10.5
In 1st case it make some stange thing. In 2nd case it work fine. I only see one difference that in 2nd case is all in table main.
I would like if somebody explain me what happed in 1st and in 2nd case.
PSIkappa
[email protected]
PS: sorry for my english
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/