WWW.GENTOO-SRBIJA.ORG
If it wasn't for fog, the world would run at a really crappy framerate. Četvrtak, 20 Novembar/2008  
 » SADRŽAJ
 › Uvod
 › Performanse
 › Mirori
 › Linkovi
 › Download
 › Mailing lista
 › Kontakt
 » PROFIL
» šifra
zapamti me
  Registracija
 » PRETRAGA
 » NOVI PAKETI
gnome-extra/lock-keys-applet-1.0: An applet that shows the status of your Caps, Num and Scroll Lock keys
dev-python/gtkmozembed-python-2.19.1-r10: Based on the libtool eclass
app-text/evince-2.24.1: Simple document viewer for GNOME
media-gfx/fontforge-20080927: postscript font editor and converter
dev-dotnet/glade-sharp-9999: Dummy ebuild to understand the package move to gtk-sharp[glade]
dev-dotnet/gtk-sharp-2.12.6: Gtk# is a C# language binding for the GTK2 toolkit and GNOME libraries
app-office/glabels-2.2.3: Program for creating labels and business cards
x11-base/xorg-server-1.5.2: X.Org X servers
dev-lang/mono-basic-1.2.4: Visual Basic .NET Runtime and Class Libraries
dev-dotnet/taglib-sharp-2.0.3.0: Taglib# 2.0 - Managed tag reader/writer
 » WEBMAIL
 » GENTOO-PORTAGE
And we're back
Forum index ›› Mreže i bezbednost › udev NIC devices [sredjeno]  
  AUTOR   PORUKA

Član
Učlanjen: 13 Apr 05
Lokacija: Užice
Poruke: 120
profil¬ poruka¬
 Oglašeno: 21 Apr 06  22:23   Izmenio: Petar

Ovi pacijenti izbacili coldplug iz runlevela zbog novog udev-a. Sta se meni desava jeste da mi se eth0, eth1 stalno swap-uju.

napisao sam neke rules za udev:

Kod: "cat /etc/udev/rules.d/10-localnet.rules"

KERNEL=="eth*", SYSFS{address}=="00:e0:18:ff:3b:c7", NAME="lan0" #edit: MAC <--- case sensitive
KERNEL=="eth*", SYSFS{address}=="00:05:5d:6a:4c:bd", NAME="wan0"


I dalje dobijam eth* devices koji menjaju poziciju posle svakog reboot-a

Kod: "udevtest /class/net/eth0/"

main: looking at device '/class/net/eth0' from subsystem 'net'
wait_for_sysfs: file '/sys/class/net/eth0/address' appeared after 0 loops
wait_for_sysfs: file '/sys/class/net/eth0/address' appeared after 0 loops
wait_for_sysfs: file '/sys/class/net/eth0/address' appeared after 0 loops
udev_rules_get_name: no node name set, will use kernel name 'eth0'
main: run: '/sbin/modprobe '
main: run: '/sbin/udev_run_devd net'
main: run: 'socket:/org/kernel/udev/monitor'


Neznam sta se desava, kompajlirao sam ih kao module, pokusao da ih rasporedim u /etc/modules.autoload.d/kernel-2.6 i nista

PS: Kod mene su MAC adrese spoofovane , zbog ISP koji se lockuje samo na jedan NIC, pa mi je lakse da napravim fake MAC nego da vucem ethernet kartu sa sobom. Ali mislim da to neme veze i ne utice na udev ?

PPS: net.eth* sam sklonio iz runlevels, ali ih udev opet podize?

 
Runlevel: UNASSIGNED 
net.eth0                                       [ started  ] 
net.eth1                                      [ started  ] 





evo šta ima u /etc/conf.d/rc

 
RC_COLDPLUG="yes" 
 
# RC_NET_STRICT_CHECKING allows some flexibility with the 'net' servic 
e. 
# The following values are allowed: 
#  none  - The 'net' service is always considered up. 
#  no    - This basically means that at least one net.* service beside 
s net.lo 
#          must be up.  This can be used by notebook users that have a 
wifi and 
#          a static nic, and only wants one up at any given time to ha 
ve the 
#          'net' service seen as up. 
#  lo    - This is the same as the 'no' option, but net.lo is also cou 
nted. 
#          This should be useful to people that do not care about any 
specific 
#          interface being up at boot. 
#  yes   - For this ALL network interfaces MUST be up for the 'net' se 
rvice to 
#          be considered up. 
 
RC_NET_STRICT_CHECKING="no" 
 
# RC_DOWN_INTERFACE allows you to specify if RC will bring the interfa 
ce 
# compeletly down when it stops. The default is yes, but there are som 
e 
# instances where you may not want this to happen such as using Wake O 
n LAN. 
 
RC_DOWN_INTERFACE="yes" 
 


pz

edit: Sredjena MAC adresa ( line 7 )


Član
Učlanjen: 13 Apr 05
Lokacija: Užice
Poruke: 120
profil¬ poruka¬
upRE: udev NIC devices [sredjeno]  Oglašeno: 21 Apr 06  22:58  

woops :-) MAC address je case sensitive, sto sam zaboravio prvi put..

sorry