Advertisement
mariussm

ucarp_no_bonding

Aug 18th, 2011
1,900
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. # VERSION NOT USING BONDING INTERFACE:
  2.  
  3. # The loopback network interface
  4. auto lo
  5. iface lo inet loopback
  6.  
  7. # The primary network interface
  8. allow-hotplug eth0
  9.  
  10. iface eth0 inet static
  11.     address 10.0.0.102
  12.     netmask 255.255.255.0
  13.     network 10.0.0.0
  14.     broadcast 10.0.0.255
  15.     gateway 10.0.0.1
  16.     # dns-* options are implemented by the resolvconf package, if installed
  17.     dns-nameservers 8.8.8.8 8.8.4.4
  18.     dns-search example.com
  19.  
  20.     # Ucarp ID (cluster id, must be equal on the servers)
  21.     ucarp-vid 3
  22.     # The virtual shared ip
  23.     ucarp-vip 10.0.0.100
  24.     # Secret password
  25.     ucarp-password Topsecret42
  26.     # priority - lower is better
  27.     ucarp-advskew 100
  28.     ucarp-advbase 1
  29.     # Should only be set on one server
  30.     ucarp-master no
  31.  
  32. iface eth0:ucarp inet static
  33.     # Same virtual ip as above
  34.     address 10.0.0.100
  35.     netmask 255.255.255.255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement