Giter VIP home page Giter VIP logo

Comments (3)

yosukes-dev avatar yosukes-dev commented on June 21, 2024 2

In my environment, I've solved the problem by adding the following to ~/.profile

ip addr flush dev eth0
ip addr add 172.25.160.10/20 dev eth0
ip route add default via 172.25.160.1

then returns

PS C:\Users\**********> wsl --shutdown
PS C:\Users\**********> wsl -d Amazon2
-bash-4.2# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 12:98:72:0a:ba:6c brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether de:78:80:dc:e9:34 brd ff:ff:ff:ff:ff:ff
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:30:d0:d3 brd ff:ff:ff:ff:ff:ff
    inet 172.25.160.10/20 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe30:d0d3/64 scope link
       valid_lft forever preferred_lft forever
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0

-bash-4.2# ip route
default via 172.25.160.1 dev eth0
172.25.160.0/20 dev eth0 proto kernel scope link src 172.25.160.10

I hope you will try it and let me know the results.
Thanks.

from amazonwsl.

anilsamuel avatar anilsamuel commented on June 21, 2024 1

with 2.0.20211005.0, ip and yum command not working

-bash-4.2# ip addr show
-bash: ip: command not found

from amazonwsl.

jtrutwin avatar jtrutwin commented on June 21, 2024 1

with 2.0.20211005.0, ip and yum command not working

-bash-4.2# ip addr show
-bash: ip: command not found

ok it's not just me then - did you ever figure this out? Kinda hard to debug internet commands when ping, nc, route, and even ip commands are not available and you can't install anything. :)

from amazonwsl.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.