Page 1 of 1

Static Mac Addresses to Qemu Nodes

Posted: Tue Oct 08, 2019 4:54 am
by chitiz
Dear Team,

Is it possible to provide a static mac address to a qemu-instance-interface using eve-ng?
Instead of a dynamic mac address to an interface while booting(I don't know how MAC is distributed to the interface), if it is possible to static IP, it will be great for my project.

I want to build a table which map mac to IP and use it for a DHCP server. This DHCP server will provide mgmt. IP addresses to nodes in a lab. After this, I should know which IP address is in which host.
Then I want to do some housekeeping tasks before loading a full config.

I went through the API doc but cannot find or I missed it.

Regards,
Chitiz

Re: Static Mac Addresses to Qemu Nodes

Posted: Wed Oct 09, 2019 12:27 am
by chitiz
Dear Team,

I am looking for the facts type of thing, just like API "curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/status" gives you
current system status of the host. If there is some API that provides current mac to host mapping that will be great.
If it can show mac address, I can relate mac to IP using some scripts.

Regards,
Chitiz