On Fri, 2008-09-26 at 10:55 +0100, Robert Piasek wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > By default when new device is connected NM wants to "auto configure" > it using DHCP client. As long as MAC address is the same you can set > up static IP for this connection. > > When it comes to usb ethernet gadget it seems it's got different MAC > address every time you connect the device. Is there any way i can > instruct NM on "default" behavior for new connections for specific > type (like apply these settings only if that's usb and no eth or wifi).
That seems somewhat wrong; what hardware is it? Does it have the MAC address printed on a barcode on the outside of the device? They have to get a MAC from somewhere, and it can't just be a random one. Dan > Here's the log: > > Sep 26 10:42:56 [kernel] usb 4-2: new full speed USB device using > uhci_hcd and address 12 > Sep 26 10:42:57 [kernel] usb 4-2: configuration #1 chosen from 2 choices > Sep 26 10:42:57 [kernel] cdc_acm: This device cannot do calls on its > own. It is no modem. > Sep 26 10:42:57 [kernel] cdc_acm 4-2:1.0: ttyACM0: USB ACM device > Sep 26 10:43:03 [kernel] usb 4-2: USB disconnect, address 12 > Sep 26 10:43:07 [kernel] usb 4-2: new full speed USB device using > uhci_hcd and address 13 > Sep 26 10:43:07 [kernel] usb 4-2: configuration #1 chosen from 2 choices > Sep 26 10:43:07 [kernel] usb0: register 'cdc_ether' at > usb-0000:00:1d.0-2, CDC Ethernet Device, 6e:4c:72:dc:70:47 > Sep 26 10:43:07 [NetworkManager] <info> usb0: driver is 'cdc_ether'._ > Sep 26 10:43:07 [NetworkManager] <info> Found new Ethernet device > 'usb0'._ > Sep 26 10:43:07 [NetworkManager] <info> (usb0): exported as > /org/freedesktop/Hal/devices/net_6e_4c_72_dc_70_47_ > Sep 26 10:43:11 [nm-system-settings] Adding default connection 'Auto > usb0' for /org/freedesktop/Hal/devices/net_6e_4c_72_dc_70_47 > Sep 26 10:43:11 [NetworkManager] <info> (usb0): device state change: > 1 -> 2_ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): bringing up device._ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): preparing device._ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): deactivating device._ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): carrier now ON > (device state 2)_ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): device state change: > 2 -> 3_ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) starting > connection 'Auto usb0'_ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): device state change: > 3 -> 4_ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 1 of > 5 (Device Prepare) scheduled..._ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 1 of > 5 (Device Prepare) started..._ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 2 of > 5 (Device Configure) scheduled..._ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 1 of > 5 (Device Prepare) complete._ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 2 of > 5 (Device Configure) starting..._ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): device state change: > 4 -> 5_ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 2 of > 5 (Device Configure) successful._ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 3 of > 5 (IP Configure Start) scheduled._ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 2 of > 5 (Device Configure) complete._ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Stage 3 of > 5 (IP Configure Start) started..._ > Sep 26 10:43:11 [NetworkManager] <info> (usb0): device state change: > 5 -> 7_ > Sep 26 10:43:11 [NetworkManager] <info> Activation (usb0) Beginning > DHCP transaction._ > > > Generally I would like NM to set up the same IP address (user defined) > for USB connection no matter what MAC address it has. > > Thanks, > Rob > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iQIcBAEBAgAGBQJI3LGKAAoJELvLB8ABrzqYi6AP/0NPIqNWVoPIVeEwMet/Yic8 > 9La+8ySJ4eBQdX31IDkZ0P6ABBV6KWFitO7cGMscTtQwcDv8osNIMsJ0OTnw3bkq > 9ekCiIFezRJ6BIMrCTa2Hw3RTJsBGwMDEo925GUKBbjfWT24/UVQr9jtRbvF0apR > tPlPBsUnzp0sE76Mw0gj5O1ryNwBqIx2K84j30YYQbI4l2oXUuYfwVnoyRS8iN1D > S9LQ3gyxedh3EHO/AcBeHB/PdF02xZQqtdRJGhinCzBddGQmSNX9Mj2z2Z4FJhUt > 4zKY46W9hz1E5FvwZvu+UVF7TvBDkmrQ7Jxlimo8XfuQtknfhjvp83IozBsRfLvN > 6wAOtDA2VvjYHJrsRI6yC4/MD+VisJW1xS7loKm1ts9lHSW5c8XV0BUCLKAgHu1o > q+yLsCakq3p5GXhZtzq8ge8Q6aZsa6yegI0pyxm7hjGURHUkik54ZNMcugjHUjin > pmVcQITqFgU3uNL/7iUVyeo+1ps5pRWG4zmNf1TK+FFzBILTqExdO3qoCtT8KyDy > D3v/I16F84CGSI9Al0B1Dz0xbt+W01XLhtMB4zQaS4CNx8h1SDGBYoiBdD4OPCpV > NGz17d4pbITYdU2zArjUSuaMg1y1BMY25Q/oeM7tfy1ma7ojExZiE82HmwndDa3z > p4eghegczCGgPv+8GaWQ > =U+R3 > -----END PGP SIGNATURE----- > > _______________________________________________ > NetworkManager-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/networkmanager-list _______________________________________________ NetworkManager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
