my Linux PPP route problem?

my Linux PPP route problem?

Post by jianjun wa » Mon, 07 Oct 2002 12:56:11



Hello everyone:
     My CDMA Card have successfully Connected to my
ISP, but I can not Ping anywhere except localhost.
by researching the route table under linux, I find it
is different in Linux and Windows.
     In Linux:
         IP 172.16.x.x
         mask 255.255.255.255
         gateway 172.16.0.1
     on windows:
         IP 172.16.x.x
         mask 255.255.0.0
         gateway 172.16.x.x(same as the Dynamic IP)

    I have another Card connect to another ISP with
GPRS, it works just like CDMA do in linux and windows
except the IP is 10.x.x.x. It Can ping the Internet
such as my ISP's DNS server: 202.96.199.133.
    I wonder weather it is my CDMA ISP's problem. but
I can use CDMA in Windows9x enviroment.  

my link information in linux is:
Linux ifconfig output:
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:700 (700.0 b)  TX bytes:700 (700.0 b)
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:172.16.0.183  P-t-P:172.16.0.1
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:88 (88.0 b)  TX bytes:98 (98.0 b)
under linux
route -n command output
Kernel IP routing table
Destination  Gateway      Genmask         Flags MSS Window irtt Iface
172.16.0.1   0.0.0.0      255.255.255.255 UH    40 0          0 ppp0
127.0.0.0    0.0.0.0      255.0.0.0       U     40 0          0 lo
0.0.0.0      172.16.0.1   0.0.0.0         UG    40 0          0 ppp0

while under windows 98(I translate it from Chinese so It may not
accurate)
winifcfg command output:
Windows 98 IP winipcfg
        name . . . . . . . . . : S7H2U0
        DNS server . . . . . . . : 135.1.42.246
                                      211.95.1.97
        node type . . . . . . . . :broadcast
        NetBIOS Scope ID. . . . . . :
        enable IP route. .  . . . . : no
        enable WINS proxy . . . . . : no
        NetBIOS sue     DNS . : no
Ethernet adapter :
         . . . . . . . . : PPP Adapter.
        MAC. . . . . . . . : 44-45-53-54-00-00
        Enable DHCP . . . . . . . . : yes
        IP address. . . . . . . . . : 172.16.0.185
        Mask . . . . . . . . : 255.255.0.0
        default gateway . . . . . . : 172.16.0.185
        DHCP server . . . . . . . . : 255.255.255.255
        main WINS server . . . . :
        vise WINS server . . . :
        . . . . . . . : 01 01 80 0:00:00
         . . . . . . . : 01 01 80 0:00:00
route print output:
Active Routes:
Network Address         Netmask  Gateway Address     Interface Metric
0.0.0.0          0.0.0.0     172.16.0.185     172.16.0.185  1
127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1  1
172.16.0.0      255.255.0.0     172.16.0.185     172.16.0.185  1
172.16.0.185  255.255.255.255        127.0.0.1        127.0.0.1  1
172.16.255.255  255.255.255.255     172.16.0.185     172.16.0.185  1
224.0.0.0        224.0.0.0     172.16.0.185     172.16.0.185  1
255.255.255.255  255.255.255.255     172.16.0.185     172.16.0.185  1

    one difference under windows is winipcfg called it as "Enterhnet
Adpater" but not a "PPP adapter" in linux. so is there any difference?
    Another things is that I use defaultroute I get 172.16.0.1 as my
gateway and 255.255.255.255 as netmask. but under win98 the assigned
IP address as gateway and netmask is 255.255.0.0.
   I think It should be a route problem. do Anyone has any idea? can
anyone tell me wethere it is my ISP problem or I am wrong in setting
the PPP chat script? I wonder why windows assigned the PPP setting
difference with Linux.
thanks again.

 
 
 

my Linux PPP route problem?

Post by n1po » Tue, 08 Oct 2002 01:16:12



>          IP 172.16.x.x
>          mask 255.255.255.255
>          gateway 172.16.0.1
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:172.16.0.183  P-t-P:172.16.0.1
> Mask:255.255.255.255
> Destination  Gateway      Genmask         Flags MSS Window irtt Iface
> 172.16.0.1   0.0.0.0      255.255.255.255 UH    40 0          0 ppp0
> 127.0.0.0    0.0.0.0      255.0.0.0       U     40 0          0 lo
> 0.0.0.0      172.16.0.1   0.0.0.0         UG    40 0          0 ppp0

I may be off the mark, but I had a similar issue with a dial-up PPP
connection.  Check the output of pppd while it is connecting (probably in
/var/log/messages) and see if it complains about not changing the default
gateway.  If so, remove the entry from (I believe the file is)
/etc/sysconfig/network.  You may have to restart just your network
service, or possibly all of Linux (I never determined which because I
deleted the gateway using route and have rebooted since).

 
 
 

my Linux PPP route problem?

Post by Clifford Kit » Tue, 08 Oct 2002 07:06:05




>>          IP 172.16.x.x
>>          mask 255.255.255.255
>>          gateway 172.16.0.1
>> ppp0      Link encap:Point-to-Point Protocol
>>           inet addr:172.16.0.183  P-t-P:172.16.0.1
>> Mask:255.255.255.255
>> Destination  Gateway      Genmask         Flags MSS Window irtt Iface
>> 172.16.0.1   0.0.0.0      255.255.255.255 UH    40 0          0 ppp0
>> 127.0.0.0    0.0.0.0      255.0.0.0       U     40 0          0 lo
>> 0.0.0.0      172.16.0.1   0.0.0.0         UG    40 0          0 ppp0
> I may be off the mark, but I had a similar issue with a dial-up PPP
> connection.  Check the output of pppd while it is connecting (probably in
> /var/log/messages) and see if it complains about not changing the default
> gateway.  If so, remove the entry from (I believe the file is)

The 172.16.0.1 remote IP address and default gateway is either supplied
by the remote host and is correct, or pppd supplied it and the remote
host accepted it.  I don't believe it's the latter case considering what
the rest of his post shows.

--

PPP-Q&A links, downloads:    http://users3.ev1.net/~ckite/public_html/

 
 
 

my Linux PPP route problem?

Post by jianjun wa » Tue, 08 Oct 2002 08:37:36



> I may be off the mark, but I had a similar issue with a dial-up PPP
> connection.  Check the output of pppd while it is connecting (probably in
> /var/log/messages) and see if it complains about not changing the default
> gateway.  If so, remove the entry from (I believe the file is)
> /etc/sysconfig/network.  You may have to restart just your network
> service, or possibly all of Linux (I never determined which because I
> deleted the gateway using route and have rebooted since).

   I have seen through the above files, and belive there is no such
case on default gateway. I think the most possibility is the route
issue.
 
 
 

my Linux PPP route problem?

Post by jianjun wa » Thu, 10 Oct 2002 16:07:32


Hi:

   I have test my CDMA Link with traceroute and
finally got some results. list in bellow, Now I wonder
wethere it is my hardware problem or the ISP use
special IP compress method. I have try to make my pppd
go with
 noccp
 nobsdcomp
 novj
 novjcomp
 noaccomp
 nopcomp
and the peer refused me and ask for compress method.
so I wonder will it be the problems ? my localarea
GPRS provider use no compress method, I can link to it
under Linux with no problem.
bellow are some outputs when Linked to my ISP. they
very like output of GPRS, except in my CDMA link when
use traceroute 202.96.x.x, my pppd file cdma1x output
will give some LCP messages, would it be error
messages?
//////////////////////////////////////////////////////////////////////////
**************************************************************************
//PPPd Dial Up
**************************************************************************
//////////////////////////////////////////////////////////////////////////

OK

OK

OK

CONNECT
Serial connection established.
using channel 5
Using interface ppp0
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic
0x87797fe0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic
0x87797fe0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic
0x87797fe0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic
0x87797fe0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap
MD5> <magic 0x6e5d7c22> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap
MD5> <magic 0x6e5d7c22> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x87797fe0]
rcvd [LCP EchoReq id=0x0 magic=0x6e5d7c22]
sent [LCP EchoRep id=0x0 magic=0x87797fe0]
rcvd [CHAP Challenge id=0x1
<a4b3765d18970ae1ccbbdea5c01ff2a9>, name = "PIWF1"]
sent [CHAP Response id=0x1
<7fb9155237b60530281cafb82d4967a0>, name = "cdma1x"]
rcvd [LCP EchoRep id=0x0 magic=0x6e5d7c22]
rcvd [CHAP Success id=0x1 "Welcome!"]
Remote message: Welcome!
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ
0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#)
15>]
rcvd [IPCP ConfReq id=0x1 <addr 172.16.0.1> <compress
VJ 0f 01>]
sent [IPCP ConfAck id=0x1 <addr 172.16.0.1> <compress
VJ 0f 01>]
rcvd [CCP ConfReq id=0x1 < 12 06 00 00 00 01> < 11 05
00 01 04> <deflate 15>]
sent [CCP ConfRej id=0x1 < 12 06 00 00 00 01> < 11 05
00 01 04>]
rcvd [IPCP ConfNak id=0x1 <addr 172.16.1.27>]
sent [IPCP ConfReq id=0x2 <addr 172.16.1.27> <compress
VJ 0f 01>]
rcvd [CCP ConfAck id=0x1 <deflate 15> <deflate(old#)
15>]
rcvd [CCP ConfReq id=0x2 <deflate 15>]
sent [CCP ConfAck id=0x2 <deflate 15>]
Deflate (15) compression enabled
rcvd [IPCP ConfAck id=0x2 <addr 172.16.1.27> <compress
VJ 0f 01>]
local  IP address 172.16.1.27
remote IP address 172.16.0.1
Script /etc/ppp/ip-up started (pid 1532)
Script /etc/ppp/ip-up finished (pid 1532), status =
0x0

//////////////////////////////////////////////////////////////////////////
**************************************************************************
//ifconfig output
**************************************************************************
//////////////////////////////////////////////////////////////////////////

ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
frame:0
          TX packets:0 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:172.16.1.27  P-t-P:172.16.0.1
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST
MTU:1500  Metric:1
          RX packets:34 errors:15 dropped:0 overruns:0
frame:0
          TX packets:79 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:3
          RX bytes:895 (895.0 b)  TX bytes:3377 (3.2
Kb)

//////////////////////////////////////////////////////////////////////////
**************************************************************************
// traceroute output
**************************************************************************
//////////////////////////////////////////////////////////////////////////
traceroute 202.96.199.133
traceroute to 202.96.199.133 (202.96.199.133), 30 hops
max, 38 byte packets
 1  172.16.0.1 (172.16.0.1)  408.781 ms  219.944 ms
179.973 ms
 2  * * *
 3  211.95.9.42 (211.95.9.42)  240.058 ms  389.966 ms
*
 4  * * 211.94.44.9 (211.94.44.9)  440.036 ms
 5  * * *
 6  211.102.30.10 (211.102.30.10)  220.064 ms * *
 7  * 202.97.37.62 (202.97.37.62)  240.020 ms *
 8  * * *
 9  202.101.63.133 (202.101.63.133)  240.066 ms * *
10  * * *
11  * 202.96.199.133 (202.96.199.133)  239.959 ms *

//////////////////////////////////////////////////////////////////////////
**************************************************************************
//netstat -in  output
**************************************************************************
//////////////////////////////////////////////////////////////////////////
netstat -in
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK
TX-ERR TX-DRP TX-OVR Flg
lo    16436   0       0      0      0      0       0  
   0      0      0 LRU
ppp0   1500   0      34     15      0      0      79  
   0      0      0 MOPRU

//////////////////////////////////////////////////////////////////////////
**************************************************************************
//netstat -nr  output
**************************************************************************
//////////////////////////////////////////////////////////////////////////
Kernel IP routing table
Destination     Gateway         Genmask         Flags
 MSS Window  irtt Iface
172.16.0.1      0.0.0.0         255.255.255.255 UH    
  40 0          0 ppp0
127.0.0.0       0.0.0.0         255.0.0.0       U    
  40 0          0 lo
0.0.0.0         172.16.0.1      0.0.0.0         UG    
  40 0          0 ppp0

//////////////////////////////////////////////////////////////////////////
**************************************************************************
//ppp output when trace route
//Error Message ???
**************************************************************************
//////////////////////////////////////////////////////////////////////////

sent [LCP EchoReq id=0x1 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x1 magic=0x6e5d7c22]
rcvd [CCP ResetReq id=0x3]
sent [CCP ResetAck id=0x3]
sent [LCP EchoReq id=0x2 magic=0x87797fe0]
sent [LCP EchoReq id=0x3 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x3 magic=0x6e5d7c22]
rcvd [Compressed data] 00 04 82 68 7c 09 d2 b8 ...
sent [CCP ResetReq id=0x2]
rcvd [CCP ResetAck id=0x2]
sent [LCP EchoReq id=0x4 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x4 magic=0x6e5d7c22]
sent [LCP EchoReq id=0x5 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x5 magic=0x6e5d7c22]
sent [LCP EchoReq id=0x6 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x6 magic=0x6e5d7c22]
sent [LCP EchoReq id=0x7 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x7 magic=0x6e5d7c22]
rcvd [CCP ResetReq id=0x4]
sent [CCP ResetAck id=0x4]
sent [LCP EchoReq id=0x8 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x8 magic=0x6e5d7c22]
rcvd [CCP ResetReq id=0x5]
sent [CCP ResetAck id=0x5]
sent [LCP EchoReq id=0x9 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x9 magic=0x6e5d7c22]
sent [LCP EchoReq id=0xa magic=0x87797fe0]
rcvd [LCP EchoRep id=0xa magic=0x6e5d7c22]
rcvd [Compressed data] 00 05 22 ac 11 68 04 d0 ...
sent [CCP ResetReq id=0x3]
rcvd [CCP ResetAck id=0x3]
sent [LCP EchoReq id=0xb magic=0x87797fe0]
rcvd [LCP EchoRep id=0xb magic=0x6e5d7c22]
sent [LCP EchoReq id=0xc magic=0x87797fe0]
rcvd [LCP EchoRep id=0xc magic=0x6e5d7c22]
sent [LCP EchoReq id=0xd magic=0x87797fe0]
rcvd [LCP EchoRep id=0xd magic=0x6e5d7c22]
sent [LCP EchoReq id=0xe magic=0x87797fe0]
rcvd [LCP EchoRep id=0xe magic=0x6e5d7c22]
rcvd [Compressed data] 00 02 42 d2 a8 fc eb 54 ...
sent [CCP ResetReq id=0x4]
rcvd [CCP ResetAck id=0x4]
sent [LCP EchoReq id=0xf magic=0x87797fe0]
rcvd [LCP EchoRep id=0xf magic=0x6e5d7c22]
rcvd [CCP ResetReq id=0x6]
sent [CCP ResetAck id=0x6]
sent [LCP EchoReq id=0x10 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x10 magic=0x6e5d7c22]
sent [LCP EchoReq id=0x11 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x11 magic=0x6e5d7c22]
rcvd [CCP ResetReq id=0x7]
sent [CCP ResetAck id=0x7]
sent [LCP EchoReq id=0x12 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x12 magic=0x6e5d7c22]
rcvd [Compressed data] 00 02 82 6b fc c9 c8 15 ...
sent [CCP ResetReq id=0x5]
rcvd [CCP ResetAck id=0x5]
sent [LCP EchoReq id=0x13 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x13 magic=0x6e5d7c22]
sent [LCP EchoReq id=0x14 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x14 magic=0x6e5d7c22]
rcvd [CCP ResetReq id=0x8]
sent [CCP ResetAck id=0x8]
sent [LCP EchoReq id=0x15 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x15 magic=0x6e5d7c22]
rcvd [Compressed data] 00 02 c2 a1 f1 ba 3f 5c ...
sent [CCP ResetReq id=0x6]
rcvd [CCP ResetAck id=0x6]
sent [LCP EchoReq id=0x16 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x16 magic=0x6e5d7c22]
sent [LCP EchoReq id=0x17 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x17 magic=0x6e5d7c22]
rcvd [Compressed data] 00 02 82 68 3c 06 d6 e8 ...
sent [CCP ResetReq id=0x7]
rcvd [CCP ResetAck id=0x7]
sent [LCP EchoReq id=0x18 magic=0x87797fe0]
rcvd [LCP EchoRep id=0x18 magic=0x6e5d7c22]
sent [LCP EchoReq id=0x19 magic=0x87797fe0]
sent [LCP EchoReq id=0x1a magic=0x87797fe0]
rcvd [LCP EchoRep id=0x1a magic=0x6e5d7c22]

 
 
 

1. Help--Linux ppp routing problem

My company has a Linux Server, she connected to
someone Internet Server via PPP link(COM1) and
it support SLIP dial up link(COM2). The organization
is as follows:
                 PPP Link               SLIP link
Internet Server <--------> Linux Server <-------- SLIP dial up

Now, I occur one problem which both the Linux can
ping the SLIP host and the SLIP host can ping the Linux,too; but
the SLIP host can't ping the Internet Server. Anyone can help me.

My rooting table is as follows:

destinatin     gateway       genmask          flags ... Iface
139.175.50.50  0.0.0.0       255.255.255.255  UH        ppp0
looback        0.0.0.0       255.0.0.0        U         lo
203.67.178.2   0.0.0.0       255.255.255.255  UH        sl0
default        139.175.50.50 255.255.255.255  UG        ppp0

note: The Linux server does not have a LAN, but she has a Class C.

Thanks.....


2. how do I run a prog??

3. Linux/PPP/routing problems

4. Creative Labs CD-ROM Drive

5. linux ppp routing problems - can't ping anything!

6. Auto Killing Old Processes

7. Strange NT 3.51 / Linux PPP routing problem

8. ypcat

9. PPP/ARP routing problem: using a PPP remote address inside an Ethernet subnet

10. Q: {probably} Routing problem: linux+ppp, subneting

11. Once again: routing problem Cisco 4500 <> Linux PPP

12. Routing problem on linux ppp server

13. Problems with route when connecting to IBM Net from PPP on Linux