-
Notifications
You must be signed in to change notification settings - Fork 956
Start a distro with fixed MAC address on WSL2 #5291
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
Comments
Since I just stumbled on this issue, I'd like to point everyone to the fact that The discovery was mentioned in issue 4150 and I've tried to document it with other new options the best I could here: Hope this information helps someone! |
Well it may be something like that in %UserProfile%/.wslconfig [wsl2] |
Exactly, as I said above. But due to setting relying on additional setup and OS requirements, putting just config snippet here isn't telling whole story. Anyway, yes that's the setting, you just need Hyper-V vSwitch, that requires Hyper-V, that requires Win 11 Pro, and several setup/config steps before and after setting this in wslconfig. Thus for full story read guide linked in my comment above, so I don't need to copy paste the whole workflow in every issue thread these settings solve. Btw do not fear, if you have W11 Pro with Hyper-V, getting WSL2 to proper networking is 5-10min setup. |
Here a detailed working procedure on how to use WSLAttachSwitch Script : #4799 (comment) Text : #4799 (comment) |
Is your feature request related to a problem? Please describe.
The MAC address of distro changes every time it is started.. Some software license is based on MAC address. Changes will make license unusable.
Describe the solution you'd like
I wish we can have similar option like
wsl -d distro --mac xxx.xxx
The text was updated successfully, but these errors were encountered: