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

Re: errore di route add ====>SIOCADDRT: Invalid argument



>> root@linuxbox:/home/pieterja# route add -net 192.168.2.0 dev eth0
>> SIOCADDRT: Invalid argument
>> ===========>che cosa significa?
Devi aggiungere la netmask
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0
ciao
Vincenzo

> 
> 
> il parametro che non va bene sembra essere eth0
> 
> se collego con il modem del pc/debian a internet questo é il risultato
> di ifconfig:
> 
> 
>> root@linuxbox:/home/pieterja# ifconfig
>> eth0      Link encap:Ethernet  HWaddr 00:00:B4:98:99:4B
>>           inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>           RX packets:846 errors:0 dropped:0 overruns:0 frame:1
>>           TX packets:752 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:100
>>           RX bytes:96242 (93.9 KiB)  TX bytes:133378 (130.2 KiB)
>>           Interrupt:5 Base address:0xe400
>>
>> lo        Link encap:Local Loopback
>>           inet addr:127.0.0.1  Mask:255.0.0.0
>>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>>           RX packets:56 errors:0 dropped:0 overruns:0 frame:0
>>           TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:0
>>           RX bytes:3808 (3.7 KiB)  TX bytes:3808 (3.7 KiB)
>>
>> ppp0      Link encap:Point-to-Point Protocol
>>           inet addr:62.98.25.202  P-t-P:212.245.47.229 
>> Mask:255.255.255.255
>>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>>           RX packets:6 errors:1 dropped:0 overruns:0 frame:0
>>           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:3
>>           RX bytes:123 (123.0 b)  TX bytes:85 (85.0 b)
>>
>> root@linuxbox:/home/pieterja#
> 
> 
> mi sembra tutto a posto... ovviamente il ping da un computer all'altro
> funziona correttamente così come pure dal pc/debian verso l'esterno (DNS
> di inwind) ciononostante il pc/debian  continua a non risolvere una
> ricerca di ip e non trova i domini esterni...
> 
> mi rendo conto rileggendo che ho esposto due problemi diversi che però
> sospetto riconducano allo stesso...
> che ve ne sembra?
> 
> ancora saluti a tutti
> pieter
> 



Reply to: