Need to set two custom MACs to net0 & net1 interfaces
Moderator: mike
-
- Posts: 13
- Joined: Sun Sep 24, 2017 8:47 pm
- Location: Sevilla
Need to set two custom MACs to net0 & net1 interfaces
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.
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.
-
- Posts: 5180
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: Need to set two custom MACs to net0 & net1 interfaces
explain details what do you want and where need set those custom MAC
-
- Posts: 13
- Joined: Sun Sep 24, 2017 8:47 pm
- Location: Sevilla
Re: Need to set two custom MACs to net0 & net1 interfaces
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.
-
- Posts: 5180
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: Need to set two custom MACs to net0 & net1 interfaces
manually you can set any you like
-
- Posts: 13
- Joined: Sun Sep 24, 2017 8:47 pm
- Location: Sevilla
Re: Need to set two custom MACs to net0 & net1 interfaces
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.
I need to had MACs assigned already at boot time.
-
- Posts: 5180
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: Need to set two custom MACs to net0 & net1 interfaces
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...
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.
-
- Posts: 13
- Joined: Sun Sep 24, 2017 8:47 pm
- Location: Sevilla
Re: Need to set two custom MACs to net0 & net1 interfaces
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.
I was looking for some Qemu custom options (i.e. -device virtio-net.pci,... mac=...) to setup at boot level
Thanks in advance.
-
- Posts: 5180
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: Need to set two custom MACs to net0 & net1 interfaces
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
Actually any node can be prepared as default with any settings. ANY.
After node tuned just make commit to make it as default