Forums

Skip to content

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

[TIP] Come gestire con udev i nomi delle interfacce di rete

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Author
Message
.:deadhead:.
Advocate
Advocate
User avatar
Posts: 2963
Joined: Tue Nov 25, 2003 5:17 pm
Location: Milano, Italy

[TIP] Come gestire con udev i nomi delle interfacce di rete

  • Quote

Post by .:deadhead:. » Tue Apr 03, 2007 6:49 pm

Se vi dovesse capitare, a seguito del cambio della scheda di rete della vostra gentoo o dopo che avete clonato un'installazione di gentoo tramite stage4, di non trovar + la vostra scheda d rete o di trovarla con nomi "sfasati" : non vi preoccupate.

Il responsabile di tutto ciò è UDEV (sempre lui n'è!).

Nello specifico è a causa di alcune regole che vengono scritte in

Code: Select all

/etc/udev/rules.d/70-persistent-net.rules
che taluni devices assumono nomi "inconsueti" .

Per rimettere a posto le cose, vi sarà sufficiente eliminare o modificare le regole relative ai devices che non sanno + come si chiamano e rebootare :)
Et voilà tutto si risistemerà!

Spero vi sia utile, prima che vi mettiate a trattar male la vostra gentoo o peggio, a reinstallare :D

Questo Tip nasce da un 3d sul forums gentoo di qualche tempo fa e da una chat in IRC, nel primo caso fui aiutato, nel secondo aiutai ;)
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Wed Apr 04, 2007 7:43 am

Aggiungo che in alternativa è possibile anche creare il file /etc/udev/rules.d/10-local.rules che contiene:

Code: Select all

cat /etc/udev/rules.d/10-local.rules          
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:21:2c:dd:0b:ba", NAME="eth0", SYMLINK="eth0"
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:02:56:45:4d:d7", NAME="eth1", SYMLINK="eth1"
Registered as User #281564 and Machines #163761
Top
noice
Guru
Guru
User avatar
Posts: 473
Joined: Mon Dec 05, 2005 2:46 pm
Location: italia, Ischia

  • Quote

Post by noice » Wed Apr 04, 2007 10:06 am

gutter wrote:Aggiungo che in alternativa è possibile anche creare il file /etc/udev/rules.d/10-local.rules che contiene:

Code: Select all

cat /etc/udev/rules.d/10-local.rules          
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:21:2c:dd:0b:ba", NAME="eth0", SYMLINK="eth0"
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:02:56:45:4d:d7", NAME="eth1", SYMLINK="eth1"
in questo caso potrebbe anche essere utile una lettura qui :wink:
Noice

when you post remove comments

Code: Select all

grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Wed Apr 04, 2007 10:13 am

noice wrote:qui :wink:
Ho preso spunto da questo e da un post di comio che ora non trovo ;)
Registered as User #281564 and Machines #163761
Top
noice
Guru
Guru
User avatar
Posts: 473
Joined: Mon Dec 05, 2005 2:46 pm
Location: italia, Ischia

  • Quote

Post by noice » Wed Apr 04, 2007 10:19 am

vabbe' il link l'ho postato per qualche utente che volendo usare quelle stringhe di codice potrebbe domandarsi da dove vengano :lol:
Noice

when you post remove comments

Code: Select all

grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Top
Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Risorse italiane (documentazione e tools)”

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