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
API to Extract Assigned Ethernet Interface -> MAC
Moderator: mike
-
- Posts: 2
- Joined: Wed Nov 25, 2020 4:22 pm
-
- Posts: 5080
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: API to Extract Assigned Ethernet Interface -> MAC
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
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