WSL Ubuntu auf Win 11 Pro mit HyperV: kein Routing nach außen
Hallo,
WSL Ubuntu läuft auf einem Win 11 Pro-Rechner, auf dem auch ein HyperV-Server aktiv ist (HyperV-Switch). Von WSL Ubuntu komme ich nicht nach außen ins Web.
Von Windows kann ich die WSL-IP 172.18.142.131 anpingen.
Von WSL kann ich die 172.18.128.1 (Ethernet-Adapter vEthernet (WSL (Hyper-V firewall))) anpingen.
Warum komme ich nicht raus?
WSL Ubuntu läuft auf einem Win 11 Pro-Rechner, auf dem auch ein HyperV-Server aktiv ist (HyperV-Switch). Von WSL Ubuntu komme ich nicht nach außen ins Web.
Von Windows kann ich die WSL-IP 172.18.142.131 anpingen.
Von WSL kann ich die 172.18.128.1 (Ethernet-Adapter vEthernet (WSL (Hyper-V firewall))) anpingen.
Warum komme ich nicht raus?
Ethernet-Adapter vEthernet (Default Switch):
Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse . : fe80:: ...
IPv4-Adresse . . . . . . . . . . : Ethernet-Adapter vEthernet (Default Switch):
Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse . : fe80:: ...
IPv4-Adresse . . . . . . . . . . : 172.18.208.1
Subnetzmaske . . . . . . . . . . : 255.255.240.0
Standardgateway . . . . . . . . . :
Ethernet-Adapter vEthernet (WSL (Hyper-V firewall)):
Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse . : fe80::...
IPv4-Adresse . . . . . . . . . . : 172.18.128.1
Subnetzmaske . . . . . . . . . . : 255.255.240.0
Standardgateway . . . . . . . . . :
root@win11:/etc/netplan# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1280
inet 172.18.142.131 netmask 255.255.240.0 broadcast 172.18.143.255
inet6 fe80:: ... prefixlen 64 scopeid 0x20<link>
ether 00:15:5d:71:95:80 txqueuelen 1000 (Ethernet)
RX packets 22276 bytes 4980788 (4.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1308 bytes 118865 (118.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 673906
Url: https://administrator.de/forum/wsl-ubuntu-routing-hyperv-673906.html
Ausgedruckt am: 18.07.2025 um 01:07 Uhr