Skip to content

Create network adapter with the promiscuous mode on #11

@forrest79

Description

@forrest79

Hi,
first, let me thank you for this great tool. Only with this, I'm able to solve my personal needs - running multiple LXC containers accessible from the Windows host each on a separate IP address.

I have one question - do you think, is it possible to set the created network adapter to the promiscuous mode? Something like "Enable MAC address spoofing" in Hyper-V virtual machine - Network adapter - Advanced features.

With this, I should be able to run many LXC containers just with one network adapter.

I'm not familiar with the Host Compute System API, but I did some googling and find, that HcnCreateEndpoint method has some flags property in the settings parameter and one of the flag is EnableMirroring.

I already tried to add this setting here

using var endpoint = ComputeNetworkEndpoint.Create(network, epid, new JsonObject
like ["Flags"] = "EnableMirroring". But when I compile it and run, I get an error like Invalid JSON string document. And that's where my knowledge ends :-)

Thanks for your help or suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions