如何排查linux使用RNDIS无法上网的问题

                        <p><b>一, 通过RNDIS 上网</b></p><p>一般情况下,不是特别精简的linux 已经支持rndis 功能,如果插上合宙的4G 模块,但是不能上网的话,需要注意以下几点<br></p><p>1,能否检测到rndis 设备</p><p>    在命令行中输入 dmesg ,如此出现  rndis_host 1-1:1.0 eth1 这样的打印,则证明已经识别到了,(如果没有,可能是硬件问题,也可能是linux 真的不支持rndis <a href="http://oldask.openluat.com/article/79">http://oldask.openluat.com/article/79</a>)</p><p>    此时查看ifconfig ,如果没有出现    rndis_host 1-1:1.0 eth1 中的 eth1 ,则发送ifconfig -a ,此时发现有eth1 但是 没有ip 地址,发送 udhcpc -i eh1  出现地址后,即可使用此网卡进行上网</p><p>2,出现设备网卡,但是无法上网</p><p>    这可能是由于模块没有注册上网络,请看通过tcp 和模块进行通信<br></p><p><b>二 , 通过 tcp 和 模块进行通信</b></p><p>当你的linux系统直接使用合宙的4G 模块(通过rndis功能上网),想知道一些模块的信息,但是由于没有识别到模块的tty设备(想要识别模块 请看<a href="http://oldask.openluat.com/article/37">http://oldask.openluat.com/article/37</a> ),可以通过rndis 和模块进行通信,</p><p>通过 在linux 上命令行 发送     telnet 192.168.0.1 4321 就可和模块 进行AT 通信</p><p>常用 AT :</p><p>AT+CPIN?  查看卡是否在位</p><p>AT+CEREG?  查看是否注册上网络</p><p>AT+CESQ    查看信号值</p><p>ATI  查看版本号</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>



上次更新 2021-01-28