Networking Forums

Networking Forums > Computer Networking > Linux Networking > can only ping ppp peer

Reply
Thread Tools Display Modes

can only ping ppp peer

 
 
ian
Guest
Posts: n/a

 
      12-23-2003, 09:36 PM
Hi

I am having problems with my DSL connection (uses PPPoA).

The ppp link establishes but i can only ping the remote ip address and
localhost. I cannot ping either DNS server or a random internet server
such as 66.102.11.99 (www.google.co.uk). Trying to ping a URL certainly
does not work.

I would be grateful for anyone's ideas.

Ian Colley

---------------------
Result of ifconfig:

spearfish:~# ifconfig
eth0 Link encap:Ethernet HWaddr 000:09:85:7E:5D
inet addr:192.168.0.85 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:195 errors:0 dropped:0 overruns:0 frame:0
TX packets:290 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:20309 (19.8 KiB) TX bytes:43936 (42.9 KiB)
Interrupt:11 Base address:0xc000

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:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4692 (4.5 KiB) TX bytes:4692 (4.5 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:81.178.238.110 P-t-P:62.241.161.247
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:32725 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:482 (482.0 b) TX bytes:54 (54.0 b)

----------------------------
Result of route -n:

spearfish:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
62.241.161.247 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

-----------------------------
My /etc/ppp/options file:

lock
defaultroute
noipdefault
noauth
sync
noaccomp
nopcomp
noccp
novj
holdoff 4
persist
maxfail 25
passive
usepeerdns
asyncmap 0
lcp-echo-interval 2
lcp-echo-failure 7
user ********@xtreme3.pipex.net
name ********
plugin /usr/lib/pppd/2.4.2b3/pppoatm.so
0.38

-------------------------------
Part of my /var/log/messages which might be helpful:

Dec 23 22:23:51 spearfish pppd[834]: Plugin
/usr/lib/pppd/2.4.2b3/pppoatm.so loaded.
Dec 23 22:23:51 spearfish pppd[834]: PPPoATM plugin_init
Dec 23 22:23:51 spearfish pppd[834]: PPPoATM setdevname - remove
unwanted options
Dec 23 22:23:51 spearfish pppd[834]: PPPoATM setdevname_pppoatm -
SUCCESS:0.38
Dec 23 22:23:51 spearfish pppd[836]: pppd 2.4.2b3 started by root, uid 0
Dec 23 22:23:51 spearfish pppd[836]: Using interface ppp0
Dec 23 22:23:51 spearfish pppd[836]: Connect: ppp0 <--> 0.38
Dec 23 22:23:54 spearfish pppd[836]: LCP terminated by peer
Dec 23 22:23:57 spearfish pppd[836]: Connection terminated.
Dec 23 22:24:01 spearfish pppd[836]: Using interface ppp0
Dec 23 22:24:01 spearfish pppd[836]: Connect: ppp0 <--> 0.38
Dec 23 22:24:05 spearfish pppd[836]: CHAP authentication succeeded
Dec 23 22:24:05 spearfish pppd[836]: local IP address 81.178.238.110
Dec 23 22:24:05 spearfish pppd[836]: remote IP address 62.241.161.247
Dec 23 22:24:05 spearfish pppd[836]: primary DNS address 62.241.160.200
Dec 23 22:24:05 spearfish pppd[836]: secondary DNS address 158.43.240.3

 
Reply With Quote
 
 
 
 
Grant Edwards
Guest
Posts: n/a

 
      12-23-2003, 09:43 PM
On 2003-12-23, ian <(E-Mail Removed)> wrote:

> I am having problems with my DSL connection (uses PPPoA).
>
> The ppp link establishes but i can only ping the remote ip address and
> localhost. I cannot ping either DNS server or a random internet server
> such as 66.102.11.99 (www.google.co.uk). Trying to ping a URL certainly
> does not work.


> ----------------------------
> Result of route -n:
>
> spearfish:~# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 62.241.161.247 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


Assuming your ppp0 interface is your connection to the outside
world, it looks like your default route is wrong. It should
point at your ppp peer rather than your ethernet interface, no?
If you set up the default route by hand[1], does it work then?


[1] Do something like:

# route del -net 0.0.0.0
# route add -net default gw 62.241.161.247

[Beware: I may be misremembering the route command syntax.]

--
Grant Edwards grante Yow! PIZZA!!
at
visi.com
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      12-24-2003, 01:13 AM
On 23 Dec 2003 22:43:10 GMT, Grant Edwards <(E-Mail Removed)> wrote:
> On 2003-12-23, ian <(E-Mail Removed)> wrote:
>
>> I am having problems with my DSL connection (uses PPPoA).
>>
>> The ppp link establishes but i can only ping the remote ip address and
>> localhost. I cannot ping either DNS server or a random internet server
>> such as 66.102.11.99 (www.google.co.uk). Trying to ping a URL certainly
>> does not work.

>
>> ----------------------------
>> Result of route -n:
>>
>> spearfish:~# route -n
>> Kernel IP routing table
>> Destination Gateway Genmask Flags Metric Ref Use
>> Iface
>> 62.241.161.247 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
>> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
>> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

>
> Assuming your ppp0 interface is your connection to the outside
> world, it looks like your default route is wrong. It should
> point at your ppp peer rather than your ethernet interface, no?
> If you set up the default route by hand[1], does it work then?
>
>
> [1] Do something like:
>
> # route del -net 0.0.0.0
> # route add -net default gw 62.241.161.247
>
> [Beware: I may be misremembering the route command syntax.]


It should be more like:
route del default
route add default gw 62.241.161.247 dev ppp0
(or current remote ppp0 IP)

But that is just a temporary solution. A default route should normally
only lead to the internet, so if 192.168.0.1 does not, it should be
permanently removed (or if it is an alternate path to internet at other
times, then maybe use 'replacedefaultroute' pppd option).

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
ian
Guest
Posts: n/a

 
      12-24-2003, 10:05 AM
Thanks very much for your help - the replacedefaultroute option was
exactly the sort of thing i was looking for.

David Efflandt wrote:

> On 23 Dec 2003 22:43:10 GMT, Grant Edwards <(E-Mail Removed)> wrote:
>
>>On 2003-12-23, ian <(E-Mail Removed)> wrote:
>>
>>
>>>I am having problems with my DSL connection (uses PPPoA).
>>>
>>>The ppp link establishes but i can only ping the remote ip address and
>>>localhost. I cannot ping either DNS server or a random internet server
>>>such as 66.102.11.99 (www.google.co.uk). Trying to ping a URL certainly
>>>does not work.

>>
>>>----------------------------
>>>Result of route -n:
>>>
>>>spearfish:~# route -n
>>>Kernel IP routing table
>>>Destination Gateway Genmask Flags Metric Ref Use
>>>Iface
>>>62.241.161.247 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
>>>192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
>>>0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

>>
>>Assuming your ppp0 interface is your connection to the outside
>>world, it looks like your default route is wrong. It should
>>point at your ppp peer rather than your ethernet interface, no?
>>If you set up the default route by hand[1], does it work then?
>>
>>
>>[1] Do something like:
>>
>> # route del -net 0.0.0.0
>> # route add -net default gw 62.241.161.247
>>
>> [Beware: I may be misremembering the route command syntax.]

>
>
> It should be more like:
> route del default
> route add default gw 62.241.161.247 dev ppp0
> (or current remote ppp0 IP)
>
> But that is just a temporary solution. A default route should normally
> only lead to the internet, so if 192.168.0.1 does not, it should be
> permanently removed (or if it is an alternate path to internet at other
> times, then maybe use 'replacedefaultroute' pppd option).
>


 
Reply With Quote
 
Neil Horman
Guest
Posts: n/a

 
      12-24-2003, 12:01 PM
Grant Edwards wrote:
> On 2003-12-23, ian <(E-Mail Removed)> wrote:
>
>
>>I am having problems with my DSL connection (uses PPPoA).
>>
>>The ppp link establishes but i can only ping the remote ip address and
>>localhost. I cannot ping either DNS server or a random internet server
>>such as 66.102.11.99 (www.google.co.uk). Trying to ping a URL certainly
>>does not work.

>
>
>>----------------------------
>>Result of route -n:
>>
>>spearfish:~# route -n
>>Kernel IP routing table
>>Destination Gateway Genmask Flags Metric Ref Use
>>Iface
>>62.241.161.247 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
>>192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
>>0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

>
>
> Assuming your ppp0 interface is your connection to the outside
> world, it looks like your default route is wrong. It should
> point at your ppp peer rather than your ethernet interface, no?
> If you set up the default route by hand[1], does it work then?
>
>
> [1] Do something like:
>
> # route del -net 0.0.0.0
> # route add -net default gw 62.241.161.247
>
> [Beware: I may be misremembering the route command syntax.]
>

You correct, the default gateway should definately be on the same subnet
as the link to the outside world. It looks from the attached setup that
the OP has a local net, on which they route frames, and a internet
uplink on which they would like to route frames. Whenever the ppp link
is established, the default route should be changed. I'm not sure if it
needs to be the PTP address on the interface, but it often is.
Neil

--
Neil Horman
Red Hat, Inc., http://people.redhat.com/nhorman
gpg keyid: 1024D / 0x92A74FA1, http://www.keyserver.net

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista<->XP Peer to Peer Wirelessly (Problems) - BigAl.N<1174369797.028568.147200@l75g2000hse.googlegroups.com> Ian Wireless Networks 1 07-04-2008 08:35 AM
Error loading TCP MIB Library combined with peer to peer sharing i Jerry Mills Wireless Networks 0 09-29-2006 12:51 PM
Peer-to-Peer Infrastructure APIs / Advanced Networking Pack on 2003 Server? Relax Windows Networking 2 04-19-2005 11:02 PM
Unable to ping/browse peer to peer network after setting up RRAS Steve Mann Windows Networking 2 07-27-2004 01:15 PM
Peer to peer network with two machines, ping doesn't work linuxquestion@yahoo.com Linux Networking 11 02-02-2004 05:51 AM



1 2 3 4 5 6 7 8 9 10 11