2017-05-06 2 views
0

USB를 통해 임베디드 Linux 보드 (네트워크 관리자 제외) CC3200에 연결된 Telit 모뎀을 통해 데이터에 액세스하려고합니다.pppd : peer가 우리의 IP 주소에 동의하지 않았습니다.

필자는 필요한 모든 드라이버를 삽입했으며 PPP 데몬을 사용하여이 ttyACM0 장치를 ppp 인터페이스에 연결하여 ppp 인터페이스를 통해 네트워크에 액세스 할 수 있습니다.

2 일 전이면 네트워크 및 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'도 추가했습니다. 왜 프로토콜 거부 수신

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. 

: 다음

pppd의 로그입니다. 그것을 극복하는 방법. nodeflate가 도움이되지 않습니다. 왜 피어는 IP에 동의하지 않습니다. 작동 상태에서 피어는 100.xxx.xxx.xxx 범위의 IP를 제안했습니다. 다음

pppd에 명령의 효과 옵션은 다음과 경로 출력

~ # 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 

입니다 :

~ # /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) 
~ # 
+0

잘 설명 된 문제이지만, 실제로 StackOverflow Q에 대한 책임 프로그래밍 Q로 자격이 부여되지는 않습니다. 문제를 재현 할 수있는 터미널에 복사/붙여 넣기 할 수있는 코드가 필요합니다 (또한 임베디드 리눅스 보드가 필요합니다. 솔직히 말해서 도움을 줄 수있는 사람들의 수를 크게 줄입니다.). http://stackoverflow.com/help/how-to-ask, http://stackoverflow.com/help/dont-ask, http://stackoverflow.com/help/mcve를 읽고 [둘러보기] (http://stackoverflow.com/tour) 여기에 더 많은 질문을 게시하기 전에. 행운을 빕니다. – shellter

+0

스택 익스체인지 (StackExchange)에 더 적합한 포럼이 있을지 모르지만, 제가 알고있는 단 한가지는 나무 딸기 파이입니다. 임베디드 리눅스 카드 대신 라스베리 제로를 사용할 수 있습니까? 그렇다면 거기에서 작동하지 않는 cfg cmds 등을 게시하십시오. 행운을 빕니다. – shellter

+0

ppp 데몬에 적용되는 보드 이름과 옵션을 추가했습니다. –

답변

1

내가 몇 일 전에 대답을 얻었다. 텍스 (1)가 예약되어

'OK' 'AT+CGDCONT=2,"IP","ispapn"' 

때문에 : 나는 2 등이 될 필요가 PDP 텍스 1을 사용했다.

+0

SIGHUP 이유를 검색하는 또 다른 날을 저장합니다. 감사! – powerpete

관련 문제