[LARTC] Differencie between route and route-rule

Linux Advanced Routing and Traffic Control

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

 



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
psi@xxxxxxxxxxx

PS: sorry for my english




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