How do you change LAN Mac Address:

7 posts / 0 new
Last post
TTravis
TTravis's picture
How do you change LAN Mac Address:

I've been having way too much fun with 3500L's and Tomato Firmware v1.28.7494 MIPSR2-Toastman-VLAN-RT K26 USB VPN-NOCAT.  I've been putting them in all over town and people seem to love it.

I have a situation where I want to put two of these routers inseries to isolate off a user downstream to keep him isolated and limited.  It turns out that when I flash the firmware the MAC Addresses get changed to whatever comes along with the firmware:

 

 

Router's LAN MAC Address: 00:90:4C:08:00:01
Computer's MAC Address: 00:11:11:8E:E9:B3

I was able to change the WAN and Wireless MAC Address in the Advanced - MAC Address section but I need to change the LAN MAC Address so I can get the two routers to communicate.  Right now the downstream router will not ping the upstream router.

 

Everything is hooked up correctly.  When I flash back to DDWRT, everything works, but I want to stay with Tomato.

 

How do I chage the LAN MAC Address?

 

Tom Travis

posaq
posaq's picture
Hi,

Hi,
I have the same problem.
I've installed Tomato Firmware v1.28.7494 MIPSR2-Toastman-VLAN-RT K26 USB VPN-NOCAT because I wanted to use DLNA. However my internet provider set my modem only for one device (1 MAC).
I was looking for setting it in TOMATO but without success.
Becasue of that I had to back to OFW.

Have anybody found some solution?

PQ

TTravis
TTravis's picture
In console I did the

In console I did the following comand:

nvram show : grep mac

two of the parameters that comes up is:

et0macaddr=00:09:4C:08:00:01 and lan_hwaddr=00:09:4C:08:00:01 which I believe are what I want to change.

What would the command be for me to change values?

I see the syntax for nvram, but I am confused and don't want to screw my router up.

I am not sure what nvram is exactly. I fond the file /bin/nvram but it did not look like something I should edit.

TTravis
TTravis's picture
The following two commands

The following two commands seemed to do the trick.

nvram set et0macaddr=00:09:4C:08:01:01
nvram set lan_hwaddr=00:09:4C:08:01:01

notice these are changed

I then powered down the router and also the switch it was connected to to be sure everything was reset.

Is there an ifconfig command that would have made this easier?

Subhra
Subhra's picture
After setting nvram

After setting nvram parameters you should commit those changes.

e.g.
nvram set parameter_name_01=parameter_value_01
nvram set parameter_name_02=parameter_value_02
nvram commit

TTravis
TTravis's picture
I have not yet done the

I have not yet done the "nvram commit" command, however the MAC addresses seem to be persistent, even after powering off the router. My two 3500L routers on the same toastman tomato build will now talk to one another because they have different LAN MAC address.

I wish someone would give me a link where I can read up on nvram.

Thanks,

Tom Travis

Subhra
Subhra's picture
Great to know that things are

Great to know that things are working on your side.

Try this link to have some basic knowledge knowledge on nvram.