Jump to content
XPEnology Community

baremetal install - change mac without flashing


nevusZ

Recommended Posts

Hy everyone,

 

I found out another way to get offline transcoding to work - you need a real synology mac adress.

usually you need to flash a mac to the eeprom with DOS exe files like PG8168.EXE or others(http://xpenology.me/how-to-change-and-flash-mac/)

 

execute this command and you have a temporary mac adress from Vendor Synology (edit the last 6 digits to your needs - only 1-9 and A-F)

ifconfig eth0 hw ether 00:11:32:AB:12:C4 

after a reboot it would be gone, so it has to be launched at boot. therefore create a file /etc/rc.local

 

touch /etc/rc.local

execute permission

chmod +x

now edit the file 

vi /etc/rc.local

 

i for insert and paste your command

 

ifconfig eth0 hw ether 00:11:32:AB:12:C4
exit 0

after a reboot the mac stays. 

 

no need for flashing it to eeprom of your NIC!

 

my question to the admins/devs: 

is it necassery to edit the grub.cfg with the new mac adress?

i have NO problem on my system when there is the orignal mac of my NIC in the grub.cfg

 

My System:

baremetal install on ASROCK J3455-ITX

DSM 6.1.2 15132

loader jun 1.02b

 

BTW: i find it a bit annoying the code is inserted in new dsm version that checks for valid serials/macs! what if other functions get implemented for more important stuff than offline transcoding!

 

THIS post is not about quickconnect or any other synology services! Use those services only if you have a real synology box! It is only about local functions in xpenology

Edited by nevusZ
Link to comment
Share on other sites

https://forum.synology.com/enu/viewtopic.php?t=116174

 

Sorry guys. the rc.local file is not used anymore since dsm 6.1

forget about the above code

 

i found out that you can write your desired MAC into the jun loader grub.cfg->the loader cares about presenting this mac to the OS

code  
 
admin@prodtest1:/$ sudo -s
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
Password:
sh-4.3# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:32:11:22:33
          inet addr:192.168.1.118  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:32ff:fe5d:3161/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5090 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6964 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2699973 (2.5 MiB)  TX bytes:6183192 (5.8 MiB)
          Interrupt:143 base 0xe000
eth1      Link encap:Ethernet  HWaddr 00:11:32:44:55:66
          inet addr:169.254.249.59  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:362 errors:0 dropped:0 overruns:0 frame:0
          TX packets:362 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:40943 (39.9 KiB)  TX bytes:40943 (39.9 KiB)
sh-4.3#

 

Hide  

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...