LinuxQuestions.org
Help answer threads with 0 replies.
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 12-08-2009, 10:49 AM   #1
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Rep: Reputation: 15
problem with ping


hello !

am using Fedora 8 , using NAT two network cards eth0 and eth1 , i use routing and everything seems to be ok , when i try to ping my local netwok it is ok and i got

ping -c3 192.168.0.254
PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.
64 bytes from 192.168.0.254: icmp_seq=1 ttl=64 time=5.88 ms
64 bytes from 192.168.0.254: icmp_seq=2 ttl=64 time=10.7 ms
64 bytes from 192.168.0.254: icmp_seq=3 ttl=64 time=7.10 ms

when i try to ping out i get

ping -c3 82.151.39.103
connect: Le réseau n'est pas accessible.

and also for yahoo.com unexpected host

please help with this
 
Old 12-08-2009, 03:16 PM   #2
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
Quote:
Originally Posted by mrlinux2000 View Post
hello !

am using Fedora 8 , using NAT two network cards eth0 and eth1 , i use routing and everything seems to be ok , when i try to ping my local netwok it is ok and i got

ping -c3 192.168.0.254
PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.
64 bytes from 192.168.0.254: icmp_seq=1 ttl=64 time=5.88 ms
64 bytes from 192.168.0.254: icmp_seq=2 ttl=64 time=10.7 ms
64 bytes from 192.168.0.254: icmp_seq=3 ttl=64 time=7.10 ms

when i try to ping out i get

ping -c3 82.151.39.103
connect: Le réseau n'est pas accessible.

and also for yahoo.com unexpected host

please help with this
Run

Code:
traceroute 82.151.39.103
This will tell you the last place that packets arrived at.

Here is a sample of a traceroute from one of my Linux boxes toward www.google.com:

Code:
$ traceroute www.google.com
traceroute to www.google.com (64.233.169.104), 30 hops max, 40 byte packets
 1  router.localhost (192.168.1.1)  2.752 ms  3.208 ms  4.283 ms
 2  10.0.0.2 (10.0.0.2)  16.230 ms  16.430 ms  16.623 ms
 3  no.you.cant.know.my.gateway.iglou.com (xx.xxx.xxx.1)  123.937 ms  125.804 ms  131.813 ms
 4  po-ch-1.border1.iglou.com (204.252.74.6)  137.860 ms  139.767 ms  143.750 ms
You can see replies from

192.168.1.1 (my router)
10.0.0.2 (lan side of my DSL modem)
xx.xxx.xxx.1 (my ISP's gateway)
204.252.74.6 (a router at my ISP)

If you don't get a reply from a given router, you'll see a line that looks like

Code:
5 * * * *

Since you have a non-routable IP address, (192.168.xxx.xxx), I'm assuming that you have a router. If you can log in to your router, you can generally run a ping and a traceroute from the router toward your ISP. You may very possibly have to call your ISP.

Last edited by bartonski; 12-08-2009 at 03:29 PM.
 
Old 12-08-2009, 03:23 PM   #3
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Post output for "route -n" from root console, please
 
1 members found this post helpful.
Old 12-09-2009, 03:34 AM   #4
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
if i ping or traceroute any address it gives : connect: Le réseau n'est pas accessible. anyhelp , when i had only one network card everything were fine

please help me with this, it seems that cards desactivated when trying other addresses

Last edited by mrlinux2000; 12-09-2009 at 08:02 AM.
 
Old 12-09-2009, 08:06 AM   #5
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
Quote:
Originally Posted by mrlinux2000 View Post
if i ping or traceroute any address it gives : connect: Le réseau n'est pas accessible. anyhelp , when i had only one network card everything were fine

please help me with this, it seems that cards desactivated when trying other addresses
My French is not so good, but I'm guessing that this is a routing problem. I would follow nimnull's advice:

Quote:
Post output for "route -n" from root console, please
 
1 members found this post helpful.
Old 12-09-2009, 08:22 AM   #6
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
this is result of route -n,

Destination Passerelle Genmask Indic Metric Ref Use Iface
82.151.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1

i can ping anything in "82.151.83.XX" or "192.168.1.xx" it gives result, but trying to ping any other address , it shows

le réseau n'est pas accessible which is "the network is not accessible"

thanks
 
Old 12-09-2009, 08:55 AM   #7
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by mrlinux2000 View Post
this is result of route -n,

Destination Passerelle Genmask Indic Metric Ref Use Iface
82.151.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1

i can ping anything in "82.151.83.XX" or "192.168.1.xx" it gives result, but trying to ping any other address , it shows

le réseau n'est pas accessible which is "the network is not accessible"

thanks
That is absolutely right behaviour.

Tell please your network configuration: GW and where does it connect to, eth0 or 1?
 
0 members found this post helpful.
Old 12-09-2009, 08:58 AM   #8
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
i changed my gw in /etc/sysconfig/network adding GATEWAY=82.151.83.1 but it didnt work
what shoudl be done
thnx

Last edited by mrlinux2000; 12-09-2009 at 09:19 AM.
 
Old 12-09-2009, 09:18 AM   #9
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by mrlinux2000 View Post
this is result of route -n,

Destination Passerelle Genmask Indic Metric Ref Use Iface
82.151.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1

i can ping anything in "82.151.83.XX" or "192.168.1.xx" it gives result, but trying to ping any other address , it shows

le réseau n'est pas accessible which is "the network is not accessible"

thanks
OK!

I will ask different way.

What OTHER addresses do you want to ping?
 
Old 12-09-2009, 09:22 AM   #10
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
ping 62.159.55.3 for example , i tried to add gate way using /etc/sysconfig/network adding line GATEWAY=82.151.x.x
i did this command #route add default gw 82.151.73.x eth1 ,
it gives SIOCADDRT : aucun processus de ce type
nothing chnged

Last edited by mrlinux2000; 12-09-2009 at 09:43 AM.
 
Old 12-09-2009, 09:43 AM   #11
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by mrlinux2000 View Post
ping 62.159.55.3 for example , i tried to add gate way using /etc/sysconfig/network adding line GATEWAY=82.151.x.x

nothing chnged
But your computer does not know anything about 62.x.x.x network.
And GW can be only ONE, you can't use many.

What was a command for adding a new route?

Last edited by nimnull22; 12-09-2009 at 09:47 AM.
 
Old 12-09-2009, 10:04 AM   #12
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
May be you were trying to add GATEWAY=82.151.83.1, but here nothing says about it:
Destination Passerelle Genmask Indic Metric Ref Use Iface
82.151.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1

Last edited by nimnull22; 12-09-2009 at 10:08 AM.
 
1 members found this post helpful.
Old 12-09-2009, 03:15 PM   #13
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
Quote:
Originally Posted by mrlinux2000 View Post
this is result of route -n,

Destination Passerelle Genmask Indic Metric Ref Use Iface
82.151.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1

i can ping anything in "82.151.83.XX" or "192.168.1.xx" it gives result, but trying to ping any other address , it shows

le réseau n'est pas accessible which is "the network is not accessible"

thanks
Ok, there are a couple of things going on here:

  1. you don't have a default route set up, meaning that your computer doesn't know where to send any packets which should be headed toward the internet.
  2. The route toward 169.254.0.0 indicates that you probably have a link local IP address set up on eth1. This probably isn't what you want.
So: Which interface are you expecting to get internet through? eth0 or eth1? How is your network set up? Do you have a router? What type of internet connection do you have?

I also want to see the output from

Code:
/sbin/ifconfig

All of these questions will determine how eth0, eth1 and your routing table need to be set up.

Last edited by bartonski; 12-09-2009 at 03:16 PM.
 
1 members found this post helpful.
Old 12-25-2009, 12:26 PM   #14
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
thank u all
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

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

All times are GMT -5. The time now is 07:19 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