Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian)
  • Search

bloccare net.eth0 all'avvio [risolto]

Questa è la sezione italiana del forum gentoo destinata a fornire supporto all'omonima distribuzione.

Moderator: ago

Post Reply
  • Print view
Advanced search
27 posts
  • 1
  • 2
  • Next
Author
Message
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

bloccare net.eth0 all'avvio [risolto]

  • Quote

Post by Gr3yFox » Sat Feb 17, 2007 7:26 pm

Fino ad un paio di giorni fa tutto era ok, e lo script di avvio net.eth0 non partiva mai all'avvio (siccome non è sempre collegato preferisco collegare manualmente con un client dhcp in seguito se mi serve). Da ieri, dopo un aggiornamento di massa (era da un po' che non lo facevo) ha iniziato a partirmi la ricerca di un ip per la scheda con dhcp all'avvio, come se net.eth0 fosse impostato, ma non lo è, come mi conferma l'output di "rc-update -s".
Quindi mi chiedo... cosa può essere a richiamare net.eth0 quando non dovrebbe esserlo? Thx
Last edited by Gr3yFox on Mon Feb 19, 2007 3:28 pm, edited 3 times in total.
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
ThorOdino
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Tue Mar 14, 2006 11:16 am
Contact:
Contact ThorOdino
Website

  • Quote

Post by ThorOdino » Sat Feb 17, 2007 7:30 pm

RC_PLUG_SERVICES="!net.eth0"
in /etc/conf.d/rc

Almeno cosi io blocco l'ethernet e avvio solo eth1, wireless
www.ThorOdino.eu
FreeTheBikers
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sat Feb 17, 2007 7:33 pm

Forse era quello... ora non posso provare che sto compilandomi dei nuovi software, più tardi provo. Ti ringrazio.
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

  • Quote

Post by Cazzantonio » Sun Feb 18, 2007 12:38 am

in alternativa puoi installare questo:
ale@heavensdoor ~ $ eix netplug
* sys-apps/netplug
Available versions: 1.2.9-r2 1.2.9-r3
Installed: 1.2.9-r3(19:42:56 05/10/2006)
Best versions/slot: 1.2.9-r3
Homepage: http://www.red-bean.com/~bos/
Description: Brings up/down ethernet ports automatically with cable detection
License: GPL-2
Una volta emerso puoi tranquillamente aggiungere tutte le reti ethernet che vuoi al tuo runlevel. Gli initscript di gentoo supportano automaticamente questo simpatico programma e ti avvieranno la ethernet solo se trovano un cavo collegato.

puoi usare anche ifplug ma personalmente mi sono trovato meglio con netplug
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sun Feb 18, 2007 2:47 pm

Poi ho riavviato ed il problema è stato risolto, ma ora che me lo dici rimuovo quella opzione di configurazione da rc ed emergo netplug.
Grazie a tutti e due :D
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
.:chrome:.
Advocate
Advocate
User avatar
Posts: 4588
Joined: Sat Feb 19, 2005 7:19 pm
Location: Brescia, Italy

  • Quote

Post by .:chrome:. » Sun Feb 18, 2007 3:29 pm

Gr3yFox wrote:Poi ho riavviato ed il problema è stato risolto, ma ora che me lo dici rimuovo quella opzione di configurazione da rc ed emergo netplug.
Grazie a tutti e due :D
sì, peccato che netplug aggiri il problema ma non lo risolva.
tu volevi che la scheda di rete non fosse attivata all'avvio. così viene attivata comunque

adesso il caricamento dei moduli e l'attivazione dei dispositivi è passato da coldplug a udev, che ne integra le funzionalità.
dovresti dire al tuo udev di non attivare i dispositivi di rete aggiungendo una riga a /etc/udev/rules.d/05-udev-early.rules
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sun Feb 18, 2007 3:33 pm

cioè se metto netplug all'avvio mi tocca aspettare come al solito che vada in timeout la ricerca di un ip per la scheda perchè la tira su comunque?
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
.:chrome:.
Advocate
Advocate
User avatar
Posts: 4588
Joined: Sat Feb 19, 2005 7:19 pm
Location: Brescia, Italy

  • Quote

Post by .:chrome:. » Sun Feb 18, 2007 3:36 pm

Gr3yFox wrote:cioè se metto netplug all'avvio mi tocca aspettare come al solito che vada in timeout la ricerca di un ip per la scheda perchè la tira su comunque?
no. quell'operazione viene lasciata in background.

però la scheda di rete viene attivata comuqnue, ed è un dispositivo in più con relativo modulo (anzi, almeno due moduli) che vengono caricati inutilmente, se la scheda non ti serve
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sun Feb 18, 2007 3:41 pm

Ah, i moduli. Veramente ho messo su un kernel piuttosto monolitico, tutti i moduli che usa la scheda di rete sono built-in, quindi non so se a questo punto convenga davvero disabilitarne l'attivazione...
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
.:chrome:.
Advocate
Advocate
User avatar
Posts: 4588
Joined: Sat Feb 19, 2005 7:19 pm
Location: Brescia, Italy

  • Quote

Post by .:chrome:. » Sun Feb 18, 2007 3:47 pm

Gr3yFox wrote:Ah, i moduli. Veramente ho messo su un kernel piuttosto monolitico, tutti i moduli che usa la scheda di rete sono built-in, quindi non so se a questo punto convenga davvero disabilitarne l'attivazione...
vedi tu... nel caso di sistemi non sempre connessi alla rete, la cosa più corretta sarebe disattivare l'attivazione automatica da parte di udev e lanciare il servizio solo quando serve. comuqnue la scelta è tua
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sun Feb 18, 2007 4:03 pm

Sono scoppiato da tutti gli esami, preferisco non andare a cercare come scrivere le regole per udev, almeno per ora penso che possa restare così.
A proposito di netplug, non mi pare che abbia installato un'initscript... devo scriverlo io?
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
.:chrome:.
Advocate
Advocate
User avatar
Posts: 4588
Joined: Sat Feb 19, 2005 7:19 pm
Location: Brescia, Italy

  • Quote

Post by .:chrome:. » Sun Feb 18, 2007 4:25 pm

Gr3yFox wrote:A proposito di netplug, non mi pare che abbia installato un'initscript... devo scriverlo io?
no
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sun Feb 18, 2007 4:28 pm

stando alla doc dovrebbe esistere /etc/rc.d/init.d/netplugd ma non c'è
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
.:chrome:.
Advocate
Advocate
User avatar
Posts: 4588
Joined: Sat Feb 19, 2005 7:19 pm
Location: Brescia, Italy

  • Quote

Post by .:chrome:. » Sun Feb 18, 2007 4:29 pm

Gr3yFox wrote:stando alla doc dovrebbe esistere /etc/rc.d/init.d/netplugd ma non c'è
non serve initscript si integra con baselayout
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sun Feb 18, 2007 4:30 pm

ah ecco, non era mica chiaro leggendo il man :D
grazie.
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Sun Feb 18, 2007 4:43 pm

ok testato e funzionante, grazie a tutti per l'aiuto. metto il tag risolto.
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

  • Quote

Post by Cazzantonio » Sun Feb 18, 2007 11:36 pm

Gr3yFox wrote:A proposito di netplug, non mi pare che abbia installato un'initscript... devo scriverlo io?
Come ti ho detto viene supportato automaticamente dagli script di init della rete.
Se vuoi disattivarlo per una determinata interfaccia devi mettere in /etc/conf.d/net qualcosa del tipo

Code: Select all

modules_eth0=( "!plug" )
altrimenti niente... fa tutto da se.
Inoltre non devi aspettare proprio niente... l'interfaccia si attiva in background e se trova un cavo attaccato la tira su, altrimenti la ributta giù :wink:
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Mon Feb 19, 2007 2:45 pm

Per attivarlo solo su eth0 ho semplicemente sostituito eth* con eth0 nel suo file di configurazione in /etc.
Però ora è spuntato un piccolo problema... se non ho cavi collegati ad eth0, e provo ad avviare apache2 mi dice che è schedulato per partire assieme a net.eth0... :(
Come faccio a far partire apache anche quando non ho il cavo di rete connesso?
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

  • Quote

Post by Cazzantonio » Mon Feb 19, 2007 3:26 pm

un problema= un thread
In ogni caso chiarisciti cosa vuoi... prima vuoi stoppare eth0 senza cavo, poi la vuoi far partire lo stesso... semplice, devi deciderti. Altrimenti modificati l'initscript di apache e rimuovi il "need net" dalla funzione "depend()" o spippola tra le configurazioni di apache... boh
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Top
Gr3yFox
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Thu May 11, 2006 6:26 pm
Location: Genoa, Italy
Contact:
Contact Gr3yFox
Website

  • Quote

Post by Gr3yFox » Mon Feb 19, 2007 3:31 pm

si è vero scusa a prima vista mi sembrava che fosse un problema inerente a netplug, quindi pensavo andasse bene chiedere in questo thread, ma in effetti ora che me lo fai notare non c'azzecca un tubo.
chiedo scusa
GreyFox (Linux registered user #435102)
greyfox.imente.org - GreyFox's shots (photoblog)
Top
Delian
n00b
n00b
User avatar
Posts: 12
Joined: Mon Jul 24, 2006 10:24 am

  • Quote

Post by Delian » Sat Mar 03, 2007 8:24 pm

Un altro workaround e' di utilizzare la funzione preup, evitando di avere programmi in giro solo per questa cosa e aggiungendo una funzione molto simpatica :).
Per maggiori dettagli puoi provare a seguire questa guida che ho scritto sul mio blog:
http://delian.wordpress.com/2007/02/19/ ... a-al-boot/
Top
drumpaul
Tux's lil' helper
Tux's lil' helper
Posts: 107
Joined: Wed May 17, 2006 2:20 pm

[netboot] perché runlevel boot avvia net.eth0?[RISOLTO]

  • Quote

Post by drumpaul » Tue Mar 20, 2007 7:57 am

Come da oggetto vorrei chiarimento a questa domanda, tenendo conto che l'obiettivo è quello, come da guida d'insallazione gentoo, di aver la possibilità di avviare un portatile senza l'attivazione dell'interfaccia di rete come dovrebbe essere in modalità 'standalone' o offline o quello che è...

ora come ora do il parametro softlevel=nonetwork alla direttiva di grub per avviare il kernel con nonetwork al posto di default ma non ho il risultato sperato.

Grazie per il supporto, ciao.
Last edited by drumpaul on Tue Mar 20, 2007 8:22 am, edited 1 time in total.
Top
makaveli87
Guru
Guru
User avatar
Posts: 311
Joined: Mon Aug 22, 2005 12:25 pm
Location: Italy

  • Quote

Post by makaveli87 » Tue Mar 20, 2007 8:09 am

Non so se potrebbe essere dovuto a questo.. (do solo un'idea)

/etc/conf.d/rc

Code: Select all

# Some people want a finer grain over hotplug/coldplug. RC_PLUG_SERVICES is a
# list of services that are matched in order, either allowing or not. By
# default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be yes
# anyway.
# Example - RC_PLUG_SERVICES="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be plugged.

RC_PLUG_SERVICES="!net.eth0"
GoogleTalk: romanovic@gmail.com
Top
Scen
Retired Dev
Retired Dev
User avatar
Posts: 2470
Joined: Tue Jul 29, 2003 9:44 am
Location: Padova, Italy
Contact:
Contact Scen
Website

  • Quote

Post by Scen » Tue Mar 20, 2007 8:21 am

Quoto makaveli87, RC_PLUG_SERVICES è la soluzione al problema 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
Top
drumpaul
Tux's lil' helper
Tux's lil' helper
Posts: 107
Joined: Wed May 17, 2006 2:20 pm

  • Quote

Post by drumpaul » Tue Mar 20, 2007 8:22 am

Perfetto, fa proprio quello che volevo con l'opzione che mi hai indicato.
Mi scuso per l'ignoranza ma non ho 'guardato' poche volte rc e sinceramente non avevo colto le possibilità offerte da questa opzione.

Grazie mille
Top
Post Reply
  • Print view

27 posts
  • 1
  • 2
  • Next

Return to “Forum italiano (Italian)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic