Installation
------------

1/ run "php install.php", you have to use version 5.3 or newer
2/ go to /etc/mpath-tools and edit the config files according to your setup
3/ add the following entries to your /etc/iproute2/rt_* files :

rt_protos :

#
# mpathd
#
200 mpathd

rt_realms :

#
# local
#
1 gateway1
2 gateway2
# use your gateway names as defined in mpathd.conf instead of "gateway1" and
# "gateway2", also you may add more than 2 if needed.

rt_tables :

#
# mpathd
#
1 gateway1
2 gateway2
# use your gateway names as defined in mpathd.conf instead of "gateway1" and
# "gateway2", also you may add more than 2 if needed.
10 mpath_dyn_0
11 mpath_dyn_1
12 mpath_dyn_2
13 mpath_dyn_3
14 mpath_dyn_4
15 mpath_dyn_5
16 mpath_dyn_6
17 mpath_dyn_7
18 mpath_dyn_8
19 mpath_dyn_9
20 mpath_dyn_10
21 mpath_dyn_11
22 mpath_dyn_12
23 mpath_dyn_13
24 mpath_dyn_14
25 mpath_dyn_15
26 mpath_dyn_16
27 mpath_dyn_17
28 mpath_dyn_18
29 mpath_dyn_19


3/ setup your iptables rules (see comments in sample rules.conf)
4/ run "mpathd"
5/ if successful, check if everything works with "mpath show gateways"