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.
|
|
|
03-24-2014, 10:43 AM
|
#1
|
LQ Newbie
Registered: Mar 2014
Posts: 8
Rep:
|
Destination host unreachable
Dear Linux experts
i configuring new server in my center .. all server ping to my router gateway.cisco router 1941 and firewall asa 5505
my network configur
vi /etc/sysconfig/network-scritps/ifcfg-eth0
DEVICE=eth0
HWADDR=90:2B:34:9D:5F:96
TYPE=Ethernet
UUID=da566236-143f-4631-b4bf-4079cdf0e314
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=10.0.0.15
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
it's not ping my router gatway ..all servers ping to gatway .. pleas help me ...
[root@star~]#ping 10.0.0.1
ping 10.0.0.1 (10.0.0.1) 56(84) bytes of data
form 10.0.0.15 icmp_seq=2 Destination Host Unreachable
form 10.0.0.15 icmp_seq=2 Destination Host Unreachable
form 10.0.0.15 icmp_seq=2 Destination Host Unreachable
form 10.0.0.15 icmp_seq=2 Destination Host Unreachable
|
|
|
03-24-2014, 10:49 AM
|
#2
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
and if you do a:
what do you get?
|
|
|
03-24-2014, 10:57 AM
|
#3
|
Member
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665
Rep:
|
apart from above can you tell me what have you configured in /etc/resolv.conf
and ofcourse iptables -L
|
|
1 members found this post helpful.
|
03-24-2014, 11:02 AM
|
#4
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
Quote:
Originally Posted by SAbhi
apart from above can you tell me what have you configured in /etc/resolv.conf
and ofcourse iptables -L
|
They're trying to ping an IP address,. resolv.conf doesn't come into it.
|
|
1 members found this post helpful.
|
03-25-2014, 05:21 AM
|
#5
|
LQ Newbie
Registered: Mar 2014
Posts: 8
Original Poster
Rep:
|
Dear Experts
[root@gold ~]#ip route
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.15
169.254.0.0/16 dev eth0 scope link metric 1002
default via 10.0.0.1 dev eth0
[root@gold ~]# vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
root@gold [~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 90:2b:34:9d:5f:96 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.15/24 brd 10.0.0.255 scope global eth0
inet6 fe80::922b:34ff:fe9d:5f96/64 scope link
valid_lft forever preferred_lft forever
root@gold [~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
i checked every command output i will display an forum ..
some time ping to router gateway ip getting
ping: send msg: no buffer space available
after i will give command
root@gold [~]# ifconfig em3 down;ifconfig em3 up
after i will try ping to my router gateway same error
please help me ....
Thank you ..
|
|
|
03-25-2014, 05:30 AM
|
#6
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep:
|
You're getting an "unreachable" error from your own IP address. That means the TCP/IP stack your system is unable to find the MAC address of the IP address "10.0.0.1", which it expects to find on the local LAN since it belongs to the same IP network as 10.0.0.15/24.
If you run arp -an immediately after attempting to ping 10.0.0.1, you will probably see something like this:
Code:
? (10.0.0.1) at <incomplete> [ether] on eth0
You should check your physical network connections. See that the link lights are on, and run ethtool eth0 to verify connectivity.
|
|
1 members found this post helpful.
|
03-25-2014, 07:39 AM
|
#7
|
Member
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665
Rep:
|
Quote:
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
|
so you are actually blocking all request explicitly without any condition!!! i dont think this is a issue but have a look on your network architecture first, everything applies specifically where it is needed.
normally reject rules should be put on top so that unnecessary traffic should filter first and then reach on further accept conditions.
check this link for more on iptables
Last edited by SAbhi; 03-25-2014 at 07:44 AM.
|
|
|
03-26-2014, 09:56 AM
|
#8
|
LQ Newbie
Registered: Mar 2014
Posts: 8
Original Poster
Rep:
|
Dear Ser Olmy
i run This cmd arp -an
my pc output : ? (10.0.0.1) at f8:72:ea:a7:fd:XX [ether] on eth0
the physical connection every thing fine .. i have two server ..this two server getting same error ...
In this server i installed window server that time getting internet ..ping to router gateway also ..
how to solve the problem ..please help me ..sir
Thank you..
|
|
|
03-27-2014, 08:13 AM
|
#9
|
LQ Newbie
Registered: Mar 2014
Posts: 8
Original Poster
Rep:
|
please give me replay ..how to solve the problem ...
please sir ...
Thank you
|
|
|
03-27-2014, 08:30 AM
|
#10
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep:
|
Let me see if I understand this:
- Your server has the IP address 10.0.0.15 with a netmask of 255.255.255.0.
- Your router has the IP address 10.0.0.1 with a netmask of 255.255.255.0.
- If you ping the router (10.0.0.1) from the server (10.0.0.15), you get a "destination host unreachable" from 10.0.0.15 (the server itself).
- After attempting to ping 10.0.0.1, arp -an reveals that an ARP entry for 10.0.0.1 has indeed been created, pointing to f8:72:ea:a7:fd:<something> (no need to anonymize MAC addresses; the first three octets reveal it's a Cisco router)
Is the above ccorrect? Have you double-checked all the IP details on both the server and the router? If so, could you post the output from iptables-save -t filter and ifconfig on the server?
|
|
|
03-27-2014, 08:32 AM
|
#11
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
If that is the case, I would want to know what his switch config is. Because my Spider Senses are detecting a VLAN assignment issue.
|
|
|
03-27-2014, 08:48 AM
|
#12
|
LQ Newbie
Registered: Mar 2014
Posts: 8
Original Poster
Rep:
|
Dear Experts
it is normal switch Dlink switch......
Thank you ..
|
|
|
03-27-2014, 08:54 AM
|
#13
|
LQ Newbie
Registered: Mar 2014
Posts: 8
Original Poster
Rep:
|
Dear Ser Olmy
in my server ip address also change after i try to ping same error ...
i checked router also ... i assigned 10.0.0.15 to any other pc i getting internet .....please help me sir
Thank you
|
|
|
03-27-2014, 08:59 AM
|
#14
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
You said if you assign the ip to another computer you get internet. Have you tried plugging this ethernet cable into that computer that gets internet to make sure it is not the cable/port/nic?
Just for the giggles, can you temporarily shutdown iptables?
Code:
service iptables stop
then check to see if you can ping your gateway,.. if you can, its iptables blocking you.. if not.. well,..
Code:
service iptables start
Last edited by szboardstretcher; 03-27-2014 at 09:00 AM.
|
|
|
03-27-2014, 09:03 AM
|
#15
|
LQ Newbie
Registered: Mar 2014
Posts: 8
Original Poster
Rep:
|
Dear szboardstretcher
getting same issue ..sir please help me sir
i have total 5 server ..when i install time didnot dispaly any thing ..
but this 2 server display like this
Trying to allocate 984 pages for VMLINUZ
linux=EFI SETUP=0X1017 SIZE 0X3D7E70
Thank you
Last edited by mahesh561; 03-27-2014 at 09:21 AM.
|
|
|
All times are GMT -5. The time now is 10:43 AM.
|
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
|
|