- user : root
- host : grodoudou.seizam.com
- date : 06/07/12 18:52
- curpath : /home/yannouk
- Edit /etc/hosts, see [1]
- Edit /etc/network/interfaces, see [2]
[email protected]# /etc/init.d/networking restart
[email protected]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:25:90:50:d2:92
inet addr:176.31.225.95 Bcast:176.31.225.255 Mask:255.255.255.0
inet6 addr: fe80::225:90ff:fe50:d292/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9773 errors:0 dropped:0 overruns:0 frame:0
TX packets:8161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1217681 (1.1 MiB) TX bytes:1411043 (1.3 MiB)
Interrupt:16 Memory:fb9e0000-fba00000
eth0:0 Link encap:Ethernet HWaddr 00:25:90:50:d2:92
inet addr:87.98.172.195 Bcast:87.98.172.195 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:16 Memory:fb9e0000-fba00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:209 errors:0 dropped:0 overruns:0 frame:0
TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28392 (27.7 KiB) TX bytes:28392 (27.7 KiB)
--- old 2012-06-07 18:53:07.000000000 +0200
+++ new 2012-06-07 18:59:35.000000000 +0200
@@ -4,2 +4,7 @@
176.31.225.95 ns225381.ovh.net
+176.31.225.95 grodoudou.reverse.seizam.com
+87.98.172.195 grodoudou.seizam.com # IP Failover
+94.23.214.219 ns304832.ovh.net
+94.23.214.219 papilusion.reverse.seizam.com
+87.98.149.153 papilusion.seizam.com # IP Failover
# The following lines are desirable for IPv6 capable hosts
- [2] Edit /etc/network/interfaces
--- old 2012-06-07 19:01:50.000000000 +0200
+++ new 2012-06-07 19:03:29.000000000 +0200
@@ -7,2 +7,3 @@
+# The fixed IP
auto eth0
@@ -14 +15,5 @@
gateway 176.31.225.254
+
+# The Failover IP
+post-up /sbin/ifconfig eth0:0 87.98.172.195 netmask 255.255.255.255 broadcast 87.98.172.195
+post-down /sbin/ifconfig eth0:0 down