restore default ip configuration (2)
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 16 Nov 2015 14:52:35 +0000 (15:52 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 16 Nov 2015 14:52:35 +0000 (15:52 +0100)
master/etc/network/interfaces.default

index 8322cc47f8261f9f5dfcead44c9b3aa09c83b725..9bf016b4a7f2ed180cc0a8c634a29c9d1b9e5a92 100644 (file)
@@ -6,29 +6,19 @@ auto lo
 iface lo inet loopback
 
 # The primary network interface
-auto eth0
 iface eth0 inet static
        address 10.133.26.160
        netmask 255.255.255.0
        network 10.133.26.0
        broadcast 10.133.26.255
        pre-up ip addr flush dev eth0
-       # FE306 authentification
-       post-up ip route add 238.0.0.0/24 dev eth0
        # FE306 pano
        post-up ip route add 238.75.0.0/16 dev eth0
        # FE306 WP channels
        # Pour prod voie PV 2eme octet vaut 111X XX11 (cf. libfreqplan/freqplancommon.h)
-       # => on met val de base vaut 224 (1110 0000) et mask a 224 (1110 0000) 
+       # => on met val de base vaut 224 (1110 0000) et mask a 224 (1110 0000)
        # => 2eme octet associe aux valeurs de 224 a 255
        post-up ip route add 238.224.0.0/11 dev eth0
-       # FE306 RF channels
-       # Pour prod voie RF 2eme octet vaut 110X XX11 (cf. libfreqplan/freqplancommon.h)
-       # => on met val de base vaut 192 (1100 0000) et mask a 224 (1110 0000) 
-       # => 2eme octet associe aux valeurs de 192 a 223
-       post-up ip route add 238.192.0.0/11 dev eth0
-       # Delay line
-       post-up ip route add 239.0.0.0/8 dev eth0
 
 # The secondary network interface
 auto eth1
@@ -39,4 +29,14 @@ iface eth1 inet static
        broadcast 10.133.28.255
        gateway 10.133.28.231
        pre-up ip addr flush dev eth1
+       # FE306 authentification
+       post-up ip route add 238.0.0.0/24 dev eth1
+       # FE306 RF channels
+       # Pour prod voie RF 2eme octet vaut 110X XX11 (cf. libfreqplan/freqplancommon.h)
+       # => on met val de base vaut 192 (1100 0000) et mask a 224 (1110 0000)
+       # => 2eme octet associe aux valeurs de 192 a 223
+       post-up ip route add 238.192.0.0/11 dev eth1
+       # Delay line
+       post-up ip route add 239.0.0.0/8 dev eth1
        # Sensor prod
+       post-up ip route add 225.0.0.0/8 dev eth1