Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-18-2007, 06:54 AM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 12
Rep:
|
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.
|
|
|
10-18-2007, 07:39 AM
|
#2
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
Sounds like a firewall issue. What are your firewall settings?
|
|
|
10-18-2007, 10:00 PM
|
#3
|
Member
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851
Rep:
|
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.
|
|
|
10-19-2007, 05:35 AM
|
#4
|
LQ Newbie
Registered: Oct 2007
Posts: 12
Original Poster
Rep:
|
destination host not reachable
Quote:
Originally Posted by billymayday
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).
|
|
|
10-19-2007, 06:02 AM
|
#5
|
Member
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851
Rep:
|
then, I agree with billymayday, probably your windows not accept ping request.
|
|
|
10-19-2007, 06:03 AM
|
#6
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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?
|
|
|
10-21-2007, 11:52 PM
|
#7
|
LQ Newbie
Registered: Oct 2007
Posts: 12
Original Poster
Rep:
|
firewall
Quote:
Originally Posted by billymayday
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.
|
|
|
10-22-2007, 03:14 AM
|
#8
|
LQ Newbie
Registered: Oct 2007
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
10-22-2007, 05:34 AM
|
#9
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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
|
|
|
10-22-2007, 05:19 PM
|
#10
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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.
|
|
|
10-22-2007, 09:01 PM
|
#11
|
Member
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851
Rep:
|
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.
|
|
|
10-23-2007, 12:24 AM
|
#12
|
LQ Newbie
Registered: Oct 2007
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
10-23-2007, 09:57 AM
|
#13
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
Please issue the following three commands and paste the output here:
/sbin/ifconfig -a
/bin/netstat -rn
/sbin/iptables -L
|
|
|
All times are GMT -5. The time now is 09:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|