Comments (3)
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.
with 2.0.20211005.0, ip and yum command not working
-bash-4.2# ip addr show
-bash: ip: command not found
from amazonwsl.
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)
- Empty mount drive HOT 2
- Increase the size of ext4.vdhx HOT 1
- More documentation after installing Amazon2 HOT 2
- Amazon2.exe corrupt (not a PE binary) HOT 1
- Amazon2.exe config --default-user user returns ERROR HRESULT:0x80004005 HOT 2
- Cannot find a valid baseurl for repo: amzn2-core/2/x86_64 HOT 1
- Some basic packages are missing HOT 3
- AWS AMI 2022 HOT 1
- Icon for Windows Terminal HOT 6
- chocolate installer
- AMI 2023 released HOT 6
- Determine correct version of Distro HOT 3
- Using aws-cli HOT 4
- Service command not found HOT 4
- Service cmd doesn't load HOT 2
- AL2 / WSL2 time issue. HOT 1
- ~
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazonwsl.