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

cannot find device bond0 after recent windows update #9989

Closed
1 of 2 tasks
romarowski opened this issue Apr 18, 2023 · 5 comments
Closed
1 of 2 tasks

cannot find device bond0 after recent windows update #9989

romarowski opened this issue Apr 18, 2023 · 5 comments

Comments

@romarowski
Copy link

Windows Version

Microsoft Windows [Version 10.0.19045.2728]

WSL Version

1.2.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

Ubuntu 20.04

Other Software

I am using bond0 to activate matlab licence inside WSL. This worked until today, I either attribute it to recent Windows update or that I installed an Ubuntu GUI app (Terminator) and all the config that came within.

Repro Steps

ifconfig -a

Used to show a bunch of networks including bond0, I honestly dont remember them.

Expected Behavior

Used to show a bunch of networks including bond0, I honestly dont remember them.

Actual Behavior

Only

eth0:

lo:

Diagnostic Logs

No response

@romarowski romarowski changed the title canno find device bond0 after recent windows update cannot find device bond0 after recent windows update Apr 18, 2023
@romarowski
Copy link
Author

@romarowski
Copy link
Author

I am thinking this got changed? https://github.com/microsoft/WSL2-Linux-Kernel/blob/a733b4e7e4db00d1647ee23022fbcfce33835c61/Microsoft/config-wsl#L1627

How do I bring it back to true or check the param value?

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 18, 2023

Thanks for reporting @romarowski. We indeed removed that interface since it didn't seem to be useful to anyone. How exactly were you using this interface ? Is there a reason why eth0 doesn't work ?

@romarowski
Copy link
Author

romarowski commented Apr 18, 2023

Hello, thanks for your answer.
I was using it as a way for MATLAB running inside WSL to verify the license is on the right device. As explained here #5866 (comment)

My understanding is that doing it with ether0 could bring connection issues? Very far from having a clue on what I am doing here so not sure.

I was able to bring bond0 back up by adding to /etc/networks/interfaces
auto bond0 iface bond0 inet static address <ip> netmask 255.255.255.0 slave eth0

and then
sudo service networking restart

Maybe this would have been easier #5352 (comment)

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 19, 2023

Ok I see. In this case the easiest would probably to create that interface manually via something like:

ip link add name bond0 type bond mode active-backup

See this post with more details

You can add this to boot.cmd in /etc/wsl.conf if you want this to start automatically when WSL starts

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

2 participants