Networking Forums

Networking Forums > Computer Networking > Linux Networking > ppp0 seems to be working, but can't browse the net

Reply
Thread Tools Display Modes

ppp0 seems to be working, but can't browse the net

 
 
HS
Guest
Posts: n/a

 
      07-24-2003, 08:51 PM
Hi,

Since I put my last help request on this newsgroup, I have been tyring
varios thing. I am running Redhat 8.0 kernal 2.4.20-19.8. I was trying
to install a secon nic on my system, and my ppp0 connection using eth0
got screwed. I removed the second nic, and tried to get things back to
as they were.

Now I think ppp0 is working, but I can't browse the web. Mozilla behaves
as if no connection has been established. Here is some info below. All
suggestions would be greatly appreciated or hints as to what could be
wrong or where to look.

[root@localhost sbin]# /sbin/adsl-connect
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
local IP address 65.94.114.65
remote IP address 65.94.114.1

[root@localhost sbin]# ifup ppp0


[root@localhost sbin]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
65.94.116.1 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 65.94.116.1 0.0.0.0 UG 0 0 0
ppp0


[root@localhost sbin]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:04:75:8A6F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:300 errors:0 dropped:0 overruns:0 frame:0
TX packets:379 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:19631 (19.1 Kb) TX bytes:23844 (23.2 Kb)
Interrupt:9 Base address:0xd800

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:624 errors:0 dropped:0 overruns:0 frame:0
TX packets:624 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:51310 (50.1 Kb) TX bytes:51310 (50.1 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:65.94.116.32 P-t-P:65.94.116.1
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 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:30 (30.0 b) TX bytes:30 (30.0 b)



So, I guess ppp0 is loggin into my Sympatico account, but for some
reason I can't browse the web.

Thanks in advance for suggestions on how to track down and solve the
problem,
->HS

--
##----------
Remove all the underscores from my email address to get the correct
email. Sorry for inconvenience, but this is to reduce spam.
##----------


 
Reply With Quote
 
 
 
 
HS
Guest
Posts: n/a

 
      07-24-2003, 08:53 PM


HS wrote:

> Hi,
>
> Since I put my last help request on this newsgroup, I have been tyring
> varios thing. I am running Redhat 8.0 kernal 2.4.20-19.8. I was trying
> to install a secon nic on my system, and my ppp0 connection using eth0
> got screwed. I removed the second nic, and tried to get things back to
> as they were.
>
> Now I think ppp0 is working, but I can't browse the web. Mozilla behaves
> as if no connection has been established. Here is some info below. All
> suggestions would be greatly appreciated or hints as to what could be
> wrong or where to look.
>
> [root@localhost sbin]# /sbin/adsl-connect
> Using interface ppp0
> Connect: ppp0 <--> /dev/pts/2
> local IP address 65.94.114.65
> remote IP address 65.94.114.1
>
> [root@localhost sbin]# ifup ppp0
>
> [root@localhost sbin]# netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
> Iface
> 65.94.116.1 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
> 0.0.0.0 65.94.116.1 0.0.0.0 UG 0 0 0
> ppp0
>
> [root@localhost sbin]# ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:04:75:8A6F
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:300 errors:0 dropped:0 overruns:0 frame:0
> TX packets:379 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:19631 (19.1 Kb) TX bytes:23844 (23.2 Kb)
> Interrupt:9 Base address:0xd800
>
> 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:624 errors:0 dropped:0 overruns:0 frame:0
> TX packets:624 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:51310 (50.1 Kb) TX bytes:51310 (50.1 Kb)
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:65.94.116.32 P-t-P:65.94.116.1
> Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
> RX packets:3 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:30 (30.0 b) TX bytes:30 (30.0 b)
>
> So, I guess ppp0 is loggin into my Sympatico account, but for some
> reason I can't browse the web.
>
> Thanks in advance for suggestions on how to track down and solve the
> problem,
> ->HS


BTW, my eth0 is configured to get its IP automatically using dhcp. I hope
that is a correct setting for this situation.
->HS


--
##----------
Remove all the underscores from my email address to get the correct email.
Sorry for inconvenience, but this is to reduce spam.
##----------


 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      07-24-2003, 10:33 PM
In article <(E-Mail Removed)>, HS wrote:
>> local IP address 65.94.114.65
>> remote IP address 65.94.114.1
>>[snip]
>> ppp0 Link encap:Point-to-Point Protocol
>> inet addr:65.94.116.32 P-t-P:65.94.116.1 Mask:255.255.255.255


This doesn't make sense. Why do you show a different IP and peer? The
first one didn't show up in your route table.

>> Thanks in advance for suggestions on how to track down and solve the


It could be a matter of name resolution. Try pinging known IP addresses
to rule that out. I don't know DSL/PPPoE, but if it's like dialup PPP,
the option "usepeerdns" will get you a /etc/ppp/resolv.conf, and you can
use that by symlinking /etc/resolv.conf to that (for one example; there
are numerous ways to handle this.)

> BTW, my eth0 is configured to get its IP automatically using dhcp. I hope
> that is a correct setting for this situation.


Again I don't know DSL. Does it need an IP at all? It is however quite
possible that this is causing the problem, because DHCP clients will
overwrite your /etc/resolv.conf. If the client is dhcpcd, you can use
the option "-R" to prevent this. See "man dhcpcd" or documentation for
the DHCP client you use.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
HS
Guest
Posts: n/a

 
      07-24-2003, 11:08 PM


/dev/rob0 wrote:

> In article <(E-Mail Removed)>, HS wrote:
> >> local IP address 65.94.114.65
> >> remote IP address 65.94.114.1
> >>[snip]
> >> ppp0 Link encap:Point-to-Point Protocol
> >> inet addr:65.94.116.32 P-t-P:65.94.116.1 Mask:255.255.255.255

>
> This doesn't make sense. Why do you show a different IP and peer? The
> first one didn't show up in your route table.


The difference is because the "adsl-connect" command was followed by
disconnection, and then the rest of the messages are for a new "/sbin/ifup
ppp0" command. My IP changes with every connection, as it happens for all DSL
models I guess. Apologies for the confusion, I should have clearly mentioned
this.

->HS




>
> >> Thanks in advance for suggestions on how to track down and solve the

>
> It could be a matter of name resolution. Try pinging known IP addresses
> to rule that out. I don't know DSL/PPPoE, but if it's like dialup PPP,
> the option "usepeerdns" will get you a /etc/ppp/resolv.conf, and you can
> use that by symlinking /etc/resolv.conf to that (for one example; there
> are numerous ways to handle this.)
>
> > BTW, my eth0 is configured to get its IP automatically using dhcp. I hope
> > that is a correct setting for this situation.

>
> Again I don't know DSL. Does it need an IP at all? It is however quite
> possible that this is causing the problem, because DHCP clients will
> overwrite your /etc/resolv.conf. If the client is dhcpcd, you can use
> the option "-R" to prevent this. See "man dhcpcd" or documentation for
> the DHCP client you use.
> --
> /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
> or put "not-spam" or "/dev/rob0" in Subject header to reply


--
##----------
Remove all the underscores from my email address to get the correct email.
Sorry for inconvenience, but this is to reduce spam.
##----------


 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      07-25-2003, 05:03 AM
HS <(E-Mail Removed)> writes:

]Hi,

]Since I put my last help request on this newsgroup, I have been tyring
]varios thing. I am running Redhat 8.0 kernal 2.4.20-19.8. I was trying
]to install a secon nic on my system, and my ppp0 connection using eth0
]got screwed. I removed the second nic, and tried to get things back to
]as they were.

Probably not. Probably just a routing problem. You need to make sure
that neither of your nics have a default route, or that you set up the
explicit route to the IP addresses your ppp connects to (in
/etc/ppp/ip-up)


]Now I think ppp0 is working, but I can't browse the web. Mozilla behaves
]as if no connection has been established. Here is some info below. All
]suggestions would be greatly appreciated or hints as to what could be
]wrong or where to look.

Sounds like a problem with resolv.conf.



][root@localhost sbin]# /sbin/adsl-connect
]Using interface ppp0
]Connect: ppp0 <--> /dev/pts/2
]local IP address 65.94.114.65
]remote IP address 65.94.114.1

][root@localhost sbin]# ifup ppp0


][root@localhost sbin]# netstat -rn
]Kernel IP routing table
]Destination Gateway Genmask Flags MSS Window irtt
]Iface
]65.94.116.1 0.0.0.0 255.255.255.255 UH 0 0 0
]ppp0
]127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
]lo
]0.0.0.0 65.94.116.1 0.0.0.0 UG 0 0 0
]ppp0

Fine you have a default route to the net through ppp.

Your ethernet is not connected at all. No routes through your ethernet.





][root@localhost sbin]# ifconfig -a
]eth0 Link encap:Ethernet HWaddr 00:04:75:8A6F
] UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
] RX packets:300 errors:0 dropped:0 overruns:0 frame:0
] TX packets:379 errors:0 dropped:0 overruns:0 carrier:0
] collisions:0 txqueuelen:100
] RX bytes:19631 (19.1 Kb) TX bytes:23844 (23.2 Kb)
] Interrupt:9 Base address:0xd800

And no address at all.


]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:624 errors:0 dropped:0 overruns:0 frame:0
] TX packets:624 errors:0 dropped:0 overruns:0 carrier:0
] collisions:0 txqueuelen:0
] RX bytes:51310 (50.1 Kb) TX bytes:51310 (50.1 Kb)

]ppp0 Link encap:Point-to-Point Protocol
] inet addr:65.94.116.32 P-t-P:65.94.116.1
]Mask:255.255.255.255
] UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
] RX packets:3 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:30 (30.0 b) TX bytes:30 (30.0 b)



]So, I guess ppp0 is loggin into my Sympatico account, but for some
]reason I can't browse the web.

Again, /etc/resolv.conf




 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      07-25-2003, 05:05 AM
HS <(E-Mail Removed)> writes:



]HS wrote:

]> Hi,
]>
]> Since I put my last help request on this newsgroup, I have been tyring
]> varios thing. I am running Redhat 8.0 kernal 2.4.20-19.8. I was trying
]> to install a secon nic on my system, and my ppp0 connection using eth0
]> got screwed. I removed the second nic, and tried to get things back to
]> as they were.
]>
]> Now I think ppp0 is working, but I can't browse the web. Mozilla behaves
]> as if no connection has been established. Here is some info below. All
]> suggestions would be greatly appreciated or hints as to what could be
]> wrong or where to look.
]>
]> [root@localhost sbin]# /sbin/adsl-connect
]> Using interface ppp0
]> Connect: ppp0 <--> /dev/pts/2
]> local IP address 65.94.114.65
]> remote IP address 65.94.114.1
]>
]> [root@localhost sbin]# ifup ppp0
]>
]> [root@localhost sbin]# netstat -rn
]> Kernel IP routing table
]> Destination Gateway Genmask Flags MSS Window irtt
]> Iface
]> 65.94.116.1 0.0.0.0 255.255.255.255 UH 0 0 0
]> ppp0
]> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
]> lo
]> 0.0.0.0 65.94.116.1 0.0.0.0 UG 0 0 0
]> ppp0
]>
]> [root@localhost sbin]# ifconfig -a
]> eth0 Link encap:Ethernet HWaddr 00:04:75:8A6F
]> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
]> RX packets:300 errors:0 dropped:0 overruns:0 frame:0
]> TX packets:379 errors:0 dropped:0 overruns:0 carrier:0
]> collisions:0 txqueuelen:100
]> RX bytes:19631 (19.1 Kb) TX bytes:23844 (23.2 Kb)
]> Interrupt:9 Base address:0xd800
]>
]> 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:624 errors:0 dropped:0 overruns:0 frame:0
]> TX packets:624 errors:0 dropped:0 overruns:0 carrier:0
]> collisions:0 txqueuelen:0
]> RX bytes:51310 (50.1 Kb) TX bytes:51310 (50.1 Kb)
]>
]> ppp0 Link encap:Point-to-Point Protocol
]> inet addr:65.94.116.32 P-t-P:65.94.116.1
]> Mask:255.255.255.255
]> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
]> RX packets:3 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:30 (30.0 b) TX bytes:30 (30.0 b)
]>
]> So, I guess ppp0 is loggin into my Sympatico account, but for some
]> reason I can't browse the web.
]>
]> Thanks in advance for suggestions on how to track down and solve the
]> problem,
]> ->HS

]BTW, my eth0 is configured to get its IP automatically using dhcp. I hope
]that is a correct setting for this situation.
]->HS

No it is not. It has no connection at all.
Now, you need to tell us which connection, your ethernet or your ppp you
want to use to connect to the net. That will determine which your
default route should be.

 
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
When is ppp0 created? morleyc@gmail.com Linux Networking 1 07-01-2007 10:55 PM
cbq+ppp0 Damir Galič Linux Networking 6 08-29-2005 09:56 AM
Bringing up interface ppp0 antalb Linux Networking 2 11-05-2004 11:21 PM
PPP0 Problem beeman Linux Networking 0 12-09-2003 04:38 PM
Finding own ppp0 address Eduardo Linux Networking 6 10-02-2003 12:30 AM



1 2 3 4 5 6 7 8 9 10 11