Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema Rete [ SIOCADDRT: Network unreachable ]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
bld
l33t
l33t


Joined: 26 Mar 2003
Posts: 759
Location: Outter Space

PostPosted: Sun Jun 19, 2005 10:27 am    Post subject: Problema Rete [ SIOCADDRT: Network unreachable ] Reply with quote

Salve Gente,

Ieri ho fatto un upgrade di 118 pkg. Era da un bel po che non facevo upgrade.. dopo aver fatto l'upgrade ed etc-update vedo che la rete e' down. Ho controllato /etc/conf.d/net non ci sono errorri. Il driver della scheda di rete e' build in supportato sul kernel per cio non e' questione di moduli.. non so che dire. L'errore che prendo e' il seguente:

route add default gw 10.0.0.1

SIOCADDRT: Netowk is unreachable

route

loopback hostname 225.0.0.0 UG 0 0 0 lo


cioe solo il loopback interface.. niente altro..

qualche idea?
_________________
A happy GNU/Linux user!!
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sun Jun 19, 2005 10:33 am    Post subject: Reply with quote

Posta il risultato del comando:

Code:
$ ifconfig -a

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Sun Jun 19, 2005 10:44 am    Post subject: Re: Problema Rete [ SIOCADDRT: Network unreachable ] Reply with quote

bld wrote:
Salve Gente,

Ieri ho fatto un upgrade di 118 pkg. Era da un bel po che non facevo upgrade.. dopo aver fatto l'upgrade ed etc-update vedo che la rete e' down. Ho controllato /etc/conf.d/net non ci sono errorri. Il driver della scheda di rete e' build in supportato sul kernel per cio non e' questione di moduli.. non so che dire. L'errore che prendo e' il seguente:

route add default gw 10.0.0.1

SIOCADDRT: Netowk is unreachable

route

loopback hostname 225.0.0.0 UG 0 0 0 lo


cioe solo il loopback interface.. niente altro..

qualche idea?


Tieni presente che la conf di rete ha subito delle variazioni passando all'ultimo baselayout. Ti consiglio di vedere il file /etc/conf.d/net.example. Controlla se il tuo è aderente a quell'esempio

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Jun 19, 2005 5:58 pm    Post subject: Re: Problema Rete [ SIOCADDRT: Network unreachable ] Reply with quote

quel tipo di errore lo si riceve, nel caso più tipico, quando non hai ancora tirato su il modulo della scheda di rete.
controlla il tuo ambiente di avvio
Back to top
View user's profile Send private message
bld
l33t
l33t


Joined: 26 Mar 2003
Posts: 759
Location: Outter Space

PostPosted: Mon Jun 20, 2005 1:51 pm    Post subject: risolto in parte Reply with quote

Salve, scusate il ritardo.. eseguendo il comando ifconfig ho notato che l'interfaccia eth0 era giu, una volta messa up e d addato il default gw tutto funziona normalmente. Mi servirebbe un aito pero per configurare il file /etc/conf.d/net .. infatti il file ha cambiato syntax e non capisco niente.. ho messo quello che dovevo.. pero non funziona.

I comandi che do manualmente sono i seguenti:

ifconfig eth0 10.0.0.1 broadcast 10.0.0.255 netmask 255.255.255.0 up
route add default gw 10.0.0.138

sul file /etc/conf.d/net ho messo le seguenti opzioni:

# We can also specify a broadcast
#config_eth0=( "192.168.0.2/24 brd 192.168.0.255" )
config_eth0=( "10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255" )
# Here's how todo routing if you need it - the below sets the default gateway
routes_eth0=( "default via 10.0.0.138" )

pero per qualche strano motivo. quando lancio /etc/init.d/net.eth0 restart non passa alla scheda le opzioni giuste.
_________________
A happy GNU/Linux user!!
Back to top
View user's profile Send private message
Gitanovic
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2004
Posts: 101
Location: Italy

PostPosted: Mon Jun 20, 2005 6:54 pm    Post subject: Reply with quote

Ti posto il mio file di configurazione... a me va bene, è il gateway che è sbagliato

Code:

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="10.0.0.10 broadcast 10.0.0.255 netmask 255.0.0.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/10.0.0.1"

_________________
Gipsy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum