Permanent MAC Address on iMX233 Olinuxino

Started by habib, June 11, 2013, 08:51:32 PM

Previous topic - Next topic

habib

Hi all,

The topic is on the subject. How to set a MAC Adress permanently on the iMX233 Olinuxino board? My board runs a squeeze debian distribution.

Please help, H


scout_3pm

In /etc/network/interfaces

under "iface usb0 inet dhcp" add the following line

hwaddress ether xx:xx:xx:xx:xx:xx

You could use 'nano' to edit this file.

habib


Does it works for you ?

i have this at boot time :

Configuring network interfaces...Setting back to old MAC.
SIOCSIFHWADDR: Operation not supported
run-parts: /etc/network/if-pre-up.d/00-persistent-mac exited with return code 1
Setting back to old MAC.

Is somebody experience the same ?

Best Regards, H

scout_3pm

Yes, it works for me and should work for you too.

Show me your /etc/network/interfaces file, also here is mine:


auto usb0
iface usb0 inet dhcp
        hwaddress ether 6E:25:C4:8E:14:A7


This error message you are getting tells that the driver you are using doesn't support change of the MAC address. What kernel you are running ? Are you sure you edit your interfaces file correct ?

Show me also `ifconfig -a` output.

habib

Quote from: scout_3pm on June 13, 2013, 02:35:15 PM
Yes, it works for me and should work for you too.

Show me your /etc/network/interfaces file, also here is mine:

Yes sure :

iface wlan0 inet dhcp
        wireless_mode managed
        wireless_essid any
        wpa-driver wext
        wpa-conf /etc/wpa_supplicant.conf

auto usb0
iface usb0 inet dhcp
hwaddress ether 8e:e2:63:bf:47:f8



auto usb0
iface usb0 inet dhcp
        hwaddress ether 6E:25:C4:8E:14:A7


This error message you are getting tells that the driver you are using doesn't support change of the MAC address. What kernel you are running ? Are you sure you edit your interfaces file correct ?


Linux debian 2.6.35.3_OLinuXinoR4 #11 PREEMPT Mon May 21 10:27:52 EEST 2012 armv5tejl GNU/Linux


Show me also `ifconfig -a` output.


lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

usb0      Link encap:Ethernet  HWaddr 6e:5d:1f:01:4b:8e 
          inet addr:192.168.0.22  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:183 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17217 (16.8 KiB)  TX bytes:16708 (16.3 KiB)