microsoft / microsoft/WSL

WSL 2 - Static MAC Address or Changing MAC After Booting Without Breaking Internet Connection

Open
#5,352 41 comments 12 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.