All of lore.kernel.org
 help / color / mirror / Atom feed
* confused by netbase/udev
@ 2010-02-09 11:23 Steffen Sledz
  2010-02-09 11:59 ` Paul Menzel
  2010-02-09 21:14 ` Cliff Brake
  0 siblings, 2 replies; 10+ messages in thread
From: Steffen Sledz @ 2010-02-09 11:23 UTC (permalink / raw)
  To: openembedded-devel

I'm a bit confused about netbase and udev use im Angstrom.

Here's what i see:

I connect an USB-NIC.

/etc/udev/rules.d/70-persistent-net.rules is created:

 # This file was automatically generated by the /lib/udev/write_net_rules
 # program, run by the persistent-net-generator.rules rules file.
 #
 # You can modify it, as long as you keep each rule on a single
 # line, and change only the value of the NAME= key.

 # USB device 0x:0x (MOSCHIP usb-ethernet driver)
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:3b:04:02:ae", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

But the NIC is not comming up (no ip assigned via DHCP). :(

I disconnect the USB-NIC and reboot.

/etc/udev/rules.d/70-persistent-net.rules still exists with
the mentioned content. Why?

I connect another USB-NIC.

/etc/udev/rules.d/70-persistent-net.rules is extended:

 # This file was automatically generated by the /lib/udev/write_net_rules
 # program, run by the persistent-net-generator.rules rules file.
 #
 # You can modify it, as long as you keep each rule on a single
 # line, and change only the value of the NAME= key.

 # USB device 0x:0x (MOSCHIP usb-ethernet driver)
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:3b:04:02:ae", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

 # USB device 0x:0x (pegasus)
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:e8:00:0f:e0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

This NIC is also not coming up. :(

And for each new NIC another name is created?! :(

And here's what i like to see:
* Connect an USB-NIC should result in an DHCP-configured interface.
* Disconnect the USB-NIC remove all traces from the system.

Hope you can clear the mist in my head.

Steffen




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-02-10  7:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 11:23 confused by netbase/udev Steffen Sledz
2010-02-09 11:59 ` Paul Menzel
2010-02-09 13:18   ` Steffen Sledz
2010-02-09 13:29     ` Petr Štetiar
2010-02-09 13:38       ` Steffen Sledz
2010-02-09 13:47         ` Petr Štetiar
2010-02-09 15:38       ` Steffen Sledz
2010-02-09 22:58         ` Paul Menzel
2010-02-09 21:14 ` Cliff Brake
2010-02-10  7:43   ` Steffen Sledz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.