Networking

哪個是我的 wwan 設備?

  • November 8, 2022

我有一個帶有 ThinkPad_mobile_Internet 的ThinkPad

要啟用它,我想知道我的 wwan 設備(像這樣):

# your wwan device name created by qmi_wwan kernel module
# check it with "ip a" or "ifconfig -a". it may be wwan0?

但我的ip a回報是:

$ ip a
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: wwp0s20f0u2i1: <BROADCAST,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
   link/ether 3a:29:c8:62:f2:c4 brd ff:ff:ff:ff:ff:ff
3: wlp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
   link/ether 1c:99:57:c6:bc:ea brd ff:ff:ff:ff:ff:ff
   inet 10.2.22.142/20 brd 10.2.31.255 scope global dynamic noprefixroute wlp9s0
      valid_lft 3351sec preferred_lft 3351sec
   inet6 2001:da8:201:3041:7c3d:aaa0:95f7:5501/64 scope global dynamic noprefixroute 
      valid_lft 2591998sec preferred_lft 604798sec
   inet6 fe80::e328:2a26:59d9:3e37/64 scope link noprefixroute 
      valid_lft forever preferred_lft forever
4: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
   link/ether 38:f3:ab:4c:6e:f5 brd ff:ff:ff:ff:ff:ff

哪個是我的 wwan 設備?

前兩個字母告訴你介面的類型:

lo用於環回

en用於乙太網

wl用於無線 LAN (WLAN)

ww用於無線廣域網 (WWAN)

所以在你的情況下,你想要wwp0s20f0u2i1並且

lo是你的環回

wlp9s0是你的無線區域網路

enp0s31f6是你的乙太網

引用自:https://unix.stackexchange.com/questions/724054