Page 1 of 1

API to Extract Assigned Ethernet Interface -> MAC

Posted: Wed Nov 25, 2020 7:27 pm
by kerning
Hi,

I'm trying to find a way to query an EVE topology and extract the EVE generated MAC addresses assigned to interfaces to use in a ZTP DHCP Server Script.

For example:

vEOS with 5 ethernet interfaces E1, E2, E3, E4, E5

I want to extract from the eve-ng topology the MAC it would assign to each of these interfaces with the "device Name" assigned to it. This has nothing to do with the VM itself but how EVE assigns MAC's. If this was native virsh, I could extract this out of the configuration file but I cannot seem to find where this is stored in EVE.

Thanks

Re: API to Extract Assigned Ethernet Interface -> MAC

Posted: Wed Nov 25, 2020 7:40 pm
by Uldis (UD)
EVE MAC is automatically generated AMCs depending from 2 major valuses

POD Nr (user pod)
Node ID
500a.0005.0000
500a.0005.0001

where a is pod 10
and 5 is node ID

rest MAC on the nodes will be frist MAC +n