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

Please support Docker macvlan #11648

Open
chuwza opened this issue Jun 3, 2024 · 8 comments
Open

Please support Docker macvlan #11648

chuwza opened this issue Jun 3, 2024 · 8 comments

Comments

@chuwza
Copy link

chuwza commented Jun 3, 2024

#11292
#11292 (comment)

Same problem here, docker macvlan is not available on win11 WSL2. docker macvlan is available on win11 Hyper-V Ubuntu, two conditions are required: 1. mac address spoofing is turned on for the NIC in Hyper-V Ubuntu
屏幕截图(413)zz
2. Enabled Promiscuous mode for Ubuntu.

The reason macvlan is not available for WSL2 is that mac address spoofing cannot be turned on for WSL2 (the option can be turned on for the NIC in Hyper-V, but there is no place to configure it for the NIC in WSL2)

This problem is actually very easy to solve, just make the WSL2's network interface enable mac address spoofing through the configuration file.
Such as
[wsl2]
memory=8G
[experimental]
networkingMode=bridged
macspoofing=enabled

This is log file
WslLogs-2024-06-03_17-30-06.zip

@chuwza chuwza added the feature label Jun 3, 2024
Copy link

github-actions bot commented Jun 3, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

Copy link

github-actions bot commented Jun 3, 2024

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
Issue was edited and new log file was found: https://github.com/user-attachments/files/15531679/WslLogs-2024-06-03_17-20-01.zip
.wslconfig found
Detected appx version: 2.1.5.0
Found no WSL traces in the logs

Copy link

github-actions bot commented Jun 3, 2024

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
Issue was edited and new log file was found: https://github.com/user-attachments/files/15531786/WslLogs-2024-06-03_17-30-06.zip
.wslconfig found
Detected appx version: 2.1.5.0
Found no WSL traces in the logs

@chuwza
Copy link
Author

chuwza commented Jun 3, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

/feature

Copy link

github-actions bot commented Jun 3, 2024

Diagnostic information
Found '/feature', adding tag 'feature'

@OneBlue OneBlue added the network label Jun 3, 2024
@chanpreetdhanjal
Copy link

Hi. Can you please collect networking logs by following the instructions below?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

@4-FLOSS-Free-Libre-Open-Source-Software

Sad news:

From just released v2.4.5 changelog
Add user warning letting users know bridged networking will be deprecated

Bridged mode works very well as it is now in WSL-Version: 2.4.5.0

@chuwza
Copy link
Author

chuwza commented Dec 4, 2024

Sad news:

From just released v2.4.5 changelog
Add user warning letting users know bridged networking will be deprecated

Bridged mode works very well as it is now in WSL-Version: 2.4.5.0

Oh, no🥲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants