Cách Khắc Phục Lỗi Destination Host Unreachable, Máy Báo Lỗi : Destination Host Unreachable

After setting the static IP address on vmware machine, restarted centos, here is that after I get this error:

Destination Host UnreachableI try to change NAT to Bridge but nothing change, indeed, I can not connect using Putty in Bridge mode via terminalnano ifcfg-ens33

TYPE=EthernetBOOTPROTO=staticIPADDR=192.168.52.128BROADCAST=192.168.52.255NETMASK=255.255.255.0GATEWAY=192.168.160.1DEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noNAME=ens33UUID=(long)DEVICE=ens33ONBOOT=yesDNS1=8.8.8.8DNS2=8.8.4.4`/etc/resolv.conf

#Generated by NetworkManagernameserver 8.8.8.8nameserver 8.8.4.4`lspci | egrep -i –color “network|ethernet”

02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)I am able to ping myself.ping 127.0.0.1 return packets

route

localhost ~># routeKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Ifacedefault gateway 0.0.0.0 UG 100 0 0 ens33192.168.52.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33gateway 0.0.0.0 255.255.255.255 UH 100 0 0 ens33ifconfig -a

localhost ~># ifconfig -aens33: flags=4163 mtu 1500 inet 192.168.52.128 netmask 255.255.255.0 broadcast 192.168.52.255 inet6 fe80::20c:29ff:fea1:d692 prefixlen 64 scopeid 0x20 ether 00:0c:29:a1:d6:92 txqueuelen 1000 (Ethernet) RX packets 81 bytes 8444 (8.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 129 bytes 15447 (15.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1 (Local Loopback) RX packets 126 bytes 11662 (11.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 126 bytes 11662 (11.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Network is active

Share
Improve this question
Follow
edited Jun 10 “17 at 14:51

*

Thomas
3,93155 gold badges1818 silver badges2626 bronze badges
asked Jun 10 “17 at 12:35

*

Super SonicSuper Sonic
2111 gold badge11 silver badge22 bronze badges
Add a comment |

1 Answer 1

Active Oldest Votes
2
Your configured gateway is outside of your subnet.

Đang xem: Lỗi destination host unreachable

IPADDR=192.168.52.128NETMASK=255.255.255.0GATEWAY=192.168.160.1You can reach addresses within the range 192.168.52.1..192.168.52.254 without a router/gateway.If you want to reach addresses outside this range, you need a router/gateway. That router/gateway has to be in the reachable IP address range.

Share
Improve this answer
Follow
answered Jun 10 “17 at 13:27

*

ThomasThomas
3,93155 gold badges1818 silver badges2626 bronze badges
1
Add a comment |

Your Answer

Thanks for contributing an answer to Server Fault!

Please be sure to answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.

Xem thêm: Boxit Là Gì ? &#8212 Ti&#7871Ng Vi&#7879T

To learn more, see our tips on writing great answers.

Xem thêm: Windows Defender Security Center Là Gì, Cách Bật, Tắt Đơn Giản

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Submit

Post as a guest

Name
Email Required, but never shown

Post as a guest

Name
Email

Required, but never shown

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged networking centos7 ping vmware-server or ask your own question.

The Overflow Blog
Featured on Meta
Related
1
Setting up Windows network on Xen
1
Port forward + openVPN + iptables?
3
Configure static IPv6 on Ubuntu
2
Centos 6.2 Fresh 'Basic Server' install networking issues
1
Static virtual IP in debian 6.0.4
3
KVM/Libvirt bridged/routed networking not working on newer guest kernels
2
some nodes in a cluster has higher frame value in ifconfig
1
KVM Network configuration + VLAN trunck
2
tcpdump on bridge interface (virbr) does not receive any packets destined for one of its addresses
0
VirtualHost fails with multiple interfaces
Hot Network Questions more hot questions

Question feed
Subscribe to RSS
Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

*

Server Fault
Company
Stack Exchange Network
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.3.19.38843

Related Articles

Trả lời

Back to top button