December 06, 2019, 10:50:27 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


CubieTruck, fixed MAC address

Started by notsoslimshady76, November 17, 2013, 03:14:22 pm

Previous topic - Next topic

notsoslimshady76

Using Cubietruck as a NAS (lubuntu 12.10) and would like it to run without monitor and keyboard.

Setup RDP and it works, until a reboot.   The MAC address changes after every reboot.  Tried a bunch of guides for permanently setting this, none have worked.

Without permant MAC address, I can't set a static IP with my DHCP server. Any advise?  Not opposed to trying different distros, etc.

Thanks in advance

hwatari

Quote from: notsoslimshady76 on November 17, 2013, 03:14:22 pm
Using Cubietruck as a NAS (lubuntu 12.10) and would like it to run without monitor and keyboard.

Setup RDP and it works, until a reboot.   The MAC address changes after every reboot.  Tried a bunch of guides for permanently setting this, none have worked.

Without permant MAC address, I can't set a static IP with my DHCP server. Any advise?  Not opposed to trying different distros, etc.




========================================================
Fedora on SD card may solve your problem, see step #12,

http://docs.cubieboard.org/tutorials/ct1/installation/cb3_fedora19_r3_sd_card_installation







Thanks in advance

cubieplayer

Quote from: notsoslimshady76 on November 17, 2013, 03:14:22 pm
Using Cubietruck as a NAS (lubuntu 12.10) and would like it to run without monitor and keyboard.

Setup RDP and it works, until a reboot.   The MAC address changes after every reboot.  Tried a bunch of guides for permanently setting this, none have worked.

Without permant MAC address, I can't set a static IP with my DHCP server. Any advise?  Not opposed to trying different distros, etc.

Thanks in advance

cubian's solution https://github.com/mmplayer/fsupdate/blob/base/common/etc/init.d/cubian-fixrandomemac

CubieNewb

Quote from: cubieplayer on November 18, 2013, 10:51:33 pm
Quote from: notsoslimshady76 on November 17, 2013, 03:14:22 pm
Using Cubietruck as a NAS (lubuntu 12.10) and would like it to run without monitor and keyboard.

Setup RDP and it works, until a reboot.   The MAC address changes after every reboot.  Tried a bunch of guides for permanently setting this, none have worked.

Without permant MAC address, I can't set a static IP with my DHCP server. Any advise?  Not opposed to trying different distros, etc.

Thanks in advance

cubian's solution https://github.com/mmplayer/fsupdate/blob/base/common/etc/init.d/cubian-fixrandomemac




Where do you put this? Please pretend for a moment that we're not experts and don't already know where the answers go.

Thanks for not telling us to install another operating system to "fix it".

CubieNewb

Quote from: hwatari on November 18, 2013, 05:43:34 pm
Quote from: notsoslimshady76 on November 17, 2013, 03:14:22 pm
Using Cubietruck as a NAS (lubuntu 12.10) and would like it to run without monitor and keyboard.

Setup RDP and it works, until a reboot.   The MAC address changes after every reboot.  Tried a bunch of guides for permanently setting this, none have worked.

Without permant MAC address, I can't set a static IP with my DHCP server. Any advise?  Not opposed to trying different distros, etc.




========================================================
Fedora on SD card may solve your problem, see step #12,

http://docs.cubieboard.org/tutorials/ct1/installation/cb3_fedora19_r3_sd_card_installation







Thanks in advance





"Known Issues

    Wifi doesn't work on r3 version"


Not a solution...

a2life

CubiePlayer is a developer/maintainer of Cubian.  He was not suggesting to install Cubian though.  He was showing you how he fixed the issue.

If you need a static IP address, why don't you just set it up in your CB,  outside the range of IP address that your DHCP server serves?

Ayahuasca

Just pass the MAC address as an option to modprobe:

$ cat /etc/modprobe.d/sunxi_gmac.conf
options sunxi_gmac mac_str="02:01:02:03:04:56"

hoffi77

Hi,

What about the classic way to do this - just define your MAC address in the network config file.

sudo nano /etc/network/interfaces

contents:

auto lo eth0
iface eth0 inet dhcp
        hwaddress ether xx:xx:xx:xx:xx:xx

This works fine in current Lubuntu system.

So long,
Christian

notsoslimshady76

 I could have sworn I did this at some point...but apparently I didn't  :-[. This worked perfectly, thank you everyone

Quote from: hoffi77 on November 21, 2013, 03:49:05 am
Hi,

What about the classic way to do this - just define your MAC address in the network config file.

sudo nano /etc/network/interfaces

contents:

auto lo eth0
iface eth0 inet dhcp
        hwaddress ether xx:xx:xx:xx:xx:xx

This works fine in current Lubuntu system.

So long,
Christian