API to Extract Assigned Ethernet Interface -> MAC

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
kerning
Posts: 2
Joined: Wed Nov 25, 2020 4:22 pm

API to Extract Assigned Ethernet Interface -> MAC

Post by kerning » Wed Nov 25, 2020 7:27 pm

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

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

Re: API to Extract Assigned Ethernet Interface -> MAC

Post by Uldis (UD) » Wed Nov 25, 2020 7:40 pm

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

Post Reply