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

net block: get_default_interface in netlink.rs can not detect wwan0 #2117

Open
cjacker opened this issue Dec 12, 2024 · 0 comments
Open

net block: get_default_interface in netlink.rs can not detect wwan0 #2117

cjacker opened this issue Dec 12, 2024 · 0 comments

Comments

@cjacker
Copy link

cjacker commented Dec 12, 2024

My thinkpad has a xmm7360 4g module, after it connected to internet, i3status-rust can not detect it as default interface.

After adding some println! to netlink.rs and get the output as:

All interfaces:
lo, index:1
enp0s31f6, index:2
wlan0, index:4
wwan0, index:15

get_default_interface: 4

route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     1000   0        0 wwan0
0.0.0.0         192.168.2.1     0.0.0.0         UG    3004   0        0 wlan0
192.168.2.0     0.0.0.0         255.255.255.0   U     3004   0        0 wlan0

ip route show default:

default dev wwan0 proto static metric 1000
default via 192.168.2.1 dev wlan0 proto dhcp src 192.168.2.148 metric 3004

ip route get 8.8.8.8:

8.8.8.8 dev wwan0 src 10.225.190.236 uid 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant