|
求大神指导,openwrt如何通过4G网卡来上网(不接有线宽带)需要哪些操作,望指导一下!谢谢!
目前的状态停留在网卡可以识别, modeswitch 正常, 对应的介面为wwan0及ttyUSB0
请问下一步具体怎么操作?
谢谢
lsusb
- Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 001 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
- Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
复制代码 dmesg |grep usb
- root@LEDE:~# dmesg |grep usb
- [ 0.678313] ralink-usb-phy usbphy: invalid resource
- [ 6.406970] usbcore: registered new interface driver usbfs
- [ 6.412781] usbcore: registered new interface driver hub
- [ 6.418346] usbcore: registered new device driver usb
- [ 6.452892] phy phy-usbphy.0: remote usb device wakeup disabled
- [ 6.458957] phy phy-usbphy.0: UTMI 16bit 30MHz
- [ 6.950911] usb 1-1: new high-speed USB device number 2 using ehci-platform
- [ 15.728266] usbcore: registered new interface driver cdc_wdm
- [ 15.911120] usbcore: registered new interface driver usb-storage
- [ 15.997568] usbcore: registered new interface driver usbserial
- [ 16.003732] usbcore: registered new interface driver usbserial_generic
- [ 16.010496] usbserial: USB Serial support registered for generic
- [ 16.093111] usbcore: registered new interface driver cdc_ether
- [ 16.119215] usbcore: registered new interface driver cdc_ncm
- [ 16.267350] huawei_cdc_ncm 1-1:1.1 wwan0: register 'huawei_cdc_ncm' at usb-101c0000.ehci-1, Huawei CDC NCM device, 00:1e:10:1f:00:00
- [ 16.279756] usbcore: registered new interface driver huawei_cdc_ncm
- [ 16.381874] usbcore: registered new interface driver qmi_wwan
- [ 16.394654] usbcore: registered new interface driver rndis_host
- [ 16.597007] usbcore: registered new interface driver option
- [ 16.602917] usbserial: USB Serial support registered for GSM modem (1-port)
- [ 16.617130] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
复制代码
ls /dev/cdc* /dev/ttyUS*
- <blockquote>root@LEDE:~# ls /dev/cdc* /dev/ttyUS*
复制代码
ip addr
稍微说明一下wlan0是目前暂时用ap client模具接上了另一个无线网路来暂时使用
- root@LEDE:~# ip addr
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
- 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN qlen 1000
- link/ether 64:09:80:73:65:28 brd ff:ff:ff:ff:ff:ff
- inet6 fe80::6609:80ff:fe73:6528/64 scope link
- valid_lft forever preferred_lft forever
- 4: wwan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
- link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
- 6: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether 66:09:80:73:65:28 brd ff:ff:ff:ff:ff:ff
- inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
- valid_lft forever preferred_lft forever
- inet6 fd98:39a7:9782::1/60 scope global
- valid_lft forever preferred_lft forever
- inet6 fe80::6409:80ff:fe73:6528/64 scope link
- valid_lft forever preferred_lft forever
- 7: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
- link/ether 66:09:80:73:65:28 brd ff:ff:ff:ff:ff:ff
- 8: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether 64:09:80:73:65:28 brd ff:ff:ff:ff:ff:ff
- inet6 fe80::6609:80ff:fe73:6528/64 scope link
- valid_lft forever preferred_lft forever
- 9: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether 64:09:80:73:65:2a brd ff:ff:ff:ff:ff:ff
- inet 192.168.8.2/24 brd 192.168.8.255 scope global wlan0
- valid_lft forever preferred_lft forever
- inet6 fe80::6609:80ff:fe73:652a/64 scope link
- valid_lft forever preferred_lft forever
- 10: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000
- link/ether 64:09:80:73:65:29 brd ff:ff:ff:ff:ff:ff
- inet6 fe80::6609:80ff:fe73:6529/64 scope link
- valid_lft forever preferred_lft forever
复制代码
lsmod
- root@LEDE:~# lsmod
- cdc_ether 3456 1 rndis_host
- cdc_ncm 11712 1 huawei_cdc_ncm
- cdc_wdm 7712 2 qmi_wwan,huawei_cdc_ncm
- cfg80211 223712 5 rt2x00lib,mt76x2e,mt7603e,mt76,mac80211
- compat 10192 4 rt2800soc,rt2800pci,mac80211,cfg80211
- crc_ccitt 992 2 ppp_async,rt2800lib
- crc_itu_t 992 0
- eeprom_93cx6 2048 1 rt2800pci
- ehci_hcd 31856 1 ehci_platform
- ehci_platform 4128 0
- gpio_button_hotplug 6240 0
- huawei_cdc_ncm 1472 0
- ip_tables 9232 3 iptable_nat,iptable_mangle,iptable_filter
- ip6_tables 8992 2 ip6table_mangle,ip6table_filter
- ip6t_REJECT 928 2
- ip6table_filter 608 1
- ip6table_mangle 1056 1
- ipt_MASQUERADE 640 1
- ipt_REJECT 896 2
- iptable_filter 672 1
- iptable_mangle 864 1
- iptable_nat 736 1
- leds_gpio 2656 0
- mac80211 393088 7 rt2800lib,rt2x00soc,rt2x00pci,rt2x00lib,mt76x2e,mt7603e,mt76
- mii 3360 1 usbnet
- mt76 15456 2 mt76x2e,mt7603e
- mt7603e 27776 0
- mt76x2e 38528 0
- nf_conntrack 51264 9 nf_nat_ipv4,nf_conntrack_ipv6,nf_conntrack_ipv4,xt_state,xt_conntrack,xt_CT,nf_nat_masquerade_ipv4,nf_nat,nf_conntrack_rtcache
- nf_conntrack_ipv4 5344 11
- nf_conntrack_ipv6 5888 6
- nf_conntrack_rtcache 2464 0
- nf_defrag_ipv4 896 1 nf_conntrack_ipv4
- nf_defrag_ipv6 9040 1 nf_conntrack_ipv6
- nf_log_common 2432 2 nf_log_ipv4,nf_log_ipv6
- nf_log_ipv4 3264 0
- nf_log_ipv6 3424 0
- nf_nat 9760 4 nf_nat_ipv4,xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4
- nf_nat_ipv4 4208 1 iptable_nat
- nf_nat_masquerade_ipv4 1264 1 ipt_MASQUERADE
- nf_nat_redirect 896 1 xt_REDIRECT
- nf_reject_ipv4 2080 1 ipt_REJECT
- nf_reject_ipv6 2432 1 ip6t_REJECT
- nls_base 4768 1 usbcore
- ohci_hcd 21776 1 ohci_platform
- ohci_platform 3456 0
- option 30656 0
- ppp_async 6336 0
- ppp_generic 19984 3 pppoe,ppp_async,pppox
- pppoe 7936 0
- pppox 1200 1 pppoe
- qmi_wwan 10688 0
- rndis_host 4544 0
- rt2800lib 91200 3 rt2800soc,rt2800pci,rt2800mmio
- rt2800mmio 5312 2 rt2800soc,rt2800pci
- rt2800pci 3568 0
- rt2800soc 2480 0
- rt2x00lib 31536 7 rt2800soc,rt2800pci,rt2800mmio,rt2800lib,rt2x00soc,rt2x00pci,rt2x00mmio
- rt2x00mmio 1792 3 rt2800soc,rt2800pci,rt2800mmio
- rt2x00pci 1568 1 rt2800pci
- rt2x00soc 1152 1 rt2800soc
- scsi_mod 86224 2 usb_storage,sd_mod
- sd_mod 25232 0
- slhc 4256 1 ppp_generic
- usb_common 1952 1 usbcore
- usb_storage 36928 0
- usb_wwan 4160 1 option
- usbcore 114992 15 option,usb_wwan,rndis_host,qmi_wwan,huawei_cdc_ncm,cdc_ncm,cdc_ether,usbserial,usbnet,usb_storage,cdc_wdm,ohci_platform,ohci_hcd,ehci_platform,ehci_hcd
- usbnet 16624 5 rndis_host,qmi_wwan,huawei_cdc_ncm,cdc_ncm,cdc_ether
- usbserial 16864 2 option,usb_wwan
- x_tables 10576 23 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_CT,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
- xt_CT 2464 0
- xt_LOG 736 0
- xt_REDIRECT 640 0
- xt_TCPMSS 2752 4
- xt_comment 480143
- xt_conntrack 2176 16
- xt_limit 992 20
- xt_mac 608 0
- xt_mark 640 0
- xt_multiport 1216 0
- xt_nat 1120 1
- xt_state 672 0
- xt_tcpudp 1760 14
- xt_time 1600 0
复制代码 opkg list-installed
|
|