Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(net): use a tun/tap interface as a backend #14

Merged
merged 1 commit into from
May 10, 2024
Merged

Conversation

Lencerf
Copy link
Collaborator

@Lencerf Lencerf commented May 10, 2024

The current virtio-net implementation assumes the tap device path is referring to a macvtap or ipvtap. This commit allows using a tun/tap interface pre-created by ip tuntap add mode tap $IF_NAME as a backend.

Usage:

--net if=$IF_NAME,mac=$IF_MAC,mtu=$IF_MTU

The current virtio-net implementation assumes the tap device path is
referring to a macvtap or ipvtap. This commit allows using a tun/tap
interface pre-created by `ip tuntap add mode tap $IF_NAME` as a
backend.

Usage:

```
--net if=$IF_NAME,mac=$IF_MAC,mtu=$IF_MTU
```

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
@Lencerf Lencerf merged commit 1b2829a into google:main May 10, 2024
2 checks passed
@Lencerf Lencerf deleted the tap branch May 10, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant