Znachi, imam dva adsl-a po 2mbita i iskam da gi balansiram
pravia go po sledniia na4in no nestava.
eth0 - 192.168.99.1/24 local lan
eth1 - 192.168.1.2/24 adsl1 ,gw 192.168.1.1
eth2 - 192.168.2.2/24 adsl2 ,gw 192.168.2.1
/sbin/ip route add 192.168.1.0/24 dev eth1 src 192.168.1.2
table adsl1
/sbin/ip route add default via 192.168.1.1 table adsl1
/sbin/ip route add 192.168.2.0/24 dev eth2 src 192.168.2.2
table adsl2
/sbin/ip route add default via 192.168.2.1 table adsl2
/sbin/ip route add 192.168.1.0/24 dev eth1 src 192.168.1.2
/sbin/ip route add 192.168.2.0/24 dev eth2 src 192.168.2.2
/sbin/ip route add default via 192.168.1.1
/sbin/ip rule add from 192.168.1.2 table adsl1
/sbin/ip rule add from 192.168.2.2 table adsl2
/sbin/ip route add 192.168.99.0/24 dev eth0 table adsl1
/sbin/ip route add 192.168.2.0/24 dev eth2 table adsl1
/sbin/ip route add 127.0.0.0/8 dev lo table adsl1
/sbin/ip route add 192.168.99.0/24 dev eth0 table adsl2
/sbin/ip route add 192.168.1.0/24 dev eth1 table adsl2
/sbin/ip route add 127.0.0.0/8 dev lo table adsl2
/sbin/ip route add default scope global nexthop via
192.168.1.1 dev eth1 weight 1 \
nexthop via 192.168.2.1 dev eth2 weight 1
Tova neshto sum go pravil po primer na
[URL=http://lartc.org/howto/lartc.rpdb.multi...
, no mi dava slednite greshki kato go izpulnia:
[code]
root@router:~# /sbin/ip route add 192.168.1.0/24 dev eth1
src 192.168.1.2 table adsl1
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add default via 192.168.1.1
table adsl1
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add 192.168.2.0/24 dev eth2
src 192.168.2.2 table adsl2
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add default via 192.168.2.1
table adsl2
RTNETLINK answers: File exists
/sbin/ip route add 192.168.1.0/24 dev eth1 src 192.168.1.2
root@router:~# /sbin/ip route add 192.168.1.0/24 dev eth1
src 192.168.1.2
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add 192.168.2.0/24 dev eth2
src 192.168.2.2
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add default via 192.168.1.1
RTNETLINK answers: File exists
root@router:~# /sbin/ip rule add from 192.168.1.2 table
adsl1
RTNETLINK answers: Invalid argument
root@router:~# /sbin/ip rule add from 192.168.2.2 table
adsl2
RTNETLINK answers: Invalid argument
root@router:~# /sbin/ip route add 192.168.99.0/24 dev eth0
table adsl1
/sbin/ip route add 192.168.2.0/24 dev eth2 table adsl1
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add 192.168.2.0/24 dev eth2
table adsl1
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add 127.0.0.0/8 dev lo table
adsl1
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add 192.168.99.0/24 dev eth0
table adsl2
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add 192.168.1.0/24 dev eth1
table adsl2
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add 127.0.0.0/8 dev lo table
adsl2
RTNETLINK answers: File exists
root@router:~# /sbin/ip route add default scope global
nexthop via 192.168.1.1 dev eth1 weight 1 \
> nexthop via 192.168.2.1 dev eth2 weight 1
RTNETLINK answers: Invalid argument
root@router:~#
[/code]
Dano niakoi ima ideia zashto stava taka!!! :)
Az mislia che e svurzano s iproute2 ili neshto v kurnela, zashtoto
kato napisha ip rule i nishto ne mi izliza a netriabva da e
taka.... MOLQ ZA HELP.....!!!!
|