Page 1 of 1
Need to set two custom MACs to net0 & net1 interfaces
Posted: Wed Oct 31, 2018 2:33 pm
by cbarbudo
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.
Re: Need to set two custom MACs to net0 & net1 interfaces
Posted: Wed Oct 31, 2018 3:04 pm
by Uldis (UD)
explain details what do you want and where need set those custom MAC
Re: Need to set two custom MACs to net0 & net1 interfaces
Posted: Wed Oct 31, 2018 3:29 pm
by cbarbudo
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.
Re: Need to set two custom MACs to net0 & net1 interfaces
Posted: Wed Oct 31, 2018 3:50 pm
by Uldis (UD)
manually you can set any you like
Re: Need to set two custom MACs to net0 & net1 interfaces
Posted: Wed Oct 31, 2018 3:53 pm
by cbarbudo
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.
Re: Need to set two custom MACs to net0 & net1 interfaces
Posted: Wed Oct 31, 2018 7:41 pm
by Uldis (UD)
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...
Re: Need to set two custom MACs to net0 & net1 interfaces
Posted: Thu Nov 01, 2018 7:44 am
by cbarbudo
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.
Re: Need to set two custom MACs to net0 & net1 interfaces
Posted: Thu Nov 01, 2018 9:04 am
by Uldis (UD)
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