View previous topic :: View next topic |
Author |
Message |
Fuzzo Guru


Joined: 23 Jun 2004 Posts: 319 Location: Padova, Italy
|
Posted: Tue Apr 04, 2006 1:50 pm Post subject: Non aggiunge il default gateway :( [RISOLTO] |
|
|
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 |
|
 |
khelidan1980 Tux's lil' helper


Joined: 27 May 2004 Posts: 129 Location: Europe->Italy->Milan
|
Posted: Tue Apr 04, 2006 1:52 pm Post subject: |
|
|
Sei sicuro che quell'eth0 davanti ci debba stare?prova senza... _________________ Khelidan |
|
Back to top |
|
 |
federico Advocate


Joined: 18 Feb 2003 Posts: 3272 Location: Italy, Milano
|
Posted: Tue Apr 04, 2006 1:54 pm Post subject: |
|
|
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 |
|
 |
khelidan1980 Tux's lil' helper


Joined: 27 May 2004 Posts: 129 Location: Europe->Italy->Milan
|
Posted: Tue Apr 04, 2006 1:55 pm Post subject: |
|
|
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 |
|
 |
GiRa l33t

Joined: 07 Apr 2005 Posts: 717
|
Posted: Tue Apr 04, 2006 2:17 pm Post subject: |
|
|
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 |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Tue Apr 04, 2006 7:03 pm Post subject: |
|
|
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 |
|
 |
fbcyborg Advocate


Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
 |
Fuzzo Guru


Joined: 23 Jun 2004 Posts: 319 Location: Padova, Italy
|
Posted: Wed Apr 05, 2006 1:51 pm Post subject: |
|
|
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 )
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 |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed Apr 05, 2006 4:38 pm Post subject: |
|
|
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 |
|
 |
Sephirot Tux's lil' helper


Joined: 09 Jun 2004 Posts: 124 Location: Milano
|
Posted: Wed Apr 05, 2006 10:59 pm Post subject: |
|
|
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 |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Thu Apr 06, 2006 1:22 am Post subject: |
|
|
mi sa che sei il terzo che gli dici la stessa cosa.  |
|
Back to top |
|
 |
fbcyborg Advocate


Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Thu Apr 06, 2006 11:40 am Post subject: |
|
|
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 |
|
 |
Sephirot Tux's lil' helper


Joined: 09 Jun 2004 Posts: 124 Location: Milano
|
Posted: Thu Apr 06, 2006 11:57 am Post subject: |
|
|
Ic3M4n wrote: | mi sa che sei il terzo che gli dici la stessa cosa.  |
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 |
|
 |
Fuzzo Guru


Joined: 23 Jun 2004 Posts: 319 Location: Padova, Italy
|
Posted: Thu Apr 06, 2006 4:26 pm Post subject: |
|
|
Ottimo ragazzi!
Ok con il config_ e routes_, siete mitici  _________________ bye,
Fuzzo |
|
Back to top |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Fri Apr 07, 2006 1:12 am Post subject: |
|
|
se hai risolto scrivi l'apposito tag nel titolo.  |
|
Back to top |
|
 |
|