Author Topic: how to set the MAC address!  (Read 8110 times)

Offline tr111

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
how to set the MAC address!
« on: November 08, 2007, 04:39:18 AM »
Main menu
===================
1              Configure LAN interface
2              Configure serial interface
3              Go to I/O menu
4              Go to administration menu
5              Go to overview/statistics menu
help           Display menu specific help
quit           Leave command mode

I know to the  1              Configure LAN interface
can set the MAC!
But I use the MAC 00-a0-1e-52-23-50,it is false!
I do it success long ago! I have format the flash,That is said  the first time to set mac!
can I use the "MAC" wrong!

« Last Edit: November 08, 2007, 04:46:23 AM by tr111 »

Offline tr111

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: how to set the MAC address!
« Reply #1 on: November 08, 2007, 06:47:31 AM »
I have known why,because #undefine  FLASH_FILE_SYSTEM ,so I do it now!

But now I have a question? I use the mcf52235evb!

when I do " MAC 00-A0-1E-52-00-00" .the MAC address = 00-a0-1e-52-00-00,
But I search the FLASH ,I didn't find the MAC address  locate at flash???
why???
BUT when I do "set_ip_add 192.168.0.15" and "save",I will find the Ip and the MAC address
locate at flash somewhere!WHY????
5555FFFF FFFF0018 00A01E52 5300C0A8
000FFFFF FF00C0A8 0002C0A8 00010500
00782020 00175D07 00000000 41444D49
4E262020 75546173 6B657226 75546173

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: how to set the MAC address!
« Reply #2 on: November 08, 2007, 12:09:26 PM »
Hi

I don't see the problem at the moment but the following notes may help.

1. The MAC address can only be set once and then not changed any more (unless the FLASH is deleted and then it can be set again).

2. The MAC address is always saved together with the IP configuration in one of th etwo parameter FLASH swap blocks.
Each time something is changed, the valid set of parameters changes to the other swap block (eg. at addresses 0x18000 and 0x18800). You have to be careful that you are looking at the valid block and not an old one (it starts with 0x55555555 - meaning that it is valid).

3. When network parameters are changed they are set to the 'temporary' parameter block and it is necessary to validate them by reconnecting using the new settings. When they are still temporary the original parameters are still available in FLASH - the temporary block is marked with 0x5555FFFF (which is the state of the block which you are looking at).

4. If you have older, validated parameters also in the FLASH and the new values are not validated within a period of 3 minutes, they will be deleted and then the original ones are used again.

5555FFFF FFFF0018 00A01E52 5300C0A8  <- the MAC is in blue
000FFFFF FF00C0A8 0002C0A8 00010500
00782020 00175D07 00000000 41444D49
4E262020 75546173 6B657226 75546173

Full details of the operation of the parameter blocks can be found from page 9 of the document:
http://www.utasker.com/docs/uTasker/uTaskerFileSystem.PDF


Regards

Mark