Advertisement
Guest User

Untitled

a guest
Mar 1st, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. root@bob:~# cat /usr/share/doc/ucarp/README.Debian
  2. ucarp for Debian
  3. ----------------
  4.  
  5. The recommended method for configuring ucarp is via
  6. /etc/network/interfaces. For example:
  7.  
  8. iface eth0 inet static
  9. address 10.0.0.2
  10. netmask 255.255.255.0
  11. ucarp-vid 3
  12. ucarp-vip 10.0.0.1
  13. ucarp-password 16charsatmost
  14. ucarp-advskew 0
  15. ucarp-advbase 1
  16. ucarp-master yes
  17. iface eth0:ucarp inet static
  18. address 10.0.0.1
  19. netmask 255.255.255.255
  20.  
  21. In the above example, ucarp will be started when eth0 is brought up, using
  22. a vid of 3 and a password of 16charsatmost with a virtual IP of 10.0.0.1.
  23. When ucarp determines that this host is the master eth0:ucarp will be
  24. brought up - you can use the normal pre-up/up stanzas in
  25. /etc/network/interfaces if you have extra things to do when the virtual
  26. IP comes up.
  27.  
  28. You can also override the default up/down scripts (defaults to
  29. /usr/share/ucarp/vip-{down,up}) by using the ucarp-upscript and
  30. ucarp-downscript options. Note that you must ensure your scripts take
  31. care of bringing the virtual IP up and down if you do this.
  32.  
  33. The full list of configurable values follows, see ucarp(8) for a
  34. complete description of the corresponding command arguments.
  35.  
  36. config directive | ucarp command argument | required
  37. ------------------+-------------------------+---------
  38. ucarp-vid | -v/--vhid | yes
  39. ucarp-vip | -a/--addr | yes
  40. ucarp-password | -p/--pass | yes
  41. ucarp-downscript | -d/--downscript | no
  42. ucarp-upscript | -u/--upscript | no
  43. ucarp-advskew | -k/--advskew | no
  44. ucarp-advbase | -b/--advbase | no
  45. ucarp-master | -P/--preempt | no
  46. ucarp-deadratio | -r/--deadratio | no
  47. ucarp-nomcast | -M/--nomcast | no
  48. ucarp-xparam | -x/--xparam | no
  49.  
  50. -- Eric Evans <eevans@debian.org> Sat, 25 Jul 2009 16:56:39 +0000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement