help me to change routers lan mac address

dexter2225

Reputable
Oct 28, 2014
1
0
4,510
hello my router is UPVEL UR-344AN4G and has SSH access and installed on router BusyBox so i connected actually the lan and wan mac address is stored on etc/mac.conf here how config looks
WAN_MAC=F8:23:C0:24:21:23
LAN_MAC=F8:23:C0:24:21:23
so i modified LAN_MAC it but after router reboot its return back to its default i looked up dir usr/script/ether_mac.sh i believe this is file that returns back to its default here code from it

CONFFILE=/etc/mac.conf
if [ -f $CONFFILE ]; then
chmod 777 $CONFFILE
. $CONFFILE
fi

if [ "$LAN_MAC" != "" ]; then
/sbin/ifconfig br0 hw ether $LAN_MAC
fi

tried to modify this with command echo "" > ether_mac.sh but returns
cannot create ether_mac.sh: Read-only file system
 
Solution
The "mac address" is not a configuration setting. It is a hard coded serialized identification number for network devices. This is burned into the device by the manufacturer and cannot be changed.

kaleem104

Distinguished
Oct 12, 2014
69
1
18,665
The "mac address" is not a configuration setting. It is a hard coded serialized identification number for network devices. This is burned into the device by the manufacturer and cannot be changed.
 
Solution