Re: [GXemul-devel] MAC address for emulated hosts
Status: Alpha
Brought to you by:
gavare
From: Jan-Benedict G. <jb...@lu...> - 2023-03-25 20:18:21
|
On Sat, 2023-03-25 20:39:37 +0100, Jan-Benedict Glaw <jb...@lu...> wrote: > I just tried to find a way to configure specific MAC addresses for an > emulated machine. Couldn't find something in the docs and a quick look > at the sources seems to indicate that, for all emulated NICs, > net_generate_unique_mac() is called to calculate a MAC address. It > seems that for two "VMs" run as separate processes, the same MAC would > be used? net_generate_unique_mac() uses the machine->serial_nr to be encoded into four bits of the MAC address. That would basically allow for 16 predictable emulated systems. I'd probaby start with that, but in the end, there'd be good use for more gxemul systems on a network. So the serial_nr eases my issue a bit, but doesn't solve the general case. MfG, JBG -- |