找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: 2r***

Openwrt 接4G卡

  [复制链接]
 楼主| 发表于 2017-7-13 22:48 | 显示全部楼层
dupit8 发表于 2017-7-13 22:36
试试 ping 外网 比如 114.114.114.114 看看

确实可以,不过还是无法打开网页


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

无法打开网页原因是没有配置DNS转发,跟开启网卡的NAT的转发。你建物理口是 eth2 一个DHCP 的wan连接,就可以上网了。  详情 回复 发表于 2017-7-13 22:54
好,你把你的那个3G连接删掉。建一个DHCP的WAN连接即可,这样即使重启也不需要手动执行udhcp -c eth2 的命令了。 协议那个地方选 DHCP client, 不要选UMTS的那个。听我的,不要被其它人误导。  详情 回复 发表于 2017-7-13 22:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-7-13 22:51 | 显示全部楼层

好,你把你的那个3G连接删掉。建一个DHCP的WAN连接即可,这样即使重启也不需要手动执行udhcp -c eth2  的命令了。

协议那个地方选 DHCP client, 不要选UMTS的那个。听我的,不要被其它人误导。

评分

参与人数 1恩山币 +1 收起 理由
2r*** + 1 终于成功了,太感谢你的帮助。浪费了你这么多时间来指导,感激万分!!!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-7-13 22:54 | 显示全部楼层
本帖最后由 dupit8 于 2017-7-13 22:55 编辑
2ryan 发表于 2017-7-13 22:48
确实可以,不过还是无法打开网页

无法打开网页原因是没有配置DNS转发,跟开启网卡的NAT的转发。
你建一个物理口是 eth2 的协议是 DHCP 的wan连接,就可以上网了,配置保存之后,系统会自动帮你配置NAT以及DNS转发的。

点评

其实下面这些是不是可以不装 chat comgt kmod-ppp kmod-usb-serial kmod-usb-core kmod-usb2 libusb-1.0 luci-proto-3g luci-proto-ppp usbutils libpthread librt zlib 只要有kmod-usb-net kmod-usb-net-huawei  详情 回复 发表于 2017-7-13 23:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-7-13 23:08 | 显示全部楼层
dupit8 发表于 2017-7-13 22:54
无法打开网页原因是没有配置DNS转发,跟开启网卡的NAT的转发。
你建一个物理口是 eth2 的协议是 DHCP 的 ...

其实下面这些是不是可以不装
chat comgt kmod-ppp kmod-usb2 libusb-1.0 luci-proto-3g luci-proto-ppp usbutils libpthread librt zlib

只要有kmod-usb-serial kmod-usb-core kmod-usb-net kmod-usb-net-huawei-cdc-ncm usb-modeswitch kmod-usb-net-cdc-ether comgt-ncm就可以?

点评

对的,这些是给ppp模式的网卡用的,而你的网卡并不需要ppp模式。  详情 回复 发表于 2017-7-13 23:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-7-13 23:32 | 显示全部楼层
2ryan 发表于 2017-7-13 23:08
其实下面这些是不是可以不装
chat comgt kmod-ppp kmod-usb2 libusb-1.0 luci-proto-3g luci-proto-ppp  ...

对的,这些是给ppp模式的网卡用的,而你的网卡并不需要ppp模式。

点评

问下如果以后换其他网卡的话,只要改一下p和v的参数就可以?  详情 回复 发表于 2017-7-13 23:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-7-13 23:47 来自手机 | 显示全部楼层
dupit8 发表于 2017-7-13 23:32
对的,这些是给ppp模式的网卡用的,而你的网卡并不需要ppp模式。

问下如果以后换其他网卡的话,只要改一下p和v的参数就可以?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-7 08:08 来自手机 | 显示全部楼层
2ryan 发表于 2017-7-8 17:03
E3372和E8372硬件上有什么区别?我前2天刚买了一个8372....

你好,我准备购买E8372。先说一下E3372和E8372的区别,E3372只能插在电脑或者openwrt路由器上拨号上网,不带WIFI分享功能,而E8372带WIFI分享功能,但是不知道E8372能不能关掉WIFI功能,然后插在电脑或者openwrt路由器上拨号使用(当成E3372来用)。希望你可以测试一下,回复一下,然后我决定购买哪一款,谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-7 14:27 | 显示全部楼层
Using the Huawei E3372 Hi-Link LTE Dongle with OpenWRT
https://protyposis.net/blog/usin ... ongle-with-openwrt/
你试下这个
Getting the Huawei E3372 LTE dongle to work on a router with OpenWRT 15.05 Chaos Calmer is very easy and requires two additional packages: kmod-usb-net-cdc-ether and usb-modeswitch. They can either be installed through the web interface (System > Software) or by running the following on the command line:

opkg update && opkg install kmod-usb-net-cdc-ether usb-modeswitch
A new network interface will show up (eth1 in my case), that just needs to be added to the wan firewall group (Network > Interfaces > eth1 > Edit > Firewall Settings > Assign firewall-zone). That’s it, the router is online! The web interface remains accessible through the browser at its usual IP address (192.168.8.1).

Installing the packages obviously requires an already existing internet connection. The router can be temporarily connected to another wifi network (Network > Wifi > Scan > Join Network), e.g. a hotspot from a smartphone. Don’t forget to disable or remove this network once finished (Network > Wifi > Disable/Remove).

Double NAT Configuration

When running server applications on the router or network, additional configuration is necessary to make them accessible from the internet.

Both the OpenWRT device and the Hi-Link dongle work in router mode and separate the internal from the external network through a NAT, and this double NAT is a pretty effective way to block incoming connections. Because the NAT cannot be deactivated on the dongle, the ugly and configuration intense solution is often to disable the OpenWRT NAT and use the dongle’s instead. This is a pretty bad workaround and there’s a much better solution for dongles with the DMZ feature available (which depends on the firmware version).

In the configuration interface of the dongle (192.168.8.1),  locate the DMZ settings (Settings > Security > DMZ settings) and enable the DMZ feature with a target IP address of 192.168.8.100, which should be the IP of the eth1 network interface on the router that the dongle is connected to (double check in OpenWRT under Network > Interfaces > eth1 > IPv4). Form now on, all incoming connections are passed directly to OpenWRT. The firewall, SIP, and UPnP features of the dongle can be disabled. In contrast to what other guides say, the NAT setting can stay at its default (cone), because it does not have any influence on the DMZ behavior.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-7 14:28 | 显示全部楼层
转的。英文,自己翻译吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-27 13:28 | 显示全部楼层
楼主弄好了么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-28 18:43 来自手机 | 显示全部楼层
看我的帖子,里面有详细的方法
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-10-20 00:10 | 显示全部楼层
楼主搞好了吗?我也在搞这个 有这种类似问题, 我连让他显示 ttyUSB0 什么的都显示不了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-10-21 21:27 来自手机 | 显示全部楼层
目前只能openwrt支持4g网卡吗?华硕老毛子支持不?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-10-22 23:34 来自手机 | 显示全部楼层
dupit8 发表于 2017-7-13 18:43
这一步先不理会,要先看看网口设备出来没有。

大神,一看你就是高人,能教我挂4G网卡不?或者出个教程,造福像我这样爱折腾的小白,多谢!!!!!

点评

你开个新帖,把遇到的问题贴出来,我有空回你。  详情 回复 发表于 2017-10-23 21:19
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-10-23 21:19 | 显示全部楼层
chengran2005 发表于 2017-10-22 23:34
大神,一看你就是高人,能教我挂4G网卡不?或者出个教程,造福像我这样爱折腾的小白,多谢!!!!!

你开个新帖,把遇到的问题贴出来,我有空回你。

点评

高手 请问 这个如何解决 https://www.right.com.cn/forum/thread-378025-1-1.html  详情 回复 发表于 2018-12-21 11:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 11:41

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表