Is it possible to change MAC address format?

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Locked
mafiasoleh
Posts: 3
Joined: Mon May 01, 2017 8:11 pm

Is it possible to change MAC address format?

Post by mafiasoleh » Tue May 02, 2017 4:03 am

dear forum members and team.

so straight to the point with my question, is it possible to change MAC address format from eve-ng default format to other MAC address format.
by default when we creating a node it will be given with MAC address format like this 50:00:00:0x:00:0y
which mean x=node number, y=interface number.
if i wanna change MAC address with this format 11:00:00:0x:00:0y is it possible to do? if it's possible in which file we can edit it?

thanks alot..

ramindia
Posts: 409
Joined: Sun Mar 19, 2017 10:27 pm

Re: Is it possible to change MAC address format?

Post by ramindia » Tue May 02, 2017 6:15 am

mafiasoleh wrote:
Tue May 02, 2017 4:03 am
dear forum members and team.

so straight to the point with my question, is it possible to change MAC address format from eve-ng default format to other MAC address format.
by default when we creating a node it will be given with MAC address format like this 50:00:00:0x:00:0y
which mean x=node number, y=interface number.
if i wanna change MAC address with this format 11:00:00:0x:00:0y is it possible to do? if it's possible in which file we can edit it?

thanks alot..
Yes possible, you can look file __node.php for MAC changing.

Note: make sure stop all the labs and nodes while you modifying any code in EVE-NG.

R!

ecze
Posts: 534
Joined: Wed Mar 15, 2017 1:54 pm

Re: Is it possible to change MAC address format?

Post by ecze » Tue May 02, 2017 5:28 pm

Let me remind that any change into php code will be overwritten on each update....

E.

Uldis (UD)
Posts: 5176
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Is it possible to change MAC address format?

Post by Uldis (UD) » Tue May 02, 2017 8:55 pm

I do not recommend to do that...this can spoil up all your EVE.
Future we have plans for qemu noees implement cusctom MAC addressing..but not now

mafiasoleh
Posts: 3
Joined: Mon May 01, 2017 8:11 pm

Re: Is it possible to change MAC address format?

Post by mafiasoleh » Thu May 04, 2017 1:20 pm

ramindia wrote:
Tue May 02, 2017 6:15 am

Yes possible, you can look file __node.php for MAC changing.

Note: make sure stop all the labs and nodes while you modifying any code in EVE-NG.

R!
dear ramindia,

thanks for advice.
technicaly i can change the mac address format with format i want, but all qemu base image cannot comunicate each other except iol image base.
Uldis (UD) wrote: I do not recommend to do that...this can spoil up all your EVE.
Future we have plans for qemu noees implement cusctom MAC addressing..but not now
thanks mate.

Locked