Original Reporter Aleem Hossain -> https://launchpad.net/~i-admin- aleemhossain-co-uk-deactivatedaccount
** Summary changed: - Wireless PCI device MAC address changes + 1814:0301 Wireless PCI device MAC address changes ** Tags added: kernel-wifi ** Description changed: I have just installed Ubuntu 9.10 and have a Edimax EW-7128G wireless PCI adapter The MAC address and device name change between reboots, e.g.: wlan0 00:1f:1f:51:7a:56 wlan1 00:1f:1f:53:7a:56 wlan2 00:1f:1f:43:7a:56 The MAC address change is making it impossible to, for example, control access to my home network using MAC filtering. - Regards, - Aleem - --- + WORKAROUND: grab the WIreless PCI card "device" and "vendor" IDs using lspci -nn + add a rule to /etc/udev/rules.d/70-persistent-net.rules that reads: + + SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{vendor}=="0x[vendor_id]", + ATTRS{device}=="0x[device_id]", NAME="wlan0" + + (Where [vendor_id] and [device_id] are the IDs you picked up from lspci) + + This ensures that the card is always wlan0. + + Then I have written a script that runs at boot which assigns the desired MAC address to wlan0: + ifconfig wlan0 down + ifconfig wlan0 hw ether ma:ca:dd:re:ss + iwconfig wlan0 up + + --- AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21. AplayDevices: - **** List of PLAYBACK Hardware Devices **** - card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog] - Subdevices: 2/2 - Subdevice #0: subdevice #0 - Subdevice #1: subdevice #1 + **** List of PLAYBACK Hardware Devices **** + card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog] + Subdevices: 2/2 + Subdevice #0: subdevice #0 + Subdevice #1: subdevice #1 Architecture: i386 ArecordDevices: - **** List of CAPTURE Hardware Devices **** - card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog] - Subdevices: 2/2 - Subdevice #0: subdevice #0 - Subdevice #1: subdevice #1 + **** List of CAPTURE Hardware Devices **** + card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog] + Subdevices: 2/2 + Subdevice #0: subdevice #0 + Subdevice #1: subdevice #1 AudioDevicesInUse: - USER PID ACCESS COMMAND - /dev/snd/controlC0: mythbox 1268 F.... pulseaudio + USER PID ACCESS COMMAND + /dev/snd/controlC0: mythbox 1268 F.... pulseaudio CRDA: Error: [Errno 2] No such file or directory Card0.Amixer.info: - Card hw:0 'Intel'/'HDA Intel at 0xf9ffc000 irq 16' - Mixer name : 'VIA VT1708S' - Components : 'HDA:11064397,104383a1,00100000' - Controls : 21 - Simple ctrls : 13 + Card hw:0 'Intel'/'HDA Intel at 0xf9ffc000 irq 16' + Mixer name : 'VIA VT1708S' + Components : 'HDA:11064397,104383a1,00100000' + Controls : 21 + Simple ctrls : 13 DistroRelease: Ubuntu 10.04 Frequency: Once a day. HibernationDevice: RESUME=UUID=cc73d09e-dabd-45a3-b071-3fa25a4ec358 InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429) MachineType: System manufacturer System Product Name NonfreeKernelModules: nvidia Package: linux (not installed) ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=f39e45a3-933d-44c7-a424-e40fec4e21e4 ro quiet splash ProcEnviron: - LANG=en_GB.UTF-8 - SHELL=/bin/bash + LANG=en_GB.UTF-8 + SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2 Regression: No RelatedPackageVersions: linux-firmware 1.34 Reproducible: No RfKill: - 0: phy0: Wireless LAN - Soft blocked: no - Hard blocked: no + 0: phy0: Wireless LAN + Soft blocked: no + Hard blocked: no Tags: lucid networking needs-upstream-testing Uname: Linux 2.6.32-22-generic i686 UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare dmi.bios.date: 05/08/2009 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 0403 dmi.board.asset.tag: To Be Filled By O.E.M. dmi.board.name: P5KPL-AM IN/GB dmi.board.vendor: ASUSTeK Computer INC. dmi.board.version: X.0x dmi.chassis.asset.tag: Asset-1234567890 dmi.chassis.type: 3 dmi.chassis.vendor: Chassis Manufacture dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0403:bd05/08/2009:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5KPL-AMIN/GB:rvrX.0x:cvnChassisManufacture:ct3:cvrChassisVersion: dmi.product.name: System Product Name dmi.product.version: System Version dmi.sys.vendor: System manufacturer ** Changed in: linux (Ubuntu) Importance: Medium => Low ** Changed in: linux (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/478297 Title: 1814:0301 Wireless PCI device MAC address changes To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/478297/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs