Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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.
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
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:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.