首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pppd: peer拒绝同意我们的IP地址

pppd: peer拒绝同意我们的IP地址
EN

Stack Overflow用户
提问于 2017-05-06 14:33:05
回答 1查看 2.8K关注 0票数 1

我试图通过Telit访问数据,该调制解调器通过USB连接到嵌入式Linux板(没有网络管理器) CC3200。

我已经插入了所有需要的驱动程序,并且我使用PPP守护进程将这个ttyACM0设备连接到ppp接口,这样我就可以通过ppp接口访问网络。

两天前,我能够成功地连接到网络和ping google.com。但我没有弄清楚到底是什么让它起作用,不幸的是,我失去了工作设置。

现在ppp对等方拒绝就IP协议达成协议。

我按照这个链接进行ppp设置:http://www.techytalk.info/manage-gsm-mobile-broadband-connections-without-network-manager-ubuntu-mint-debian/,我正在尝试不进行身份验证。我还在选项文件中添加了“”。

以下是pppd日志:

代码语言:javascript
复制
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.

为什么协议-拒绝正在接收。如何克服它。不泄气没什么用。为什么peer拒绝同意IP协议。在工作状态中,对等方本身建议IP在100.xxx范围内。

以下是路由输出

代码语言:javascript
复制
~ # 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命令的有效选项:

代码语言:javascript
复制
~ # /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)
~ #
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-19 06:53:49

我几天前就得到了答案。我使用的是pdp contex 1,它需要为2,类似于:

代码语言:javascript
复制
'OK' 'AT+CGDCONT=2,"IP","ispapn"'

因为contex 1是保留的。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43821670

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档