LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-04-2003, 07:31 AM   #1
March Hare
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Gateway unreachable !?


Help please, i'm totally confused. The problem is that i get gateway unreachable message from route command

I have a Mandrake 9.0-router with 2 NICs:
eth0 - 192.168.0.1 - Local NET (192.168.0.0/24)
eth1 - X.Y.Z.66 - external NET (X.Y.Z.64/28)
It connect to a CISCO-gateway with IP X.Y.Z.65

route -n:
Dest Gateway NetMask Flags Iface
X.Y.Z.64 0.0.0.0 255.255.255.240 U eth1
192.168.0.0 0.0.0.0 255.255.255.0 U eth0
127.0.0.0 0.0.0.0 255.0.0.0 U lo
0.0.0.0 X.Y.Z.65 0.0.0.0 UG eth1

route:
Dest Gateway NetMask Flags Iface
outer * 255.255.255.240 U eth1
inner * 255.255.255.0 U eth0
127.0.0.0 * 255.0.0.0 U lo
default unreachable 0.0.0.0 UG eth1

All 127.0.0.1, 192.168.0.1, X.Y.Z.66, X.Y.Z.65 Ping OK (for example .65): [root@si stat]# ping X.Y.Z.65
PING X.Y.Z.65 (X.Y.Z.65) from X.Y.Z.66 : 56(84) bytes of data.
64 bytes from X.Y.Z.65: icmp_seq=1 ttl=255 time=0.553 ms
64 bytes from X.Y.Z.65: icmp_seq=2 ttl=255 time=0.487 ms
64 bytes from X.Y.Z.65: icmp_seq=3 ttl=255 time=0.499 ms

--- X.Y.Z.65 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 1998ms
rtt min/avg/max/mdev = 0.487/0.513/0.553/0.028 ms

Local NET is masqueraded by 217.76.40.66 (iptables) and INTERNET access is OK. But why gateway unreachable ??? May be something wrong with NAT setting ?? Help please. I give any additional information about any configs or hardware
 
Old 09-21-2003, 07:30 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Have you tried adding the default?

route add default gw X.Y.Z.65

NOTE if you have a line in /etc/hosts
X.Y.Z.65 router
then you could use router in the above command instead of the IP.
 
Old 09-24-2003, 08:16 AM   #3
March Hare
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Yes of course, default gateway added or there would be no access to the Internet.
 
  


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
Destination HOST Unreachable - cannot ping gateway rpkosuri Linux - Networking 5 06-16-2008 11:38 PM
Network Is Unreachable!!!!!!!!!!!!!!!!!!!!! koodoo Linux - Newbie 4 02-19-2005 09:51 AM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM
unreachable mohamed_linux Linux - General 3 06-28-2002 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:11 PM.

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