I can''t made the load balancing.
Where are my mistakes ?
I''m too bad in english, here is all informations of my configuration :
debby:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.5.253
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
auto eth1
iface eth1 inet static
address 192.168.6.253
netmask 255.255.255.0
network 192.168.6.0
broadcast 192.168.6.255
auto eth2
iface eth2 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
debby:~#
debby:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:BA:CB:72:16
inet addr:192.168.5.253 Bcast:192.168.5.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7660 errors:0 dropped:0 overruns:0 frame:0
TX packets:4718 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:10609393 (10.1 MiB) TX bytes:433083 (422.9 KiB)
Interrupt:15 Base address:0xf000
eth1 Link encap:Ethernet HWaddr 00:50:BA:CB:64:40
inet addr:192.168.6.253 Bcast:192.168.6.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7314 errors:0 dropped:0 overruns:0 frame:0
TX packets:4520 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
RX bytes:10415552 (9.9 MiB) TX bytes:338686 (330.7 KiB)
Interrupt:10 Base address:0x1000
eth2 Link encap:Ethernet HWaddr 00:50:BA:CB:5F:81
inet addr:192.168.1.100 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1589 errors:0 dropped:0 overruns:0 frame:0
TX packets:331 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
RX bytes:127581 (124.5 KiB) TX bytes:19173 (18.7 KiB)
Interrupt:5 Base address:0x3000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:760 (760.0 b) TX bytes:760 (760.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:193.253.222.15 P-t-P:193.253.160.3
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:7546 errors:0 dropped:0 overruns:0 frame:0
TX packets:4605 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:10436429 (9.9 MiB) TX bytes:328333 (320.6 KiB)
ppp1 Link encap:Point-to-Point Protocol
inet addr:193.252.48.71 P-t-P:193.253.160.3
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:7191 errors:0 dropped:0 overruns:0 frame:0
TX packets:4398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:10249876 (9.7 MiB) TX bytes:238220 (232.6 KiB)
I''m trying this :
debby:~# cat routage
ip rule add from 193.253.222.15 lookup 1
ip route add 192.168.1.0/24 via 192.168.1.100 table 1
ip route add 0/0 via 193.253.222.15 table 1
ip rule add from 193.252.48.71 lookup 2
ip route add 192.168.1.0/24 via 192.168.1.100 table 2
ip route add 0/0 via 193.252.48.71 table 2
ip route add default equalize nexthop via 193.253.222.15 dev ppp0
nexthop via 193.252.48.71 dev ppp1
But it doesn''t work
debby:~# ./routage
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
debby:~#
debby:~# ip route show
193.253.160.3 dev ppp0 proto kernel scope link src 193.253.222.15
193.253.160.3 dev ppp1 proto kernel scope link src 193.252.48.71
default via 193.253.160.3 dev ppp0
debby:~# ip route list table 1
192.168.1.0/24 via 192.168.1.100 dev eth2
default via 193.253.222.15 dev ppp0
debby:~# ip route list table 2
192.168.1.0/24 via 192.168.1.100 dev eth2
default via 193.252.48.71 dev ppp1
debby:~#
debby:~# ip route show
193.253.160.3 dev ppp0 proto kernel scope link src 193.253.222.15
193.253.160.3 dev ppp1 proto kernel scope link src 193.252.48.71
default via 193.253.160.3 dev ppp0
debby:~#
Thnx
--
VETSEL Patrice
Forum d''aide DEBIAN Francophone sur : http://kagou.tuxfamily.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/