Need to set two custom MACs to net0 & net1 interfaces

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

Post Reply
cbarbudo
Posts: 13
Joined: Sun Sep 24, 2017 8:47 pm
Location: Sevilla

Need to set two custom MACs to net0 & net1 interfaces

Post by cbarbudo » Wed Oct 31, 2018 2:33 pm

I need to set (qemu cli suposse), specific MAC adresses to both interfaces.
Tried "-device virtio-net-pci,netdev=net0,mac=11:11:11:11:11:11 -device virtio-net-pci,netdev=net1,mac=22:22:22:22:22:22" but does not work.
Any idea? Is it possible?

Regards.

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

Re: Need to set two custom MACs to net0 & net1 interfaces

Post by Uldis (UD) » Wed Oct 31, 2018 3:04 pm

explain details what do you want and where need set those custom MAC

cbarbudo
Posts: 13
Joined: Sun Sep 24, 2017 8:47 pm
Location: Sevilla

Re: Need to set two custom MACs to net0 & net1 interfaces

Post by cbarbudo » Wed Oct 31, 2018 3:29 pm

i.e. I would like to generate a custom Linux (no problem) but with 2 ethernet interfaces, where e1 always had 11:11:11:11:11:11 mac and e2 22:22:22:22:22:22.

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

Re: Need to set two custom MACs to net0 & net1 interfaces

Post by Uldis (UD) » Wed Oct 31, 2018 3:50 pm

manually you can set any you like

cbarbudo
Posts: 13
Joined: Sun Sep 24, 2017 8:47 pm
Location: Sevilla

Re: Need to set two custom MACs to net0 & net1 interfaces

Post by cbarbudo » Wed Oct 31, 2018 3:53 pm

Sorry, may be I did nod explained it correctly: I do not need to change MACs once device booted.
I need to had MACs assigned already at boot time.

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

Re: Need to set two custom MACs to net0 & net1 interfaces

Post by Uldis (UD) » Wed Oct 31, 2018 7:41 pm

for linux node you can set first mac here when add node..
Second MAC I believe you can set inside Linux networking...
stop node and boot, it will have right MAC on anyinterface
our linux how allow make any changes for your linux host including MAC, and then you can commit such image to be as default...
You do not have the required permissions to view the files attached to this post.

cbarbudo
Posts: 13
Joined: Sun Sep 24, 2017 8:47 pm
Location: Sevilla

Re: Need to set two custom MACs to net0 & net1 interfaces

Post by cbarbudo » Thu Nov 01, 2018 7:44 am

OK. It will work for linux. What about other instances?
I was looking for some Qemu custom options (i.e. -device virtio-net.pci,... mac=...) to setup at boot level

Thanks in advance.

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

Re: Need to set two custom MACs to net0 & net1 interfaces

Post by Uldis (UD) » Thu Nov 01, 2018 9:04 am

What are those Nodes which you need that?

Actually any node can be prepared as default with any settings. ANY.
After node tuned just make commit to make it as default

Post Reply