WSL 2 - Static MAC Address or Changing MAC After Booting Without Breaking Internet Connection
Open
Nobody has claimed this yet.
needs-investigation
network
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
Environment
Windows build number: 10.0.19041.264
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL 2
Steps to reproduce
sudo ip link set dev eth0 down
sudo ip link set dev eth0 address 00:15:5d:09:b0:a0 # or any address, which will be fixed
sudo ip link set dev eth0 up
Expected behavior
IPv4 and IPv6 address can change(and would change), but the connection to the local physical machine and internet should be OK.
Actual behavior
I cannot use any program that requires to connect to the internet and GUI program which is attached to the local physical machine's vcxsrv X server.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing the issue in WSL 2 with the listed ip link commands, then verify whether local-machine and internet connectivity survive the MAC change. Done means the MAC can be changed or kept static without breaking IPv4, IPv6, or the VcXsrv connection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, ubuntu
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100