Advertisement
mariussm

Server 2

Jun 25th, 2011
1,899
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1. # The loopback network interface
  2. auto lo
  3. iface lo inet loopback
  4.  
  5. # The primary network interface
  6. allow-hotplug eth0
  7. allow-hotplug eth1
  8. allow-hotplug bond0
  9.  
  10. iface bond0 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.     up /sbin/ifenslave bond0 eth0 eth1
  21.     down /sbin/ifenslave -d bond0 eth0 eth1
  22.    
  23.     # Ucarp ID (cluster id, must be equal on the servers)
  24.     ucarp-vid 3
  25.     # The virtual shared ip
  26.     ucarp-vip 10.0.0.100
  27.     # Secret password
  28.     ucarp-password Topsecret42
  29.     # priority - lower is better
  30.     ucarp-advskew 100
  31.     ucarp-advbase 1
  32.     # Should only be set on one server
  33.     ucarp-master no
  34.  
  35. iface bond0:ucarp inet static
  36.     # Same virtual ip as above
  37.     address 10.0.0.100
  38.     netmask 255.255.255.255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement