Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help me, /etc/conf.d/net!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Mon Nov 26, 2007 4:45 pm    Post subject: Reply with quote

non funziona la configurazione per essid nascosti, cioè se AAAA è un essid nascosto:
Code:

config_AAAAA="192.168.1.92 netmask 255.255.255.0"
routes_AAAAA="default via 192.168.1.1"
dns_servers_AAAAA="140.105.134.1"

all'avvio dell'initscript dell'interfaccia, non viene impostato l'ip, il gateway ed il dns.
L'access point viene comunque trovato da wpa_supplicant, cioè il comando:
Code:
iwconfig wlan0

da il risultato aspettato(...)
_________________
LP
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Nov 26, 2007 4:51 pm    Post subject: Reply with quote

Ma scusa, ti ho detto più di una volta di non usare quel tipo di configurazione, cos'è che non va con la configurazione che ti ho dato io????
Perché ti ostini a configurare quel file in quel modo?
_________________
[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
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Mon Nov 26, 2007 4:59 pm    Post subject: Reply with quote

fbcyborg wrote:
Ma scusa, ti ho detto più di una volta di non usare quel tipo di configurazione, cos'è che non va con la configurazione che ti ho dato io????

la tua configurazione funziona correttamente.
fbcyborg wrote:

Perché ti ostini a configurare quel file in quel modo?

perchè non accedo solo a quella rete, accedo a diverse reti con ip statico diverso, gateway diverso e dns diverso.
Mi piacerebbe che partisse tutto in automatico senza dover mettere mano ogni volta che cambio rete a /etc/conf.d/net, o lanciare dhcpcd, oppure ifconfig, o route o mettere mano in /etc/resolv.conf.

Chiaro?
_________________
LP
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Nov 26, 2007 5:11 pm    Post subject: Reply with quote

Ok, chiaro..
Forse, e dico forse... pretendi un po' troppo. Se il computer fosse onnisciente farebbe quello che vuoi tu! :wink:
_________________
[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
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Mon Nov 26, 2007 5:19 pm    Post subject: Reply with quote

fbcyborg wrote:
Ok, chiaro..
Forse, e dico forse... pretendi un po' troppo. Se il computer fosse onnisciente farebbe quello che vuoi tu! :wink:

Vista lo fa bene :cry:
e non vedo perchè non lo possa fare anche gentoo! :wink:
_________________
LP
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Mon Nov 26, 2007 5:26 pm    Post subject: Reply with quote

lucapost wrote:
fbcyborg wrote:
Ok, chiaro..
Forse, e dico forse... pretendi un po' troppo. Se il computer fosse onnisciente farebbe quello che vuoi tu! :wink:

Vista lo fa bene :cry:
e non vedo perchè non lo possa fare anche gentoo! :wink:


a quanto ho capito se ho capito :oops: , vorresti che in base alla rete disponibile il tuo pc ci si colleghi in modo automatico. giusto???

se è cosi dovresti riuscirci adattando al tuo caso questa parte trovata in
Code:
 /etc/conf.d/net.example

Code:

# Setting name/domain server causes /etc/resolv.conf to be overwritten
# Note that if DHCP is used, and you want this to take precedence then
# set dhcp_ESSID="nodns"
#dns_servers_ESSID=( "192.168.0.1" "192.168.0.2" )
#dns_domain_ESSID="some.domain"
#dns_search_domains_ESSID="search.this.domain search.that.domain"
# Please check the man page for resolv.conf for more information
# as domain and search (searchdomains) are mutually exclusive and
# searchdomains takes precedence


ha dai uno sguardo anche qui http://www.gentoolinux.org/doc/it/handbook/handbook-x86.xml?part=4&chap=4#doc_chap4
Back to top
View user's profile Send private message
Panic_attacK
n00b
n00b


Joined: 01 Jan 2008
Posts: 6
Location: Peschiera Borromeo (MI)

PostPosted: Tue Jan 01, 2008 11:53 pm    Post subject: Reply with quote

Ciao a tutti e buon anno nuovo!
Di gentoo e linux in generale sono un newbie, ho solo avuto una breve esperienza con ubuntu, ma sono determinato a instaurare un buon feeling con questa distribuzione.
Ieri ho installato la gentoo dal cd minimal per x86, e non ho avuto problemi, anche se ho dovuto trafficare parecchio con la configurazione della rete sia attraverso il cd che a gentoo installata, diciamo che c'ho smanettato parecchio fino ad ottenere l'accesso a internet, oggi ho combinato su un casino con i sorgenti di linux mentre tentavo di attivare il framebuffer vesafb-tng,
da inesperto come sono credo di aver sopravvalutato il problema e di conseguenza ho reinstallato la gentoo, ho cercato di riattivare il collegamento ad internet che ero riuscito ad avere l'installazione precedente, facendo ifconfig mi mostra eth0 eth1 e lo:
Code:

eth0       Link encap:Ethernet  HWaddr 00:1A:92:2B:DB:6C
              inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
              Rx packets:118 errors:0 dropped:0 overruns:0 frame:0
              Tx packets:119 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Txqueulen:1000
              Rx bytes:7393 (7.2 kb)  Tx bytes:10885  (10.6kb)
              Interrupt:17
eth1       Link encap:Ethernet  HWaddr 00:1A:92:2B:D9:18
              inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
              UP BROADCAST MULTICAST MTU:1500 Metric:1
              Rx packets:0 errors:0 dropped:0 overruns:0 frame:0
              Tx packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Txqueulen:1000
              Rx bytes:0 (0.0 b)  Tx bytes:0  (0.0 b)
              Interrupt:20
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:0 errors:0 dropped:0 overruns:0 frame:0
              Tx packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Txqueulen:1000

questo invece è il mio /etc/conf.d/net
Code:
#nano -w /etc/conf.d/net
                         config_eth1=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )
                         config_eth0=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )
                         routes_eth1=( "default via 192.168.1.1" )
                         routes_eth0=( "default via 192.168.1.1" )


Il mio hard disk contiene winzoz oltre a gentoo, mi sono basato sulle proprietà della TCP/IP di Lan2(eth1)
che è correttamente connessa ad internet, nonchè l'unica a qui è collegato un cavo lan
le sue proprietà sono:
Indirizzo IP: 192.168.1.3
Subnet mask: 255.255.255.0
Gateway predefinito: 192.168.1.1
Server DNS preferito:192.168.1.1

Facendo ping -c 3 www.gentoo.org mi dice che non ha trovato nessun host
Ringrazio tutti coloro che tentano di aiutarmi!
P.S: spero di non aver sbagliato a postare in questo topic già aperto, ma il suo nome mi sembrava adatto
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Wed Jan 02, 2008 12:24 am    Post subject: Reply with quote

riesci a pingare il server dns?
prova con
Code:
ping -c 3 192.168.1.1

_________________
LP
Back to top
View user's profile Send private message
Panic_attacK
n00b
n00b


Joined: 01 Jan 2008
Posts: 6
Location: Peschiera Borromeo (MI)

PostPosted: Wed Jan 02, 2008 12:34 am    Post subject: Reply with quote

si, 0% packet loss
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Wed Jan 02, 2008 8:22 am    Post subject: Reply with quote

Leggiti per bene il file di configurazione d'esempio /etc/conf.d/net.example: vedrai che per impostare i server DNS devi aggiungere una riga del tipo
Code:

dns_servers_eth0="192.168.1.1"

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Panic_attacK
n00b
n00b


Joined: 01 Jan 2008
Posts: 6
Location: Peschiera Borromeo (MI)

PostPosted: Wed Jan 02, 2008 12:38 pm    Post subject: Reply with quote

Ok, così mi funziona:
Code:

config_eht1=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )
config_eht0=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_eth1=( "default via 192.168.1.1" )
routes_eth0=( "default via 192.168.1.1" )
dns_servers_eth1=( "192.168.1.1" )
dns_servers_eth0=( "192.168.1.1" )

Grazie! :D
pensavo che il server DNS venisse impostato da routes_eth0, esso allora cosa imposta?
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Wed Jan 02, 2008 1:03 pm    Post subject: Reply with quote

Panic_attacK wrote:
pensavo che il server DNS venisse impostato da routes_eth0, esso allora cosa imposta?

Il gateway predefinito. 8)
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Panic_attacK
n00b
n00b


Joined: 01 Jan 2008
Posts: 6
Location: Peschiera Borromeo (MI)

PostPosted: Thu Jan 03, 2008 11:50 pm    Post subject: Reply with quote

Ciao a tutti, sfortunatamente rieccomi nuovamente con problemi di rete e non solo.La mia gentoo ha dei problemi, non sò se causati dalla mia niubbiaggine o no, però ho installato la gentoo 3 volte in meno di una settimana(colpa mia)Allora, innanzitutto non riesco ad attivare il framebuffer vesafb-tng, essi non compaiono perchè la categoria VESA Driver type non appare neanche dopo la selezione di VESA VGA graphics support, poi avendo tentato più volte di installare la rete con net-setup con il cd minimal all'inizio dell'installazione ho notato che alcune volte non mi vede la eth0 o la eth1 oppure mi vede entrambe ma non la eth2, non sò perchè, io però riavviando e riavviando e impostando sempre le stesse impostazioni in net-setup alla fine mi pinga su www.gentoo.org o altri siti e mi funziona links..Comunque per affrontare i problemi preferisco iniziare da quello della rete:
Code:
Kernel IP routing Table
Destination        Gateway        Genmask        Flags    Metric    Ref   Use   Iface
192.168.1.0        0.0.0.0      255.255.255.0      U        0        0     0     eth0
192.168.1.0        0.0.0.0      255.255.255.0      U        0        0     0     eth1
127.0.0.0          0.0.0.0      255.0.0.0          U        0        0     0     lo
0.0.0.0            192.168.1.1  0.0.0.0            UG       0        0     0     eth0
0.0.0.0            192.168.1.1  0.0.0.0            UG       1        0     0     eth1

Code:
nano -w /etc/hosts

127.0.0.1   tux.homenetwork  tux  localhost

Code:
nano -w /etc/conf.d/hostname

HOSTNAME="tux"

Code:
ping -c 3 192.168.1.3

3 packets trasmitted,3 riceived,0% lost
ping -c 3 192.168.1.1

3 packets,0 riceived,+3 errors,100% packets lost

Code:
ifconfig
eth0       Link encap:Ethernet  HWaddr 00:1A:92:2B:DB:6C
              inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
              Rx packets:118 errors:0 dropped:0 overruns:0 frame:0
              Tx packets:119 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Txqueulen:1000
              Rx bytes:7393 (7.2 kb)  Tx bytes:10885  (10.6kb)
              Interrupt:17
eth1       Link encap:Ethernet  HWaddr 00:1A:92:2B:D9:18
              inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
              UP BROADCAST MULTICAST MTU:1500 Metric:1
              Rx packets:0 errors:0 dropped:0 overruns:0 frame:0
              Tx packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Txqueulen:1000
              Rx bytes:0 (0.0 b)  Tx bytes:0  (0.0 b)
              Interrupt:20
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:0 errors:0 dropped:0 overruns:0 frame:0
              Tx packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Txqueulen:1000

Code:

nano -w /etc/conf.d/net
config_eth1=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )
config_eth0=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_eth1=( "default via 192.168.1.1" )
routes_eth0=( "default via 192.168.1.1" )
dns_servers_eth1=( "192.168.1.1" )
dns_servers_eth0=( "192.168.1.1" )

Ecco il mio hardware in caso servisse per questo e i problemi sucessivi.
Processore :Intel Core 2 Duo E6600 @ 3Ghz daily use
MB: Asus Commando(P965/ICH8R)
Scheda Grafica: point of view 8800 gts 320MB
Alimentatore:Enermax Libery 620W
Scheda Rete:Marvell Yukon 88E8056 PCI-E Gigabit Ethernet controller
Se l'errore è banale perdonatemi, ma ci stò perdendo la testa :(
Grazie di cuore a chi mi dà una mano..!!


Last edited by Panic_attacK on Fri Jan 04, 2008 5:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Fri Jan 04, 2008 9:49 am    Post subject: Reply with quote

Io uso networkmanager e sono MOLTO felice =)
http://gentoo-wiki.com/NetworkManager

Se si tratta di un laptop non vedo la necessità di avere una configurazione statica anche perchè andando in giro per clienti nel mio caso dovrei smanettare ogni volta nelle impostazioni.

Networkmanager fa un detect automatico se pluggato il cavo di rete va in DHCP se non riesce ad andare in dhcp ti chiede i parametri da impostare.
Cerca le woreless e il loro segnale da solo e cliccando sulla network desiderata ti chiede la key e si connette da solo,
Memorizza automaticamente nel portafogli le password delle qwireless in crypt così da non doverle inserire ogni volta.

Per gnome l'interfaccia di networkmanager è già presente per kde bisogna usare knetworkmanager
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Panic_attacK
n00b
n00b


Joined: 01 Jan 2008
Posts: 6
Location: Peschiera Borromeo (MI)

PostPosted: Fri Jan 04, 2008 4:55 pm    Post subject: Reply with quote

Ciao grazie della risposta, però il mio non è un laptop, non riesco a capire perchè non mi dovrebbe funzionare con questa configurazione statica se prima mi funzionava...Ho fatto un installazione rapida, vi posso dire che durante l'installazione rapida mi ha completamente formattato il file /etc/hosts e mi ha inserito la riga di codice riportata qua sopra, io ho cercato, ma non mi pare ci fossero altri comandi da dare a /etc/hosts, attualmente sulla mia gentoo non ho nulla, quindi non saprei come scaricarlo network manager :(
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Jan 04, 2008 5:15 pm    Post subject: Reply with quote

Hai entrambe le interfacce (eth0 ed eth1) con lo stesso indirizzo assegnato, molto probabilmente vanno in conflitto (curiosità, come mai 2 interfacce di rete collegate alla stessa subnet?).

Inoltre, anche se penso sia un errore di trascrizione:
Code:

config_eht1=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )
config_eht0=( "192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255" )

è eth, non eht.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Panic_attacK
n00b
n00b


Joined: 01 Jan 2008
Posts: 6
Location: Peschiera Borromeo (MI)

PostPosted: Fri Jan 04, 2008 5:29 pm    Post subject: Reply with quote

si, era un errore di battitura, ora ho correto il post sopra,ho provato a modificare l'inidirizzo ip di eth0 ma nulla..comuqnue non c'è nessun cavo collegato a eth0, quindi teoricamente non dovrebbero andare in conflitto giusto?
ho messo la stessa subnet, perchè l'ho sempre vista identica, forse è quello?
Back to top
View user's profile Send private message
Jisaw
n00b
n00b


Joined: 14 Dec 2007
Posts: 15
Location: Torino

PostPosted: Fri Jan 04, 2008 8:15 pm    Post subject: Reply with quote

Panic_attacK wrote:
ho messo la stessa subnet, perchè l'ho sempre vista identica, forse è quello?


Direi di no. Prova a configurare una sola interfaccia di rete (lascia solo una entry di, rispettivamente, config_ routes_ e dns_servers_) e vedi come va. Se vuoi avere due interfacce sulla stessa rete perlomeno usa due indirizzi diversi e imposta un solo gateway di default.
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
Goto page Previous  1, 2
Page 2 of 2

 
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