Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
debian:ip_failover [2020/04/16 11:29] – erreur32 | debian:ip_failover [2022/11/08 16:43] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== | ||
+ | |||
< | < | ||
- | < | + | Si vous avez que 1 seule interface ETH: |
+ | |||
+ | Le but est de créer une <em> interface virtuelle </ | ||
</ | </ | ||
+ | |||
+ | cp / | ||
+ | |||
====== éditer le fichier pour ajouter IP ====== | ====== éditer le fichier pour ajouter IP ====== | ||
Ligne 9: | Ligne 16: | ||
**nano / | **nano / | ||
- | ``` | + | < |
auto eth0:0 | auto eth0:0 | ||
iface eth0:0 inet static | iface eth0:0 inet static | ||
Ligne 15: | Ligne 22: | ||
netmask 255.255.255.255 | netmask 255.255.255.255 | ||
broadcast IP.DE.FAIL.OVER | broadcast IP.DE.FAIL.OVER | ||
- | ``` | + | </ |
Votre fichier **/ | Votre fichier **/ | ||
- | ``` | + | < |
auto eth0 | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
Ligne 33: | Ligne 40: | ||
netmask 255.255.255.255 | netmask 255.255.255.255 | ||
broadcast IP.DE.FAIL.OVER | broadcast IP.DE.FAIL.OVER | ||
- | ``` | + | </ |
**Pour Debian 6** il faut ajouter une ligne par ip (en incrémentant X dans eth0: | **Pour Debian 6** il faut ajouter une ligne par ip (en incrémentant X dans eth0: | ||
- | ``` | + | |
+ | < | ||
post-up / | post-up / | ||
eth0:X IP.DE.FAIL.OVER | eth0:X IP.DE.FAIL.OVER | ||
Ligne 43: | Ligne 51: | ||
post-down / | post-down / | ||
eth0:X down | eth0:X down | ||
- | ``` | + | </ |
Votre fichier **/ | Votre fichier **/ | ||
- | ``` | + | < |
auto eth0 | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
Ligne 60: | Ligne 68: | ||
post-up / | post-up / | ||
post-down / | post-down / | ||
- | ``` | + | </ |
====== Redémarrer l' | ====== Redémarrer l' | ||
- | Afin de faire pinger votre IP-Failover il vous suffit de redémarrer l' | + | Afin de faire pinger votre IP-Failover il vous suffit de redémarrer l' |
+ | | ||