Skip to content

Multiple VMs on the same subnet #6086

Answered by rbradford
alexellis asked this question in Q&A
Discussion options

You must be logged in to vote

I've been trying to create multiple VMs on the same subnet, with the same, stable gateway IP.

Whenever a tap name is specified on more than one VM, the request gets rejected, whether pre-created or created by cloud-hypervisor at start-up.

There's some rather complex and undocumented code in Firecracker's Go SDK which sets up new network namespaces, and allows for this configuration using a host bridge and CNI along with tc-redirect-tap - which has zero documentation.

Is there a way that a stable IP can be set up i.e. 172.16.0.1/24 for the host, and each cloud-hypervisor VM can obtain a working IP within that subnet i.e. 172.16.0.2, 172.16.0.3, 172.16.0.4 and so forth?

You can't reuse ta…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@alexellis
Comment options

@rbradford
Comment options

@alexellis
Comment options

Answer selected by alexellis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants