Serial PPP GPRS Modem gets invalid gateway

Hi All.

I have connected a Wavecom Serial GPRS modem to my RB411U running RouterOS 4.11.

It is unable to communicate to the network.

Created PPP Client, and it does connect to the Internet APN and Private APN.

But the PPP client negotiates the wrong Gateway.


 [admin@MikroTik] /interface ppp-client> info ppp-out1 
             status: "ready"
         pin-status: "no password required"
      functionality: "full"
         gprs-class: "B - GPRS & GSM but one at a time"
       manufacturer: " WAVECOM WIRELESS CPU"
              model: " MULTIBAND  900E  1800 "
           revision: "R73_00gg.FSU005 2087432 121208 15:34"
      serial-number: "355212010830026"
   current-operator: ""
  access-technology: ""
     signal-strengh: -57
   frame-error-rate: "~0.14%"



[admin@MikroTik] /interface ppp-client> print
Flags: X - disabled, R - running 
 0 X  name="ppp-out1" max-mtu=1500 max-mru=1500 mrru=disabled port=serial0 
      data-channel=0 info-channel=0 apn="internet" pin="" user="internet" 
      password="" profile=default phone="*99***1#" dial-command="ATDT" 
      modem-init="" null-modem=no dial-on-demand=no add-default-route=yes 
      use-peer-dns=no keepalive-timeout=30 allow=pap,chap,mschap1,mschap2

Once its connected, the IP address seems correct, on the Internet APN, and private IP got its static IP on previous attempts

Network seems wrong.

[admin@MikroTik] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE             
 
 0   192.168.1.1/24     192.168.1.0     192.168.1.255   ether1                          
 
 1 D 41.19.255.233/32   192.168.111.111 0.0.0.0         ppp-out1              
 
[admin@MikroTik] /ip address>

Routing table is also wrong

[admin@MikroTik] /ip route> print
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          192.168.111.111    1       
 1 ADC  192.168.1.0/24     192.168.1.1     ether1             0       
 2 ADC  192.168.111.111/32 41.19.255.233   ppp-out1           0       
[admin@MikroTik] /ip route>

I tried to change the route for 0.0.0.0/0 to use the ppp-out1 as default gateway - no difference.

However it is intresting on the private APN, if i ping another host on the APN the ICMP pings reach that host, but the Mikrotik
is unable to receive anything back.

I have tried so many things, it seems the Mikrotik just cant negotiate a gateway and subnet for some reason.

A normal Windows XP dialup works fine, windows is able to negotiate the link.

I believe this issue is inside the default Linux PPP,
This guy’s PPP session also negotiates the wrong gateway and IP address, and then it gets kicked off.
http://ubuntuforums.org/showthread.php?t=1626402

Has anyone found a way to make this work?

Thank you very much in advance.


Regards,
Johan

Here is the debugging log for a connect:


04:00:58 async,ppp,debug,packet    <magic 0x1bb8f0ae> 
04:00:58 async,ppp,debug,packet    <pcomp> 
04:00:58 async,ppp,debug,packet    <accomp> 
04:00:58 async,ppp,debug,packet  ppp-out1: rcvd LCP ConfReq id=0x1 
04:00:58 async,ppp,debug,packet    <mru 1500> 
04:00:58 async,ppp,debug,packet    <asyncmap 0x0> 
04:00:58 async,ppp,debug,packet    <magic 0xde7676a8> 
04:00:58 async,ppp,debug,packet    <pcomp> 
04:00:58 async,ppp,debug,packet    <accomp> 
04:00:58 async,ppp,debug,packet    <auth pap> 
04:00:58 async,ppp,debug,packet  ppp-out1: sent LCP ConfAck id=0x1 
04:00:58 async,ppp,debug,packet    <mru 1500> 
04:00:58 async,ppp,debug,packet    <asyncmap 0x0> 
04:00:58 async,ppp,debug,packet    <magic 0xde7676a8> 
04:00:58 async,ppp,debug,packet    <pcomp> 
04:00:58 async,ppp,debug,packet    <accomp> 
04:00:58 async,ppp,debug,packet    <auth pap> 
04:00:58 async,ppp,debug,packet  ppp-out1: rcvd LCP ConfAck id=0x21 
04:00:58 async,ppp,debug,packet    <magic 0x1bb8f0ae> 
04:00:58 async,ppp,debug,packet    <pcomp> 
04:00:58 async,ppp,debug,packet    <accomp> 
04:00:58 async,ppp,debug ppp-out1: LCP opened 
04:00:58 async,ppp,debug,packet  ppp-out1: sent PAP AuthReq id=0x6a 
04:00:58 async,ppp,debug,packet     <user internet> 
04:00:58 async,ppp,debug,packet     <password > 
04:01:01 async,ppp,debug,packet  ppp-out1: sent PAP AuthReq id=0x6b 
04:01:01 async,ppp,debug,packet     <user internet> 
04:01:01 async,ppp,debug,packet     <password > 
04:01:01 async,ppp,debug,packet  ppp-out1: rcvd PAP AuthAck id=0x6b 
04:01:01 async,ppp,info ppp-out1: authenticated 
04:01:01 async,ppp,debug ppp-out1: IPCP lowerup 
04:01:01 async,ppp,debug,packet  ppp-out1: sent IPCP ConfReq id=0xbe 
04:01:01 async,ppp,debug,packet     <addr 0.0.0.0> 
04:01:01 async,ppp,debug ppp-out1: IPCP open 
04:01:01 async,ppp,debug ppp-out1: BCP open 
04:01:01 async,ppp,debug ppp-out1: CCP lowerup 
04:01:01 async,ppp,debug ppp-out1: CCP open 
04:01:01 async,ppp,debug,packet  ppp-out1: rcvd IPCP ConfReq id=0x1 
04:01:01 async,ppp,debug,packet     <addr 192.168.111.111> 
04:01:01 async,ppp,debug,packet  ppp-out1: sent IPCP ConfAck id=0x1 
04:01:01 async,ppp,debug,packet     <addr 192.168.111.111> 
04:01:01 async,ppp,debug,packet  ppp-out1: rcvd IPCP ConfNak id=0xbe 
04:01:01 async,ppp,debug,packet     <addr 41.125.203.80> 
04:01:01 async,ppp,debug,packet  ppp-out1: sent IPCP ConfReq id=0xbf 
04:01:01 async,ppp,debug,packet     <addr 41.125.203.80> 
04:01:01 async,ppp,debug,packet  ppp-out1: rcvd IPCP ConfAck id=0xbf 
04:01:01 async,ppp,debug,packet     <addr 41.125.203.80> 
04:01:01 async,ppp,debug ppp-out1: IPCP opened 
04:01:01 async,ppp,info ppp-out1: connected 
04:01:28 async,ppp,debug,packet  ppp-out1: sent LCP EchoReq id=0x0 
04:01:28 async,ppp,debug,packet     <magic 0x1bb8f0ae> 
04:01:28 async,ppp,debug,packet  ppp-out1: rcvd LCP EchoRep id=0x0 
04:01:28 async,ppp,debug,packet     <magic 0xde7676a8>

Hope this helps to diagnose the problem.

Regards