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 )
|