Skip to content

Question about traffic redirect for VMs #640

Answered by hellt
GrigoriyMikhalkin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @GrigoriyMikhalkin
for the traffic that is ingressing to container's interface eth0 we mirror it to the VM's tap0 interface. So you got it right, we move it from container that hosts a VM to that VM that sits inside of it.

Here is the actual code snippet
https://github.com/hellt/vrnetlab/blob/64488e4ed9e1766e10354abade9fe036c5ebe703/common/vrnetlab.py#L328-L351

PS. Sorry I only noticed the question today, the missing counter on discussions make it tricky to see if there are unanswered questions

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GrigoriyMikhalkin
Comment options

Answer selected by GrigoriyMikhalkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants