LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2007, 02:27 PM   #1
r000t
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
Unable to ping Gateway.


I have dual boot windows XP and Slackware 12.
I use PPPoE to connect net.
IP: 10.8.192.65
Netmask: 255.255.255.0
Gateway: 10.8.188.1
DNS : 10.8.188.1


I am able to connect and ping the Gateway on Windows XP.Net works fine using the PPPoE dialer on XP.

On Slackware Unable to ping the gateway
whereas able to establish a pppoe connection on Slackware.
it shows ppp0 is up and running but not able to open webpages

ifconfig

eth0 Link encap:Ethernet HWaddr 00:80:48:2C:A3:B1
inet addr:10.8.192.65 Bcast:10.8.192.255 Mask:255.255.255.0
inet6 addr: fe80::280:48ff:fe2c:a3b1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:353 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:50242 (49.0 KiB) TX bytes:1956 (1.9 KiB)
Interrupt:11 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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:58.146.97.247 P-t-P:172.31.29.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 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:74 (74.0 b) TX bytes:49 (49.0 b)

------------------------------------

I Tried disabling the firewall but still not able to ping the gateway/DNS.

Pls, help me with this prob
Thank you.
 
Old 07-30-2007, 03:32 PM   #2
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
What is the output of the below given commands ?

Quote:
/sbin/route -n
Quote:
cat /etc/resolv.conf
 
Old 07-31-2007, 05:33 AM   #3
r000t
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
root@devil:~# ping 10.8.188.1
connect: Network is unreachable
root@devil:~# /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.192.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
root@devil:~# cat /etc/resolv.conf
nameserver 10.8.188.1
root@devil:~#

Last edited by r000t; 07-31-2007 at 05:35 AM.
 
Old 07-31-2007, 09:33 AM   #4
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Rep: Reputation: 30
try changing ur ip address to something in this range

10.8.188.2 -- 10.8.188.255

also is the ip same on ur winxp machine?
 
Old 07-31-2007, 09:57 AM   #5
sudevank
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Rep: Reputation: 15
change ip or mask

You jave to change ur ip as above .

or u can change the mask to 255.255.128.0
 
Old 07-31-2007, 10:08 AM   #6
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Quote:
IP: 10.8.192.65
Netmask: 255.255.255.0
Gateway: 10.8.188.1
As the others have pointed out you need to either update your IP address, subnet mask, or both.


Here is why,

10.8.192.65 with a netmask of 255.255.255.0 will only be able to talk to hosts 10.8.192.1 - 10.8.192.254. Because your gateway( 10.8.188.1) is located outside of that subnet your computer will not be able to reach it.

I would suggest looking at your XP machines "ipconfig" output to determine what subnet mask it has and go from there.
 
Old 07-31-2007, 10:22 AM   #7
r000t
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I changed my IP to 10.8.188.2 - 10.8.188.255 range now i can ping the Gateway, DNS.
When i do pppoe-start, it shows connected. Still i am not able to browse.
What can be the problem now - I have turned my firewall off too.
 
Old 07-31-2007, 10:35 AM   #8
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
My guess is that you don't have a default route setup.

Check your current routing table, you should have something like this.

Code:
0.0.0.0         10.8.188.1     0.0.0.0         UG        0 0          0 eth0
if not try this command.

Code:
route add default gw 10.8.188.1
That will not persist a reboot so you will eventually need to add it to your distros appropriate network configuration file.
 
Old 07-31-2007, 11:37 AM   #9
r000t
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I checked my routing table its 10.8.188.1
 
Old 07-31-2007, 11:53 AM   #10
r000t
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Here is the routing table.
Quote:
root@devil:~# /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.188.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.8.188.1 0.0.0.0 UG 1 0 0 eth0
root@devil:~#
Quote:
root@devil:~# pppoe-start
. Connected!
root@devil:~# /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.31.29.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.8.188.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.8.188.1 0.0.0.0 UG 1 0 0 eth0
root@devil:~#
 
Old 07-31-2007, 12:38 PM   #11
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Can you perform DNS lookups? Ping by IP/hosts in the internet? What about traceroutes.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to ping the gateway Setya Linux - Networking 5 08-06-2007 01:16 AM
can ping the gateway but unable to browse badall Linux - Networking 3 05-25-2007 10:19 AM
Unable to ping other than default gateway senthilpr_in Linux - Networking 6 08-17-2005 07:42 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
RH Linux 7.2 unable to ping to gateway AtulGore Linux - Networking 6 03-15-2002 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration