LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Unable to ping Gateway. (https://www.linuxquestions.org/questions/linux-networking-3/unable-to-ping-gateway-573470/)

r000t 07-30-2007 02:27 PM

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.

digen 07-30-2007 03:32 PM

What is the output of the below given commands ?

Quote:

/sbin/route -n
Quote:

cat /etc/resolv.conf

r000t 07-31-2007 05:33 AM

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:~#

kool_kid 07-31-2007 09:33 AM

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?

sudevank 07-31-2007 09:57 AM

change ip or mask
 
You jave to change ur ip as above .

or u can change the mask to 255.255.128.0

fur 07-31-2007 10:08 AM

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.

r000t 07-31-2007 10:22 AM

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.

fur 07-31-2007 10:35 AM

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.

r000t 07-31-2007 11:37 AM

I checked my routing table its 10.8.188.1

r000t 07-31-2007 11:53 AM

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:~#

fur 07-31-2007 12:38 PM

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


All times are GMT -5. The time now is 01:27 PM.