Skip to content
uretgec edited this page Mar 11, 2013 · 3 revisions

Redhat Like (Redhat, Centos...) WARNING: Under no circumstances use the primary IP of your server as the gateway! You must under no circumstances use: route add default gw dev eth0 or you could cut your IP from the virtual server.

/etc/sysconfig/network-scripts/ifcfg-eth0

  DEVICE=eth0
  BOOTPROTO=none
  ONBOOT=yes
  USERCTL=no
  IPV6INIT=no
  PEERDNS=yes
  TYPE=Ethernet
  NETMASK=255.255.255.255
  IPADDR=IP.Fail.over
  GATEWAY=Your.Server.IP.254
  ARP=yes
  HWADDR=VI:RTU:AL:MA:C:

/etc/sysconfig/network-scripts/route-eth0

  Your.Server.IP.254 dev eth0
  default via Your.Server.IP.254 dev eth0

/etc/resolv.conf

  nameserver 213.186.33.99
Clone this wiki locally