- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试通过通过 USB 连接到嵌入式 Linux 板(没有网络管理器)CC3200 的 Telit 调制解调器访问数据。
我已经插入了所有需要的驱动程序,并且我正在使用 PPP 守护程序将此 ttyACM0 设备连接到 ppp 接口(interface),以便我可以通过 ppp 接口(interface)访问网络。
两天前,我能够成功连接到网络并 ping google.com。但我没能弄清楚到底是什么让它起作用,不幸的是我失去了工作设置。
现在 ppp peer 拒绝就 IP 达成一致。
我点击此链接进行 ppp 设置:http://www.techytalk.info/manage-gsm-mobile-broadband-connections-without-network-manager-ubuntu-mint-debian/我正在尝试不进行身份验证。我还在选项文件中添加了“nodeflate nomagic and demand”。
以下是 pppd 日志:
May 6 13:45:58 (none) daemon.notice pppd[1564]: pppd 2.4.6 started by root, uid 0
May 6 13:45:58 (none) daemon.info pppd[1564]: Using interface ppp0
May 6 13:45:58 (none) daemon.notice pppd[1564]: local IP address 10.64.64.64
May 6 13:45:58 (none) daemon.notice pppd[1564]: remote IP address 10.112.112.112
May 6 13:45:58 (none) daemon.info pppd[1564]: Starting link
May 6 13:46:02 (none) daemon.debug pppd[1564]: Script /usr/local/sbin/chat -v -f /etc/chatscripts/ispname finished (pid 1589), status = 0x0
May 6 13:46:02 (none) daemon.info pppd[1564]: Serial connection established.
May 6 13:46:02 (none) daemon.debug pppd[1564]: using channel 1
May 6 13:46:02 (none) daemon.notice pppd[1564]: Connect: ppp0 <--> /dev/ttyACM0
May 6 13:46:03 (none) daemon.debug pppd[1564]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x52181044> <pcomp> <accomp>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <accomp>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: sent [LCP ConfRej id=0x1 <magic 0x52181044> <pcomp>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <accomp>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <accomp>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: sent [LCP ConfAck id=0x2 <asyncmap 0x0> <accomp>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: sent [LCP EchoReq id=0x0 magic=0x0]
May 6 13:46:03 (none) daemon.debug pppd[1564]: sent [CCP ConfReq id=0x1 <bsd v1 15>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
May 6 13:46:03 (none) daemon.debug pppd[1564]: rcvd [LCP EchoRep id=0x0 magic=0x0]
May 6 13:46:03 (none) daemon.debug pppd[1564]: rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 07 15]
May 6 13:46:03 (none) daemon.debug pppd[1564]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: rcvd [IPCP ConfReq id=0x1]
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP ConfNak id=0x1 <addr 10.112.112.112>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 10.112.112.112> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: rcvd [IPCP ConfReq id=0x2 <addr 10.112.112.112>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP ConfAck id=0x2 <addr 10.112.112.112>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 10.112.112.112>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP ConfReq id=0x3 <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: rcvd [IPCP ConfNak id=0x3 <ms-dns1 125.22.47.102> <ms-dns2 59.144.144.46>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP ConfReq id=0x4 <ms-dns1 125.22.47.102> <ms-dns2 59.144.144.46>]
May 6 13:46:06 (none) daemon.debug pppd[1564]: rcvd [IPCP ConfAck id=0x4 <ms-dns1 125.22.47.102> <ms-dns2 59.144.144.46>]
May 6 13:46:06 (none) daemon.err pppd[1564]: Peer refused to agree to our IP address
May 6 13:46:06 (none) daemon.info pppd[1564]: Connect time 0.2 minutes.
May 6 13:46:06 (none) daemon.info pppd[1564]: Sent 549 bytes, received 238 bytes.
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP TermReq id=0x5 "Refused our IP address"]
May 6 13:46:06 (none) daemon.debug pppd[1564]: rcvd [IPCP TermReq id=0x3 "Could not determine remote IP address"]
May 6 13:46:06 (none) daemon.debug pppd[1564]: sent [IPCP TermAck id=0x3]
May 6 13:46:06 (none) daemon.info pppd[1564]: Hangup (SIGHUP)
May 6 13:46:06 (none) daemon.notice pppd[1564]: Modem hangup
May 6 13:46:06 (none) daemon.notice pppd[1564]: Connection terminated.
为什么协议(protocol)拒绝正在接收。如何克服它。 nodeflate 没有帮助。为什么同行拒绝就 IP 达成一致。在工作状态下,对端本身建议 IP 在 100.xxx.xxx.xxx 范围内。
下面是路由输出
~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.112.112.113 * 255.255.255.255 UH 0 0 0 ppp0
127.160.0.0 * 255.255.255.252 U 0 0 0 eth0
192.xxx.xxx.xx * 255.255.255.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
以下是对 pppd 命令有效的选项:
~ # /mnt/mmc/pppversions/pppd-6 dryrun
pppd options in effect:
debug # (from /etc/ppp/options)
holdoff 5 # (from /etc/ppp/options)
persist # (from /etc/ppp/options)
demand # (from /etc/ppp/options)
dryrun # (from command line)
noauth # (from /etc/ppp/options)
/dev/ttyACM0 # (from /etc/ppp/options)
115200 # (from /etc/ppp/options)
lock # (from /etc/ppp/options)
connect /usr/local/sbin/chat -v -f /etc/chatscripts/ispname # (from /etc/ppp/options)
crtscts # (from /etc/ppp/options)
modem # (from /etc/ppp/options)
asyncmap 0 # (from /etc/ppp/options)
nomagic # (from /etc/ppp/options)
nopcomp # (from /etc/ppp/options)
lcp-echo-failure 50 # (from /etc/ppp/options)
lcp-echo-interval 65535 # (from /etc/ppp/options)
lcp-max-configure 50 # (from /etc/ppp/options)
novj # (from /etc/ppp/options)
novjccomp # (from /etc/ppp/options)
noipdefault # (from /etc/ppp/options)
defaultroute # (from /etc/ppp/options)
usepeerdns # (from /etc/ppp/options)
nodeflate # (from /etc/ppp/options)
~ #
最佳答案
我几天前得到了答案。我正在使用需要为 2 的 pdp contex 1。喜欢:
'OK' 'AT+CGDCONT=2,"IP","ispapn"'
因为 contex 1 是保留的。
关于linux - pppd: peer 拒绝同意我们的 IP 地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43821670/
给定的输入是192.168.3.78/27 输入可以是任意C类ip地址,以上ip为例进行尝试 预期输出应显示从 192.168.3.65 到 192.168.3.94 的所有 IP如下 192.168
您好,我是一名 javascript 菜鸟,正在为 IP 范围编写验证器。例如,1.1.1.1-2.2.2.2 是一个有效范围,但我想确保第一个 IP 不大于第二个 IP。 2.2.2.2-1.1.1
在 MySQL 数据库中存储多种 IP 类型的最佳方式是什么: - 单一 IP (123.123.123.123) - IP 范围 (123.123.123.1 - 123.123.123.121)
所以我有一个带有子网的 IP:8.8.8.0/24 我如何将其转换为 8.8.8.0 和 8.8.8.255(实际上是它们的 ip2long 结果) 在 PHP 和 JavaScript 中 最佳答案
我有 Windows7 作为我的基本操作系统。最重要的是,我在 Ubuntu 上安装了 Virtual Box。我希望 ubuntu 获得与我的基本操作系统(Win7)相同的 IP 地址。我如何实现这
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 9年前关闭。 Improve this q
阅读后List of IP Space used by Facebook : “真实”列表是最后一个答案,但我想知道 Igy(答案标记为解决方案)如何通过将连续的类添加到更大的类中来大幅缩小列表(通过
我正在开发一个 web 应用程序,我已经在我的本地主机中创建了这个项目,但是网络用户需要访问我的项目,我不想给他们一个不友好的 ip 地址,所以我想用户访问一个名称例子 http://myprojec
有人可以向我解释 Azure 在逻辑应用程序的出站 IP 地址之间不同的新方式之间的区别。 我认为文档在对该问题的正确解释方面非常精简。读起来听起来好像 IP 地址在逻辑应用程序中具有完全相同的作用。
我正在尝试熟悉一个项目中java中的数据报系统,目前,我们只使用UDP包。 为了发送消息,我们在 DatagramPacket 上设置目标 IP。 /* * The fields o
我有一个 Java 服务器,当我获得连接时,我需要检查 IP 是本地 IP 还是公共(public) IP。当它是我自己的本地 IP 时,我可以检测到它,但我在使用其他本地 IP 时遇到了一些问题。J
所以我在网上看到了很多例子,这些例子展示了如果你知道起始 IP 和结束 IP 如何获得完整的 IP,但我需要的是在提供后告诉我完整的 IP 范围带有起始 IP 和所需 IP 地址数的代码。 因此,例如
我创建了一个 python 项目,用于扫描 IP 范围(即 x.y.z.0/24)并返回在线主机列表。它将在线主机列表保存到仅包含 IP 的文件中(即 ['192.168.0.1'、'192.168.
如果用户的 ip 在某个 IP 范围之间,我正在使用重定向。但是,我正在使用多个 ip 范围,所以我想知道执行此操作的最佳方法。我目前正在使用它来重定向, 但是如果 IP 范围是 72.122.166
好的,现在是星期五下午,我度过了漫长的一周,希望能得到一些帮助!目前,我有一个 IP 范围列表,如下所示: List ipRanges = new List(); ipRanges.Add(new I
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve thi
下面是我的 CloudFormation 模板的片段,用于将弹性 IP 地址与网络接口(interface)的主 IP 相关联: "MyInterfaceSelfEipAssociat
我在 Azure 上创建了 Python 函数,该函数调用外部 API 服务,该服务仅允许访问白名单 IP。 根据 Microsoft 文档 ( https://learn.microsoft.com
我在 Azure 上创建了 Python 函数,该函数调用外部 API 服务,该服务仅允许访问白名单 IP。 根据 Microsoft 文档 ( https://learn.microsoft.com
我在我的 CentOS 5 x86_64 中使用 IP 别名。为简化此示例:IP 地址 A 是 eth0 地址,IP 地址 B 是 eth0:0地址。我有 2 个 Apache 实例(版本 2.2.3
我是一名优秀的程序员,十分优秀!