I assume that your demand is motivated by the need to connect the two
interfaces.
This PowerShell command should cause the switches to forward messages
between themselves:
Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled -Verbose
For more information see the article
Allowing Windows Subsystem for Linux to communicate with Hyper-V VMs
Note that replacing the "vEthernet (WSL)" switch itself is not
possible. A bug report on that subject is found in the post
[WSL2] - vEthernet (WSL) switch reset/lost configuration after system reboot #6406
where the poster has manually modified the switch, only to find
that these modifications disappeared after reboot.
The official answer by Microsoft was :
that is really the intent here. This issue is expressing a work-around that doesn't work.
This is only logical, since the WSL environment itself is a
light-weight virtual machine, so is in effect reinitialized
every time that it is restarted. To permanently effect these
changes would require modifying this virtual machine, for which
there is no known method. In addition, such modifications
would disappear every time that WSL would be updated by
Windows Update.