LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't ping or get resolution beyond gateway. (https://www.linuxquestions.org/questions/linux-networking-3/cant-ping-or-get-resolution-beyond-gateway-17738/)

Gladiator 04-04-2002 08:10 PM

Can't ping or get resolution beyond gateway.
 
Interface is ppp0

All files are set up correctly. My nameservers are in /etc/resolv.conf upon connecting.

I can only ping 3 things vis IP address.

The IP I am given, the nameservers and I guess the gateway because it seems to be the same as my IP address that I am given.

My routing table after connect

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
XXX.185.130.163 * 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default XXX.185.130.163 0.0.0.0 UG 0 0 0 ppp0


My /etc/sysconfig/network file looks like this:

NETWORKING=yes
HOSTNAME=localhost.localdomain

GATEWAY=0.0.0.0.
GATEWAYDEV=ppp0

ifconfig

ppp0 Link encap:Point-to-Point Protocol
inet addr:XXX.34.100.125 P-t-P:XXX.185.130.163 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1514 Metric:1
RX packets:41 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

I have tried Kppp and Rppp(I think it is called this, It is the one that comes with gnome) with the same result.

My modem is fine and it connect no problem through windows.

User in AGONY!

Thanks

Jason

riser 04-05-2002 12:05 AM

Did you run firewall on your linux machine?If so,please stop it.

peter_robb 04-05-2002 03:37 AM

Try this little gem... wvdial

http://www.worldvisions.ca/wvdial/index.html

It's a command line script which will 99% of the time allow you to connect hassle free. I use it to select different ISPs when my one is on "go slow".

Rgds.

peter_robb 04-05-2002 03:43 AM

Oops, smack my hand...

They've moved to http://open.nit.ca/wvdial/
There are redirects tho' ...

Rgds...

Gladiator 04-05-2002 08:25 AM

No Firewall
 
I have no firewall running and have specifically deactivated it at the start if it was running.

I will try this wvdial and report back. In the meantime if anyone has anymore ideas, feel free.

Thanks for your responses.

Jason

360 04-05-2002 08:34 AM

My Network Configuration Check List
 
Maybe this will help.

Configuring a Linux Network:
You must substitute all network addresses with your own addresses.


Network Commands:
dmesg | grep -i eth0 (Nic make model and mac address of nic)
netconfig (Uses a GUI to set network)


1. Configure eth0 to automatically start at boot.
You must reboot for changes to take.

Configure NIC card:

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
IPADDR="66.70.226.240"
NETMASK="255.255.255.0"
ONBOOT="yes"

or

DEVICE=eth0
BOOTPROTO=static
IPADDR=216.222.208.74
NETMASK=255.255.255.248
GATEWAY=216.222.208.73
HOSTNAME=Your_Machine

If you have more than one ip address, you can add the following files
vi /etc/sysconfig/network-scripts/ifcfg-eth0:1
DEVICE-eth0:1
BOOTPROTO=static
IPADDR=123.456.789.123
NETMASK=255.255.255.123


2. Configure machine network and hostnames
Name your system with a real domain name. It will show in email headers and must resolve.

vi /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4="no"
HOSTNAME="fun.your_domain.com"
DOMAINNAME=your_domain.com
GATEWAY="66.170.246.1"
GATEWAYDEV="eth0"

3. DNS - Set a nameserver list to resolve names. Use your isp's nameserver as the first one then any others.
vi /etc/resolv.conf
domain your_domain.com
search your_domain.com
nameserver 64.212.103.201
nameserver 64.133.120.76



Good Luck

Gladiator 04-05-2002 09:45 PM

Ok I have tried everything
 
Ok, I have tried everything!

I recently tried the dialer wvdial

This may give us a hint as to the problem. When I ran wvdialer the modem was detected and dialed out great! But when I connected it stated pppd failure and restarted the dialer again.

It continued to do this indefinitely until ctrl-c

On Kppp it connects without this pppd failure but I just cant ping out. Any ideas?

Thx

Jason


All times are GMT -5. The time now is 12:00 PM.