[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SMPT & more



On Mon, Nov 05, 2001 at 07:07:31PM +0100, Nicola Tessari wrote:
> CafeTacuba:/home/mi/Mail# route add -net 192.168.9.1 netmask 255.255.255.0 dev eth0
> route: netmask doesn't match route address 

e certo, 192.168.9.1 lo stai dichiarando -net mentre al massimo 
sarebbe un -host, ma comunque non serve dare esplicitamente
un route add se /etc/interfaces e` a posto e l'interfaccia
la alzi (tu o gli scripts di avvio) con ifup

> per ora ho /etc/network/interfaces:
> iface eth0 inet static
>         address 192.168.9.0
>         netmask 255.255.255.0
>         network 192.168.0.0
>         broadcast 192.168.9.255

Hai un ip address che sta fuori dalla network/netmask
(che indica gli indirizzi da 192.168.0.0 a 192.168.0.255)
Per tenere una situazione "normale" o usi 
         address 192.168.9.0
         netmask 255.255.0.0
         network 192.168.0.0
         broadcast 192.168.255.255
oppure (come dicevo) usi
         address 192.168.9.1
         netmask 255.255.255.0
         network 192.168.9.0
         broadcast 192.168.9.255
(con conseguente indirizzo in /etc/hosts e inet_interfaces di postfix)
Ti conviene fare 
ifdown eth0 ; $EDITOR /etc/network/interfaces ; ifup eth0

> CafeTacuba:/home/mi/Mail# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> Questo dove se lo va a prendere? In /etc/network/interfaces?

si



Reply to: