LinuxQuestions.org
Visit Jeremy's Blog.
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 10-18-2007, 05:54 AM   #1
rinos
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Rep: Reputation: 0
Unhappy destination host unreachable


hello all,

I've installed Redhat ES version 4.0 today. it boots up fine.but network is not work outside to the PC. when ping to localhost it works and replies
acknowledgments. but ping to server or other systems not ping msgs. it replies the message Destination Host is Unreachable.

please urgently i need help from all you to solve this bug.
 
Old 10-18-2007, 06:39 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sounds like a firewall issue. What are your firewall settings?
 
Old 10-18-2007, 09:00 PM   #3
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
as root, try
mii-tools - check whether any physical link detected
ifconfig - check your ipaddress is correct
cat /etc/resolv.conf - check your dns server is correct
route -n check your gateway.

If all correct, ping other server's ip. if doesn't work, lets other server ping it. If still doesn't work try another cable, or port.
 
Old 10-19-2007, 04:35 AM   #4
rinos
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Original Poster
Rep: Reputation: 0
destination host not reachable

Quote:
Originally Posted by billymayday View Post
Sounds like a firewall issue. What are your firewall settings?
im going to use linux server as a mail server.
im using a windows box as a main server to linux.

i checked that all ip settings and gateway setting all are correct.

i ping from the windows host to linux server box it ping successful.
but when i ping from linux to other hosts it send reply

Destination host unreachable.(icmp req=1).
 
Old 10-19-2007, 05:02 AM   #5
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
then, I agree with billymayday, probably your windows not accept ping request.
 
Old 10-19-2007, 05:03 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you do any other network task from this box (surf the web for example)?

What about your firewall settings as I asked before (you may be able to ping in but not out if your firewall is set up that way)

Did you try the suggestions kstan made?
 
Old 10-21-2007, 10:52 PM   #7
rinos
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Original Poster
Rep: Reputation: 0
firewall

Quote:
Originally Posted by billymayday View Post
Can you do any other network task from this box (surf the web for example)?

What about your firewall settings as I asked before (you may be able to ping in but not out if your firewall is set up that way)

Did you try the suggestions kstan made?
ok billy and kstan.

can you suggest that how to do the firewall setting in red hat E Server v4.0
by step by step method.
 
Old 10-22-2007, 02:14 AM   #8
rinos
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Question error in linux

when i ping from windows to the linux box it was success.
C:\Documents and Settings\acer>ping 192.168.2.6

Pinging 192.168.2.6 with 32 bytes of data:

Reply from 192.168.2.6: bytes=32 time=1ms TTL=128
Reply from 192.168.2.6: bytes=32 time<1ms TTL=128
Reply from 192.168.2.6: bytes=32 time<1ms TTL=128
Reply from 192.168.2.6: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.2.6:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms[/SIZE][/FONT][/I]


C:\Documents and Settings\acer>


but when type telnet it was not connected

C:\Documents and Settings\acer>telnet 192.168.2.6
Connecting To 192.168.2.6...Could not open connection to the host, on port 23:
onnect failed

C:\Documents and Settings\acer>



also when i try from linux box to the outside it could not.but to the localhost of linux it pings successfully.

can you identify the bug and give me the solution from basic steps by steps.


also another problem when i installed the linux it was not support the SATA hard disk, so i changed the BIOS setup to legacy,then i completed the installation and boot.but if i reset to the native the booting is failure. i refer some net they issue to patch the kernel im confusing to patch the kernel can you suggest how i want to patch the kernel before to change to the native.

i am a beginner to the linux install server.
 
Old 10-22-2007, 04:34 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So your firewall is blocking telnet or the telnet server isn't running on your linux box (ie listening on port 23) which is probably a good thing.

What are you trying to do? Remotely access the linux box? If so, use ssh instead
 
Old 10-22-2007, 04:19 PM   #10
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Do the following while you ping your box from the windows box:

You need to be root -
tcpdump -i eth0 icmp

Assuming eth0 has the IP address 192.168.2.6.


YOu want to make sure your box is replying and there is no other network device on your network has 192.168.2.6 IP.
 
Old 10-22-2007, 08:01 PM   #11
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
normally we patch the kernel means we overwrite some customized source code into kernel source code. To patch the kernel you need to have complete kernel source code (Not the kernel header file).
So, the roughly step by stepis :
1. download your kernel source code (search kernel-source or linux-source package which is suita your kernel )
2. Download the patch and follow the instruction to patch the kernel source code (normally the source at /usr/src/linux-kernel-version)
3. inside root directory of kernel source, type
make clean
make bzImage
make modules
make modules_install
make install
4. restart then you can boot into new kernel.
 
Old 10-22-2007, 11:24 PM   #12
rinos
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Original Poster
Rep: Reputation: 0
i can ping

i can ping from windows to linux but could not ping from linux to windows.

at the same time i could not telnet from windows to linux it replies error msg as connection failed.
 
Old 10-23-2007, 08:57 AM   #13
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Please issue the following three commands and paste the output here:

/sbin/ifconfig -a

/bin/netstat -rn

/sbin/iptables -L
 
  


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 susankhya Linux - Networking 3 06-14-2006 02:14 AM
Destination Host Unreachable cherukuri Linux - Networking 9 04-23-2005 04:59 AM
destination host unreachable javpra Linux - Networking 1 03-30-2005 05:44 AM
Destination Host Unreachable danka Linux - Networking 8 01-01-2005 05:29 PM
Destination Host Unreachable thanos35 Linux - General 4 01-06-2003 06:48 AM

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

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