element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Forum RiotBoard : Mac Address
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 22 replies
  • Subscribers 23 subscribers
  • Views 1549 views
  • Users 0 members are here
Related

RiotBoard : Mac Address

Former Member
Former Member over 11 years ago

Hello

 

I ve got 3 Riotboard and when I connect the ethernet port tu my network, the three receive the same IP address as their MAC address seems the same

 

How can I change some setting to force different IP address for each board

 

Xavier

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 11 years ago

    Android or Linux ?

     

    Essentially, the fuse block in the SoC that would hold the mac address is left un-programmed. This should cause the kernel driver to pick a random mac address on every boot. That does appear to happen on the 3.15-rc* kernels I'm using.

     

    Unfortunately distros try to be smart and force things, or save and restore the settings somewhere.  In Debian/Ubuntu you should be able to do something like adding a line similar to

    hwaddress ether 01:02:03:04:05:06

    into /etc/network/interfaces at the appropriate place. Just pick a different address on each board.


    I don't know much about how android might do this, I'm not really an android person, but there should be a way.

     

    Note that simply giving each board a different static IP address won't work as long as they're on the same network, having duplicate mac address will still cause you problems in that scenario.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hello

     

    Sorry for the confusion

    I am using Android  distro.

     

    Any body could help me ?

     

    Xavier

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • radiatortwo
    0 radiatortwo over 11 years ago in reply to Former Member

    I think I´ve seen something to spoof the Mac within terminal with help of busybox.

     

    Inside the terminal when busybox is installed you can change it with:

     

    ifconfig eth0 hw ether 00:11:22:33:44:55

     

    But you need to have root for this. And I don´t know if or how this is possible at the moment.
    As far as I know no one got root working by now. Maybe you have to ask a bit around. Maybe someone got it to work.

     

    I´m using the riotboard with Linux. So I only can share my knowledge with my rooted Android phone.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to radiatortwo

    Yes, I am facing the root problem on RiOtBoard on Android

     

    How to install busybox on RiotBoard

     

    Xavier

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Ok, so for the don't-have-a-clue-about-android person here, please explain where you see your mac address in the android gui ?

     

    There's a possible way to set unique address that works elsewhere, but I don't seem to be able to get it to work with android..

     

    Connect a serial console, and stop u-boot at the prompt. Type the following two lines:

     

    setenv ethaddr 00:11:22:33:44:55

    saveenv

     

    then power cycle.

    Essentially this is supposed to cause u-boot to set the mac which is then picked up by the kernel later.  This works elsewhere - on Sabre-Lite and a much newer version of u-boot.

     

    I only have android on one of my boards, but it always seems to get a mac of 00:00:00:00:00:00 as seen in the initial u-boot, then when android loads it gets 1E:ED:19:27:1A:B3.  Are you all getting that same mac address in android ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Ok, so for the don't-have-a-clue-about-android person here, please explain where you see your mac address in the android gui ?

     

    There's a possible way to set unique address that works elsewhere, but I don't seem to be able to get it to work with android..

     

    Connect a serial console, and stop u-boot at the prompt. Type the following two lines:

     

    setenv ethaddr 00:11:22:33:44:55

    saveenv

     

    then power cycle.

    Essentially this is supposed to cause u-boot to set the mac which is then picked up by the kernel later.  This works elsewhere - on Sabre-Lite and a much newer version of u-boot.

     

    I only have android on one of my boards, but it always seems to get a mac of 00:00:00:00:00:00 as seen in the initial u-boot, then when android loads it gets 1E:ED:19:27:1A:B3.  Are you all getting that same mac address in android ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube