risolto,
come da documentazione
zless /usr/share/doc/ifupdown/examples/network-interfaces.gz
i doppi apici non ci vanno
up /sbin/route add -net 10.0.2.0 netmask 255.255.255.0 dev eth1
google mi aveva tratto in inganno

grazie a NN_il_Confusionario per il suggerimento !
Alberto

-->
-->
--> ciao, ho un problema.
--> ho la necessità di aggiungere una route statica all'attivazione
--> dell'interfaccia. come da manuale, ho aggiunto nel file
--> /etc/network/interfaces le dirrettive up e down. ma nn funziona. se
--> disattivo e riattivo l'interfaccia non carica la route.
-->
--> dove sbaglio ??
--> Grazie
-->
--> Alberto
-->
--> auto eth0
--> iface eth0 inet static
-->         address 10.0.0.1
-->         netmask 255.255.255.0
-->         network 10.0.0.0
-->         broadcast 10.0.0.255
-->         up "/sbin/route add -net 10.0.2.0 netmask 255.255.255.0
--> dev eth1"
-->         down "/sbin/route del -net 10.0.2.0 netmask
--> 255.255.255.0 dev eth1"
-->
-->
--> --
--> Per REVOCARE l'iscrizione alla lista, inviare un email a
--> [EMAIL PROTECTED] con oggetto "unsubscribe". Per
--> problemi inviare un email in INGLESE a [EMAIL PROTECTED]
-->
--> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
--> with a subject of "unsubscribe". Trouble? Contact
--> [EMAIL PROTECTED]


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[EMAIL PROTECTED] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [EMAIL PROTECTED]

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Rispondere a