Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Non aggiunge il default gateway :( [RISOLTO]
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
Fuzzo
Guru
Guru


Joined: 23 Jun 2004
Posts: 319
Location: Padova, Italy

PostPosted: Tue Apr 04, 2006 1:50 pm    Post subject: Non aggiunge il default gateway :( [RISOLTO] Reply with quote

Salve a tutti! :)
Vorrei sapere come mai, nonostante io in /etc/conf.d/net abbia la riga gateway="eth0/192.168.0.1", quando lancio /etc/init.d/net.eth0 start devo per forza lanciare anche, a parte, route add default gw 192.168.0.1...

Come mai? :?:
_________________
bye,
Fuzzo


Last edited by Fuzzo on Fri Apr 07, 2006 11:25 am; edited 1 time in total
Back to top
View user's profile Send private message
khelidan1980
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 129
Location: Europe->Italy->Milan

PostPosted: Tue Apr 04, 2006 1:52 pm    Post subject: Reply with quote

Sei sicuro che quell'eth0 davanti ci debba stare?prova senza...
_________________
Khelidan
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Tue Apr 04, 2006 1:54 pm    Post subject: Reply with quote

Prova anche senza, comunque in linea di massima potrebbe anche starci (non mi ricordo di preciso e non ho il mio pc davanti... poterbbe essere proprio quello l'inghippo.
Federico
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
khelidan1980
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 129
Location: Europe->Italy->Milan

PostPosted: Tue Apr 04, 2006 1:55 pm    Post subject: Reply with quote

federico wrote:
Prova anche senza, comunque in linea di massima potrebbe anche starci (non mi ricordo di preciso e non ho il mio pc davanti... poterbbe essere proprio quello l'inghippo.
Federico


vero,anche se prima di usare dnsmaq usavo quello senza indicare l'interfaccia e andava tutto bene!
_________________
Khelidan
Back to top
View user's profile Send private message
GiRa
l33t
l33t


Joined: 07 Apr 2005
Posts: 717

PostPosted: Tue Apr 04, 2006 2:17 pm    Post subject: Reply with quote

La tua configurazione parrebbe corretta.
Code:
grep -v "#" /etc/conf.d/net
iface_eth0="192.168.0.6 broadcast 192.168.0.255 netmask 255.255.255.0"
gateway="eth0/192.168.0.1"


Quante schede di rete hai?
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Tue Apr 04, 2006 7:03 pm    Post subject: Reply with quote

più che altro che versione di baselayout hai? attualmente quella sintassi è deprecata.
dovresti avere una cosa tipo questa:
Code:
config_eth0=( "192.168.0.4 netmask 255.255.255.0 broadcast 192.168.0.255" )
routes_eth0=( "default via 192.168.0.1" )
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Tue Apr 04, 2006 8:22 pm    Post subject: Reply with quote

Un'altra "configurazione" funzionante possibile e molto simile alla precedente è la seguente:
Code:
config_eth0=( "192.168.1.1 netmask 255.255.255.0 broadcast 192.168.0.255" )
routes_eth0=( "default gw 192.168.1.254" )

_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Fuzzo
Guru
Guru


Joined: 23 Jun 2004
Posts: 319
Location: Padova, Italy

PostPosted: Wed Apr 05, 2006 1:51 pm    Post subject: Reply with quote

Salve! :)
Volevo ringraziare coloro che hanno riposto e passiamo al dunque: la configurazione è esattamente quella scritta da GiRa, con a parte 2 righe molto simili per l'altra mia scheda di rete, la wlan0 che funziona da dio (e aggiunge il gateway 8O )

La sintassi net.nomeinterfaccia serve, a quanto ne so, per non startare tutte le interfacce, ma solo quella specificata dopo il .

La versione di baselayout è l'ultima della branca x86, ossia la 1.11.14-r6 e le righe di configurazione che ho scritto sono prese pari pari dall'esemio commentato nel file :)

E' pericoloso mettere sys-apps/baselayout ~x86 in /etc/package.keywords per tentare di risolvere il problema?

Edit:
Code:
/etc/init.d/net start
non funziona...
_________________
bye,
Fuzzo
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed Apr 05, 2006 4:38 pm    Post subject: Reply with quote

devi utilizzare
Code:
/etc/init.d/net.eth0
per avviare eth0.

per quel che riguarda il discorso che hai fatto... posso solo dirti che quella è la vecchia sintassi del baselayout. quella del nuovo, che "dovrebbe" mantenere una certa compatibilità con il precedente è quella che ti abbiamo scritto. hai provato a modificarla?
Back to top
View user's profile Send private message
Sephirot
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2004
Posts: 124
Location: Milano

PostPosted: Wed Apr 05, 2006 10:59 pm    Post subject: Reply with quote

apri /etc/conf.d/net
e ci scrivi dentro questo:
Code:

iface_eth0="192.168.1.102 broadcast 192.168.1.255 netmask 255.255.255.0"
routes_eth0=( "default gw 192.168.1.1" )


ovviamente con gli indirizzi e l'interfaccia che hai tu ;)
_________________
"Gentoo is more educational than mainstream distros. It encourages you to look under the hood and effectively turns a lot of n00bs into l33ts."
resistence is futile
(if < 1 ohm)
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Thu Apr 06, 2006 1:22 am    Post subject: Reply with quote

mi sa che sei il terzo che gli dici la stessa cosa. :wink:
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Thu Apr 06, 2006 8:00 am    Post subject: Reply with quote

fbcyborg wrote:
Un'altra "configurazione" funzionante possibile e molto simile alla precedente è la seguente: [...]

Mi riferivo al fatto che (sebbene possa essere la stessa cosa) in una configurazione c'è scritto "default via", mentre nell'altra "default gw"
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Thu Apr 06, 2006 11:40 am    Post subject: Reply with quote

fbcyborg wrote:
Mi riferivo al fatto che (sebbene possa essere la stessa cosa) in una configurazione c'è scritto "default via", mentre nell'altra "default gw"

si, lo so. però alla fine della fiera il risultato dovrebbe essere lo stesso. in ogni caso non l'ha provato. quindi se c'è qualcun'altro che lo scrive magari capisce che le motivazioni "potrebbero" essere sensate.
Back to top
View user's profile Send private message
Sephirot
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2004
Posts: 124
Location: Milano

PostPosted: Thu Apr 06, 2006 11:57 am    Post subject: Reply with quote

Ic3M4n wrote:
mi sa che sei il terzo che gli dici la stessa cosa. :wink:

si scusa avevo letto solo il primo post
_________________
"Gentoo is more educational than mainstream distros. It encourages you to look under the hood and effectively turns a lot of n00bs into l33ts."
resistence is futile
(if < 1 ohm)
Back to top
View user's profile Send private message
Fuzzo
Guru
Guru


Joined: 23 Jun 2004
Posts: 319
Location: Padova, Italy

PostPosted: Thu Apr 06, 2006 4:26 pm    Post subject: Reply with quote

Ottimo ragazzi! :D
Ok con il config_ e routes_, siete mitici :D
_________________
bye,
Fuzzo
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Fri Apr 07, 2006 1:12 am    Post subject: Reply with quote

se hai risolto scrivi l'apposito tag nel titolo. :wink:
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