LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-04-2002, 08:10 PM   #1
Gladiator
LQ Newbie
 
Registered: Jun 2001
Posts: 23

Rep: Reputation: 15
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
 
Old 04-05-2002, 12:05 AM   #2
riser
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Rep: Reputation: 0
Did you run firewall on your linux machine?If so,please stop it.
 
Old 04-05-2002, 03:37 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
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.
 
Old 04-05-2002, 03:43 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Oops, smack my hand...

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

Rgds...
 
Old 04-05-2002, 08:25 AM   #5
Gladiator
LQ Newbie
 
Registered: Jun 2001
Posts: 23

Original Poster
Rep: Reputation: 15
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
 
Old 04-05-2002, 08:34 AM   #6
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
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

Last edited by 360; 04-05-2002 at 08:36 AM.
 
Old 04-05-2002, 09:45 PM   #7
Gladiator
LQ Newbie
 
Registered: Jun 2001
Posts: 23

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mandrake 10.1 can't ping my gateway mgrenier Linux - Networking 2 05-17-2005 10:22 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
Cannot ping my gateway trippeer Linux - Networking 5 05-17-2004 07:23 PM
can't ping gateway pierogie Linux - Networking 3 08-06-2003 05:38 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration