|
From: Eismann on 3 Oct 2006 06:29 Hi there. I have been connecting with pppd and gprs without problems, but today i cant get an IP. I was connecting with this command: ------- root(a)kubuntu# pppd noauth nodetach defaultroute debug debug debug noipdefault /dev/ttyS0 115200 connect 'chat -v -f chat-ppp' user cliente Serial connection established. using channel 45 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS0 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa8f92bc3> <pcomp> <accomp>] rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>] sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xa8f92bc3>] rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xa09e2d00>] sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xa09e2d00>] rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0xa8f92bc3>] sent [LCP EchoReq id=0x0 magic=0xa8f92bc3] sent [PAP AuthReq id=0x1 user="cliente" password=<hidden>] rcvd [LCP EchoRep id=0x0 magic=0xce9e2d00] rcvd [PAP AuthAck id=0x1 "Welcome!"] Remote message: Welcome! PAP authentication succeeded sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] rcvd [IPCP ConfReq id=0x1 <addr 192.168.202.1>] sent [IPCP ConfAck id=0x1 <addr 192.168.202.1>] rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f] Protocol-Reject for 'Compression Control Protocol' (0x80fd) received Modem hangup Connection terminated. ------- After this I have added noccp option to pppd, and now I have this output: ------ root(a)kubuntu# pppd noauth nodetach defaultroute debug debug debug noipdefault noccp /dev/ttyS0 115200 connect 'chat -v -f chat-ppp' user cliente Serial connection established. using channel 46 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS0 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x9dc2e090> <pcomp> <accomp>] rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>] sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x9dc2e090>] rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x4d333000>] sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x4d333000>] rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x9dc2e090>] sent [LCP EchoReq id=0x0 magic=0x9dc2e090] sent [PAP AuthReq id=0x1 user="cliente" password=<hidden>] rcvd [LCP EchoRep id=0x0 magic=0x8e333000] rcvd [PAP AuthAck id=0x1 "Welcome!"] Remote message: Welcome! PAP authentication succeeded sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] rcvd [IPCP ConfReq id=0x1 <addr 192.168.202.1>] sent [IPCP ConfAck id=0x1 <addr 192.168.202.1>] Modem hangup Connection terminated. ------ I see that the server gives me an IP but then the modem hangs up. I have tried with other options and I have more output. ------- root(a)kubuntu:/home/aitor/ppp# pppd file options-gprs connect ../ppp-on-dialer-gprs Serial connection established. using channel 47 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS0 sent [LCP ConfReq id=0x1 <asyncmap 0x0>] rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>] rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x97333300>] sent [LCP ConfRej id=0x1 <magic 0x97333300>] rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth pap>] sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth pap>] sent [LCP EchoReq id=0x0 magic=0x0] sent [PAP AuthReq id=0x1 user="cliente" password=<hidden>] rcvd [LCP EchoRep id=0x0 magic=0x0] rcvd [PAP AuthAck id=0x1 "Welcome!"] Remote message: Welcome! PAP authentication succeeded sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>] rcvd [IPCP ConfReq id=0x2 <addr 192.168.202.1>] sent [IPCP ConfAck id=0x2 <addr 192.168.202.1>] sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>] rcvd [IPCP ConfReq id=0x1 <addr 0.0.0.0>] sent [IPCP ConfRej id=0x1 <addr 0.0.0.0>] rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0>] sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>] rcvd [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>] sent [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>] rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>] sent [IPCP ConfReq id=0x3] rcvd [IPCP ConfReq id=0x3] sent [IPCP ConfAck id=0x3] rcvd [IPCP ConfAck id=0x3] Could not determine local IP address Connect time 0.1 minutes. Sent 76 bytes, received 66 bytes. sent [IPCP TermReq id=0x4 "Could not determine local IP address"] rcvd [IPCP TermReq id=0x4 "Could not determine local IP address"] sent [IPCP TermAck id=0x4] rcvd [IPCP TermAck id=0x4] sent [LCP TermReq id=0x2 "No network protocols running"] rcvd [LCP TermReq id=0x2 "No network protocols running"] sent [LCP TermAck id=0x2] rcvd [LCP TermAck id=0x2] Connection terminated. -------- The file optios-gprs is this one: ------- receive-all nopcomp noaccomp nomagic debug debug debug nodetach defaultroute noipdefault modem /dev/ttyS0 115200 -crtscts local noauth noccp novj novjccomp user cliente name "cliente" lock ------- Anybody knows about IPCP and whats going on? Thanks, Eismann.
From: Clifford Kite on 3 Oct 2006 19:51 Eismann <g.eismann(a)gmail.com> wrote: > Hi there. > I have been connecting with pppd and gprs without problems, but today i > cant get an IP. > I was connecting with this command: .... > I have tried with other options and I have more output. > ------- > root(a)kubuntu:/home/aitor/ppp# pppd file options-gprs connect > ./ppp-on-dialer-gprs > Serial connection established. > using channel 47 > Using interface ppp0 > Connect: ppp0 <--> /dev/ttyS0 > sent [LCP ConfReq id=0x1 <asyncmap 0x0>] > rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>] > rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x97333300>] > sent [LCP ConfRej id=0x1 <magic 0x97333300>] > rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth pap>] > sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth pap>] > sent [LCP EchoReq id=0x0 magic=0x0] > sent [PAP AuthReq id=0x1 user="cliente" password=<hidden>] > rcvd [LCP EchoRep id=0x0 magic=0x0] > rcvd [PAP AuthAck id=0x1 "Welcome!"] > Remote message: Welcome! > PAP authentication succeeded > sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>] > rcvd [IPCP ConfReq id=0x2 <addr 192.168.202.1>] > sent [IPCP ConfAck id=0x2 <addr 192.168.202.1>] As in the previous two sections the peer requested 192.168.202.1 for itself and pppd agreed that it could. Then the peer hangs up, a looped-back condition occurs, and pppd begins talking to itself. > sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>] > rcvd [IPCP ConfReq id=0x1 <addr 0.0.0.0>] > sent [IPCP ConfRej id=0x1 <addr 0.0.0.0>] > rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0>] .... The PAP authentication is usually (always?) a formality at best; real authentication takes place "behind the scenes" and must be successful before the GPRS PPP will provide an IP address. So, you should check the user name and password, make sure your account is current, and confirm that the service provider still has GPRS service available. Or change providers. .... > The file optios-gprs is this one: If you've been connecting with the first configuration then I'd say keep using it. You can tweak it to eliminate useless negotiations, but it was the "nomagic" option in options-gprs that allowed pppd to talk to itself. -- Clifford Kite Email: "echo xvgr_yvahk-ccc(a)ri1.arg|rot13"
|
Pages: 1 Prev: help: 8139 network card Next: Routing problem with dual nics |