کد:
Debian Like (Debian, Ubuntu...)
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.
- For Debian 6*, the DNS server configuration is done directly in the file /etc/network/interfaces or you find it in this section:
- dns-* options are implemented by the resolvconf package, if installed (default)
dns-nameservers 213.186.33.99 # OVH DNS Server dns-search ovh.net # To quickly fix the hosts on the OVH network
/etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address
IP.Fail.over
netmask 255.255.255.255
broadcast
IP.Fail.over
post-up route add
Your.Server.IP.254 dev eth0
post-up route add default gw
Your.Server.IP.254
post-down route del
Your.Server.IP.254 dev eth0
post-down route del default gw
Your.Server.IP.254
/etc/resolv.conf
nameserver 213.186.33.99