linux ubuntu pppd 사용하기

joa81의 이미지

ubuntu 12.04
pppd version 2.4.5
를 사용하고 있습니다.
LTE 모뎀을 연결하여 ppp 연결을 하고자 합니다.
로그 및 라우팅 테이블은 아래처럼 별 문제가 없어 보입니다.
그런데 ping 주소 및 ping 8.8.8.8 에 대한 응답이 전혀 없습니다.
같은 이슈가 있으셨던 분 도움 부탁 드립니다.

======================================================
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 ppp0
10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0

======================================================
compile@compile-VirtualBox:~$ sudo pppd call ppp.lte
[sudo] password for compile:
pppd options in effect:
debug # (from /etc/ppp/peers/ppp.lte)
nodetach # (from /etc/ppp/peers/ppp.lte)
idle 7200 # (from /etc/ppp/peers/ppp.lte)
dump # (from /etc/ppp/peers/ppp.lte)
noauth # (from /etc/ppp/peers/ppp.lte)
/dev/ttyACM0 # (from /etc/ppp/peers/ppp.lte)
460800 # (from /etc/ppp/peers/ppp.lte)
lock # (from /etc/ppp/peers/ppp.lte)
connect /usr/sbin/chat -v -V -s -t3 -f /home/compile/work/pppd/chat-lte-connect # (from /etc/ppp/peers/ppp.lte)
disconnect /home/compile/work/pppd/chat-lte-disconnect # (from /etc/ppp/peers/ppp.lte)
crtscts # (from /etc/ppp/peers/ppp.lte)
modem # (from /etc/ppp/peers/ppp.lte)
noaccomp # (from /etc/ppp/peers/ppp.lte)
asyncmap 0 # (from /etc/ppp/peers/ppp.lte)
nopcomp # (from /etc/ppp/peers/ppp.lte)
lcp-echo-failure 4 # (from /etc/ppp/peers/ppp.lte)
lcp-echo-interval 30 # (from /etc/ppp/peers/ppp.lte)
hide-password # (from /etc/ppp/options)
novj # (from /etc/ppp/peers/ppp.lte)
novjccomp # (from /etc/ppp/peers/ppp.lte)
ipcp-accept-local # (from /etc/ppp/peers/ppp.lte)
ipcp-accept-remote # (from /etc/ppp/peers/ppp.lte)
noipdefault # (from /etc/ppp/peers/ppp.lte)
defaultroute # (from /etc/ppp/peers/ppp.lte)
usepeerdns # (from /etc/ppp/peers/ppp.lte)
nobsdcomp # (from /etc/ppp/peers/ppp.lte)
abort on (BUSY)
abort on (NO CARRIER)
abort on (ERROR)
report (CONNECT)
timeout set to 10 seconds
send (ATZ^M)
Calling...
timeout set to 120 seconds
expect (OK)
^M

OKOK
-- got it

send (ATD*98#^M)
expect (CONNECT)
^M

^M

CONNECTCONNECT
-- got it

send (\\^M)
chat: Jan 14 17:14:18 CONNECT 150000000
Script /usr/sbin/chat -v -V -s -t3 -f /home/compile/work/pppd/chat-lte-connect finished (pid 2450), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM0
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfReq id=0x3a ]
sent [LCP ConfRej id=0x3a ]
rcvd [LCP ConfAck id=0x1 ]
rcvd [LCP ConfReq id=0x3b ]
sent [LCP ConfNak id=0x3b ]
rcvd [LCP ConfReq id=0x3c ]
sent [LCP ConfAck id=0x3c ]
sent [LCP EchoReq id=0x0 magic=0x7ded892e]
sent [PAP AuthReq id=0x1 user="compile-VirtualBox" password=]
rcvd [LCP DiscReq id=0x3d magic=0xe51d33fd]
rcvd [LCP EchoRep id=0x0 magic=0xe51d33fd 7d ed 89 2e]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
rcvd [LCP ProtRej id=0x3e 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
sent [IPCP ConfReq id=0x1 ]
rcvd [IPCP ConfReq id=0x15]
sent [IPCP ConfNak id=0x15 ]
rcvd [IPCP ConfNak id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
rcvd [IPCP ConfReq id=0x16]
sent [IPCP ConfAck id=0x16]
rcvd [IPCP ConfAck id=0x2 ]
Could not determine remote IP address: defaulting to 10.64.64.64
local IP address 223.53.218.74
remote IP address 10.64.64.64
primary DNS address 223.62.230.7
secondary DNS address 113.217.240.31
Script /etc/ppp/ip-up started (pid 2460)
Script /etc/ppp/ip-up finished (pid 2460), status = 0x0

익명 사용자의 이미지

1. 우분투 "12.04"는 작년 초에 지원이 중단되었으니 업그레이드를 추천합니다.
2. 어떤 USB 모뎀을 사용하고 있고 통신사는 어디인가요? 다른 환경에서 해당 USB 모뎀이 정상적으로 동작하는 것은 확인했나요?
3. pppd를 어떻게 설정했는지도 알려 주세요. https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd

sent [PAP AuthReq id=0x1 user="compile-VirtualBox" password=]
...
PAP authentication succeeded
...
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
...
Could not determine remote IP address: defaulting to 10.64.64.64

로그 메시지로 미루어 보면 IP 주소를 제대로 가져오지 못해서 프로그램에서 임의로 지정한 기본값을 사용한 것 같습니다. 그리고 PAP 인증을 할 때 사용자 이름이 잘못 들어간 것 같네요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.