1814:0301 Wireless PCI device MAC address changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
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.
WORKAROUND: grab the WIreless PCI card "device" and "vendor" IDs using lspci -nn
add a rule to /etc/udev/
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{vendor}
ATTRS{device}
(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
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
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
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,
Controls : 21
Simple ctrls : 13
DistroRelease: Ubuntu 10.04
Frequency: Once a day.
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MachineType: System manufacturer System Product Name
NonfreeKernelMo
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
Regression: No
RelatedPackageV
Reproducible: No
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Tags: lucid networking needs-upstream-
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.
dmi.board.name: P5KPL-AM IN/GB
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: X.0x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
tags: | removed: needs-kernel-logs |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
importance: | Undecided → Medium |
This additional info may be useful. Running dmesg I see:
udev: renamed network interface wlan0 to wlan2